All,
I’m trying to write a sql statement to be something like this:
$sql = "Select id, rating from ratings";
$result = mysql_query($sql);
$resultset = mysql_fetch_array($result)
So the resultset would have the database results (there will be like 50+ results sometimes). What I’m trying to do is basically search through the array for a value and if it finds that value in the id column it would echo out the rating that is associated with that line.
What is a good way to do this?
Thanks!
Where your $searchId is the id you’re searching for.