Hi. 🙂
This is a very easy one but I'm having a brain dead moment...
I simply need to write a query to search one column in a table for a value.
This is what I have, which I know is not enough. :p
$sql = "SELECT leader_id FROM test_test";
if ( !($result = $db->sql_query($sql)) )
{
message_die(CRITICAL_ERROR, 'Error Getting leader name');
}
$leader = $db->sql_query($result);
if ( $leader['leader_id'] == $user_id )
{
message_die(GENERAL_ERROR, 'Sorry, you can't do that at the moment' );
}
Thanks. 😉