I’ve been at this for a week with little success. A kick in the right direction would be greatly appreciated!
I simply need to verify a record in my database (row name is user_level) For example…if the record says “whatever” …then my action occurs. It seems simple enough…yet I’ve been unsuccessful. Here’s what I have thus far… Once again…your help is greatly appreciated!
$res = sql_query ("SELECT * FROM user WHERE user_level = '$user_level' LIMIT 1");
$row = sql_fetch_array ($res);
if ($row['user_level'] == 'matching text from DB here')
{
$hide_form = 1;
}
UPDATE: Problem Resolved!