I'm really close. There's a problem with my query and I've tried it every way I know how:
PHP Code:
$user_info = $db->query_read("SELECT * FROM " . TABLE_PREFIX . "user WHERE email = " . $delemail . "");
I get this error:
Quote:
Invalid SQL:
SELECT * FROM vb_user WHERE email = edge.students@gmail.com;
MySQL Error : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '@gmail.com' at line 1
Error Number : 1064
|
It's just not reading the email address correctly -- and when I put it in quotes it doesn't bring up the data. Any ideas?
I solved the problem and it works great. I'll try to package it up and release it.