php - Store value from SELECT statement into variable -


how can store value select mysql statement php variable? example:

$myvariable = select * x id = x 

thanks

you need @ php manual mysql/mysqli wrapper functions.

http://us3.php.net/manual/en/book.mysql.php

http://us3.php.net/manual/en/book.mysqli.php

if code provided written proper syntax (you need single/double quotes around string literals in php) variable contain sql query string. need send database via kind of wrapper.

you may wont search around general php , php/mysql tutorials.


Comments

Popular posts from this blog

python - Scipy curvefit RuntimeError:Optimal parameters not found: Number of calls to function has reached maxfev = 1000 -

c# - How to add a new treeview at the selected node? -

java - netbeans "Please wait - classpath scanning in progress..." -