Menu
This is a beginner question. Is the query below correct? It does not display anything even if I inputed the correct Id number.
[code=php]
$sql=”SELECT *FROM table1 WHERE id=” . $pangalan;
When I use a text query it display the result
[code=php]
$sql=”SELECT *FROM table1 WHERE lname LIKE ‘%” . $pangalan . “%’ “;
The id is an integer auto incremented type and is the the primary key.