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
Post a Comment