samedi 28 novembre 2015

Get sql data using search box in wordpress

i want to do,using search box find data in wordpress database and display it in page,using contact form 7 i upload data in wp database,i use some php code for display data in page,it works but,i dont know how to do it using search box

get_results( "SELECT * FROM it_testtable "); /*mulitple row results can be pulled from the database with get_results function and outputs an object which is stored in $result */ //echo "
"; print_r($result); echo "
"; /* If you require you may print and view the contents of $result object */ echo "ID"." "."Name"."

"; foreach($result as $row) { echo $row->id." ".$row->name."
"; } /* Print the contents of $result looping through each row returned in the result */ ?>

please help me get out of this..thank you



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire