Hi,
I am new to php and I ran into a problem. I got a tutorial on using php to search MYSQL database and this is the code they gave me.
$query = "select * from the_table where 1st_field like \"%$trimmed%\" order by 1st_field";
//EDIT HERE and specify your table and field names for the SQL query
I changed the_table to part_number (which is the name the table) and changed 1st_field to Part_Number (which is the field name) so the code looked like this
$query = "select * from part_number where Part_Number like \"%$trimmed%\" order by Part_Number";
I got this error: Parse error: parse error, unexpected T_STRING, expecting ',' or ';' in /tmp/disk/home/tutorial/Files/WWW/search.php on line 30
Can anybody help me with this? Thanks.