Results 1 to 5 of 5
Thread: simple straight up query problem
Mar 31, 2007, 09:41 #1
- Join Date
- Oct 2005
- 0 Post(s)
- 0 Thread(s)
simple straight up query problem
I have a simple query shown here:
$result = $conn->query("select user from activation where token = '$token' ");
There is no result; however, I am sure that the connection is good, that $token has a value that is in the table, and that the spelling for the table and fields are correct.
If I substitute the actual value of $token (which I var_dumped to confirm) like this:
$result = $conn->query("select user from activation where token = 'f0ef1bc00c1628b7ae94f6d881b55f59' ");
I get the results I want.
Any ideas why I have this silly problem?