You are getting this error because $result
is a boolean. You can read up on the documentation for how that function works here on the PHP documentation site.
$result = mysql_query("SELECT nameNumber,time,user_id * FROM table_something WHERE '".$_POST['dateFilter']."' AND '".$_POST['placeFilter']."' ");
You are likely getting this because your SELECT
query has been formed incorrectly and is instead generating an error.
Not only do you need to remove the *
as shown below, but your WHERE
clause is likely invalid as you aren't actually comparing any values. Read more about the WHERE clause here
$result = mysql_query("SELECT nameNumber,time,user_id FROM table_something WHERE '".$_POST['dateFilter']."' AND '".$_POST['placeFilter']."' ");
You might also want to look into PDO or MySQLi extensions for manipulating your database as the mysql_*
functions are now deprecated and will be removed (see the big red box on the php manual page?). Also look into how to prevent SQL Injection to make your code safer