query.get_var

/ Database / query.get_var

Title : query.get_var
Purpose : Retrieve one variable from the database
Syntax :
Input Parameters : query: (int) (Required) SQL query to execute.
Return Value : It returns: Database query result (as string), or null on failure.
Example 1 :
Code :
Output :
Description : The above example code will output the SQL query result as a string shown above. The query has return post_title value of very first object. We can apply order by filter if we are required the last var

 

Categories
Most Popular

Leave a Reply

Your email address will not be published. Required fields are marked *