Six Line Star

Html,WordPress,PHP, jQuery MySQL,MySQLi

Tuesday, 24 June 2014

How to run database Query in WordPress?

<?php $wpdb->query('query'); ?>
// Examples
$wpdb->query(    "
    UPDATE $wpdb->posts
    SET post_parent = 7
    WHERE ID = 15
        AND post_status = 'static'    "
);
Posted by SixLineStar at 02:20
Email This BlogThis! Share to X Share to Facebook Share to Pinterest

No comments :

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments ( Atom )

Search This Blog

Blog Archive

  • ►  2017 ( 2 )
    • ►  February ( 1 )
    • ►  January ( 1 )
  • ►  2016 ( 2 )
    • ►  November ( 1 )
    • ►  September ( 1 )
  • ►  2015 ( 2 )
    • ►  January ( 2 )
  • ▼  2014 ( 26 )
    • ►  December ( 1 )
    • ►  November ( 1 )
    • ►  October ( 1 )
    • ▼  June ( 6 )
      • how to upload multiple images in php mysql
      • How to run database Query in WordPress?
      • How to hide Directory Browsing in WordPress from s...
      • How to hide the top admin bar at the frontend in W...
      • Create testimonial custome function in wordpress
      • Create slider in wordpress
    • ►  May ( 17 )

Popular Posts

  • Upload Image Amazon s3 php or Cakephp
  • HOW TO MAKE SYMBOLS WITH KEYBOARD
  • jQuery Client Side Image Cropping with Canvas CSS3 Mysql using PHP
  • Convert Date in Diffrent Formate using Jquery
Kumar Satyam. Powered by Blogger.