SLQ in PHP experts. please help?

Gen A

New member
so i have this textfield in a form named textbox1 where user puts a name and i have a database and i want to get all the information of the name the user type..for example if someone types in textbox 1 "mathew" the database will display "mathew", lastname, and phone.. i don't know what is wrong with my code i have

$numbergrade = $_POST["textbox1"];

and somewhere down the file i have

WHERE example_name = .$textbox1


IM USING SLQ IN PHP... PLEASE HELP.. I'M SURE THE PROBLEM IS IN WHERE example_name = .$textobox1 i've already tried puting example_name=$textbox1 and also tried .$textbox1. but none of them work.. please keep in mind i have all my connection ready because i can get another info from my database but i'm just having problems with the textbox because i'm mostly using if ($selection == 'example') thankss in advance
 
WHERE example_name = $textbox1

WHERE example_name = $numbergrade

not $textbox1 there isn't anything defined as that but there is a $_POST['textbox1'] take out the " " double quotes in your key

$numbergrade = $_POST['textbox1'];
 
Back
Top