Sorry, got it working, just needed to remove user_id, f_name etc. and it
works fine.

"Jas" <[EMAIL PROTECTED]> wrote in message
> I think I am missing something:
> $db_name = "database";
>  $table_name = "auth_users";
>  $sql = "DELETE user_id, f_name, l_name, email_addy, un, pw FROM
> WHERE user_id = \"$user_id\", $dbh";
>  $result = @mysql_query($sql, $dbh) or die ("Could not execute query.
> Please try again later.");
> Its not deleting the records based on a hidden field in a form named
> $user_id
> Any help would be great!
> Jas

PHP Database Mailing List (
To unsubscribe, visit:

Reply via email to