I'm having a fairly simple issue with MySQL. I just don't know the syntax well.
CODE:
$Rego_select = mysql_query(
"SELECT VechicleRegistration FROM trucks WHERE TruckID = '$truckID'" )
or die("Problem reading table: " . mysql_error());`
If i try to echo $Rego_select directly it outputs Resource Locater #. I am wondering what function I can use to get the data from that column.
I tried to use mysql_result(); but it requires a position number which makes life difficult because I am executing this query dynamically in a while statement and I would have to re write the whole loop structure if this is the only way to do it.
Cheers guys.