Hey Guys and Gals,
I am very new to PHP. I have a table that has field names that has blanks in it like this: Manufacturer Part ID
How do I access this in PHP? I have something like this but it does not work (PartN is passed through the URL):
$query = "SELECT * FROM egov where [Manufacturer Part ID] = '$PartN'";
$result = mysql_query($query);
$PartNumber = mysql_result($result, 0, "[Manufacturer Part ID]");
I had another table that I used this with that had no blanks and this worked fine. I did not have the brackets in that one. Do I need the brackets?
Thanks,
Zych
I am very new to PHP. I have a table that has field names that has blanks in it like this: Manufacturer Part ID
How do I access this in PHP? I have something like this but it does not work (PartN is passed through the URL):
$query = "SELECT * FROM egov where [Manufacturer Part ID] = '$PartN'";
$result = mysql_query($query);
$PartNumber = mysql_result($result, 0, "[Manufacturer Part ID]");
I had another table that I used this with that had no blanks and this worked fine. I did not have the brackets in that one. Do I need the brackets?
Thanks,
Zych