View Single Post
Old 01-18-2012, 04:17 AM   PM User | #6
evestudent
New to the CF scene

 
Join Date: Jan 2012
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
evestudent is an unknown quantity at this point
Argh!

Here's the place where it's hanging up on show.php....

echo $name;
echo $type;

// do the query
$query="SELECT * FROM $type WHERE common_name='" . $name . "'";

echo $name . "<br>";

Everything before the query works, so we have solid usable values for $name and $type, so it should work in the query.

But, everything after the query doesn't work. It selects nothing, thinking there are no instances where $name and common_name are the same.

Any suggestions?
evestudent is offline   Reply With Quote