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

powershell Start-Process exit code -1073741502 when used with Credential from a windows service environment -

twig - Using Twigbridge in a Laravel 5.1 Package -

c# - LINQ join Entities from HashSet's, Join vs Dictionary vs HashSet performance -