How to Write a New Query In WordPress?
global $wp_query;
$wp_query = new WP_Query(array( ‘orderby’ => ‘post_title’,’order’ => ‘asc’,’listings_categories’ => ‘vegetarian’));
global $wp_query;
$wp_query = new WP_Query(array( ‘orderby’ => ‘post_title’,’order’ => ‘asc’,’listings_categories’ => ‘vegetarian’));
<script type=”text/javascript”> $(“#commenttext”).keyup(function(event){ if(event.keyCode == 13){ comments(‘<?php echo $play_queryres->id;?>’); } }); </script>
you can manage header active class by get running script name if you are already added url customization don’t worry about that .htaccess will not effect on that
मुंबई हमले के दोषी अजमल कसाब को कथित तौर पर पढ़ाने वाले एक स्कूल टीचर ने उसके जिंदा होने का दावा किया है। पंजाब प्रांत के ओकारा जिले स्थित फरीदकोट प्राइमरी स्कूल के इस टीचर ने बुधवार को एक पाक अदालत में कहा कि जिस कसाब को वह जानते हैं, वो जिंदा है और…
<?php $resource = Mage::getSingleton(‘core/resource’); $readConnection = $resource->getConnection(‘core_read’); $query = ‘SELECT * FROM files where prod_id=’.$file_id; $results = $readConnection->fetchAll($query); if(!empty($results)){ echo “Download Files”; foreach($results as $resultsfile){ ?> <br/><a href=”http://www.infinityinfosystem.com/download.php?filename=<?php echo $resultsfile[‘prod_file’];?>”><?php echo $resultsfile[‘file_title’];?></a> <?php }}?>
$data=array(‘table_amount’=>’table_amount’+$chips,’recent_chaal_amount’=>$chips); $this->db->getProfiler()->setEnabled(true); $this->db->update(‘ss_table’,$data,’id=’.$tableid); foreach((array)$this->db->getProfiler()->getQueryProfiles() as $qry){ $this->_qryProf .= “\r\n”.print_r($qry,true).”\r\n”; } echo ‘<pre>’;print_r($this->_qryProf); die; $data = array(‘value’=>newZend_Db_Expr(‘value + 1000’));