w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
Table 'users.users' doesn't exist

Try this one:

$query = mysql_query("SELECT * FROM `userdatabase.users` WHERE
username='$user'") or die(mysql_error());

From your example it seems that you have chosen different database than userdatabase, because the table is not found, so if you're dealing with tables from marked database, it's good way to change working database to userdatabase and then execute queries without namespace

See mysql_select_db (just mentioning mysql extension because you're using it) for database changing porpose, though get rid of mysql extension

© Copyright 2018 w3hello.com Publishing Limited. All rights reserved.