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

timeout - Handshake_timeout on RabbitMQ using python and pika from remote vm -

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

c# - Search and Add Comment with OpenXML for Word -