sql - How to display the selected data in those fields php? -


i wrote following code. works when primary key integer. when primary key string (which need) not display selected data in fields. code:

include("connection.php"); $equipid=$_get["equipment_id"]; $conn = oci_connect($dbuname, $dbpwd,$db) or die("db connection unsuccessful!"); $query= "select * equipment equipment_id =".$_get["equipment_id"];** 

can please me this?

when writing query strings must encased in quotes, may use single or double quotes.

$query= "select * equipment equipment_id ='".$_get["equipment_id"]."'";


Comments

Popular posts from this blog

gcc - MinGW's ld cannot perform PE operations on non PE output file -

How to connect android app to App engine -

hadoop - Running Map Reduce Job shows error - Mkdirs failed to create /var/folders/ -