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

twig - Using Twigbridge in a Laravel 5.1 Package -

jdbc - Not able to establish database connection in eclipse -

firemonkey - How do I make a beep sound in Android using Delphi and the API? -