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

"Jas" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> 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
$table_name
> 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 (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to