You need to query the database first.
$queryFP = ("SELECT * FROM db");
Should be:
$queryFP = mysql_query("SELECT * FROM db");
More Related Contents:
- Retrieving data from database? [closed]
- Can I store query result of one field into different variables? if not then what should I do for that?
- My login page won't return anything
- i have stored array in database as a string how can retrieve that array?
- How to save date of user login into another table using php and Mysql
- Get substring from string in mysql where length of substring is dynamic
- How do I save the output of this code into a file? (PHP) [closed]
- Can I parameterize the table name in a prepared statement?
- How to rename uploaded file before saving it into a directory?
- MySQL integer field is returned as string in PHP
- Insert array into MySQL database with PHP
- Running MySQL *.sql files in PHP
- MySQL datetime fields and daylight savings time — how do I reference the “extra” hour?
- PDO::fetchAll vs. PDO::fetch in a loop
- SQLSTATE[HY093]: Invalid parameter number: number of bound variables does not match number of tokens on line 102 [closed]
- Comma separated values in MySQL “IN” clause
- MySQL Prepared Statements
- MySQL PHP incompatibility
- Set timezone in PHP and MySQL
- PHP PDO and MySQLi [duplicate]
- SQLSTATE[HY000] [2002] A connection attempt failed.. – When attempting to connect from Local to remote server
- How to store an array into mysql?
- Doctrine – How to print out the real sql, not just the prepared statement?
- Error 1148 MySQL The used command is not allowed with this MySQL version
- How can I debug why simplest MySQL query returns false?
- PHP: mysql v mysqli v pdo [closed]
- PHP MySQL set Connection Timeout
- How can I insert large files in MySQL db using PHP?
- The ultimate emoji encoding scheme
- Add Prefix to auto-increment in mysql db