shaan1974
Forum Replies Created
-
Forum: Everything else WordPress
In reply to: Can I work on www.remarpro.com offlineYou could try also EASYPhp, it’s work well
Shaan
Forum: Developing with WordPress
In reply to: Custom SQL Query In PageSimple example :
global $wpdb; $sql="SELECT * FROM my_table"; $posts = $wpdb->get_results($sql); print("<ul>"); foreach ($posts as $post) { print('<li>'.$post->FIELD1.'|'.$post->FIELD2.'<br/>'); print('</li>'); } print("</ul>");
I hope that could help you
Shaan
Forum: Plugins
In reply to: [Slick Slideshow] [Plugin: Slick Slideshow] Jquery conflictTry this with in firebug ( javascript part, watch )
“$.fn.jquery”
if you have nothing returned try
“jQuery.fn.jquery”
If with this is ok, it’s means that an other javascript framework like “mootools” is maybe already set with the “$” ( maybe for an other plugin”So in the jquery plugin that you want to use, you need to replace the “$” command with “jQuery”.
Cya
ShaanForum: Plugins
In reply to: WordPress and Stored procedureAfter 4 month here the solution :
Search for : ( file wd-db.php )
function query( $query ) { if ( ! $this->ready ) return false; // some queries are made before the plugins have been loaded, and thus cannot be filtered with this method if ( function_exists( 'apply_filters' ) ) $query = apply_filters( 'query', $query );'
and replace with :
function query( $query ) { if ( ! $this->ready ) return false; if ( strpos($query, "CALL") === false ) { $this->dbh = mysql_connect( $this->dbhost, $this->dbuser, $this->dbpassword, true ); $this->set_charset( $this->dbh ); $this->ready = true; $this->select( $this->dbname, $this->dbh ); } else { $this->dbh = mysql_connect( $this->dbhost, $this->dbuser, $this->dbpassword, false,65536 ); $this->set_charset( $this->dbh ); $this->ready = true; $this->select( $this->dbname, $this->dbh ); } // some queries are made before the plugins have been loaded, and thus cannot be filtered with this method if ( function_exists( 'apply_filters' ) ) $query = apply_filters( 'query', $query );
Now you should be able to run stored procedures.
By the way this code is like Mac Gyver tips ??
Maybe the WordPress team could set it in the next release ??
Shaan
Forum: Plugins
In reply to: How to call Stored procedure from PluginAfter 4 month here the solution :
Search for : ( file wd-db.php )
function query( $query ) { if ( ! $this->ready ) return false; // some queries are made before the plugins have been loaded, and thus cannot be filtered with this method if ( function_exists( 'apply_filters' ) ) $query = apply_filters( 'query', $query );'
and replace with :
function query( $query ) { if ( ! $this->ready ) return false; if ( strpos($query, "CALL") === false ) { $this->dbh = mysql_connect( $this->dbhost, $this->dbuser, $this->dbpassword, true ); $this->set_charset( $this->dbh ); $this->ready = true; $this->select( $this->dbname, $this->dbh ); } else { $this->dbh = mysql_connect( $this->dbhost, $this->dbuser, $this->dbpassword, false,65536 ); $this->set_charset( $this->dbh ); $this->ready = true; $this->select( $this->dbname, $this->dbh ); } // some queries are made before the plugins have been loaded, and thus cannot be filtered with this method if ( function_exists( 'apply_filters' ) ) $query = apply_filters( 'query', $query );
Now you should be able to run stored procedures.
By the way this code is like Mac Gyver tips ??
Maybe the WordPress team could set it in the next release ??
Shaan
Forum: Plugins
In reply to: How to call Stored procedure from PluginHello, i’v found a start of solution, just take a look on my post.
Cya
Shaan