You have 2 typos:
$query="selelct * from data";
should be:
$query="select * from data"; //select not selelct
and
mysql_selectdb($db);
should be:
mysql_select_db($db);
More Related Contents:
- The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead [duplicate]
- what will be the sql query code of this “Healthcare” database?
- save user images in MYSQL database by which method? [closed]
- How to apply bindValue method in LIMIT clause?
- Find nearest latitude/longitude with an SQL query
- How to group by week in MySQL?
- Mysql order by specific ID values
- What is this operator in MySQL?
- SELECT * WHERE NOT EXISTS
- Find total number of results in mySQL query with offset+limit
- mysql_fetch_array() expects parameter 1 to be resource problem [duplicate]
- Row number per group in mysql
- Resetting ROOT password in MySQL 5.6
- Turn database result into array
- MySQL #1093 – You can’t specify target table ‘giveaways’ for update in FROM clause
- Field ‘id’ doesn’t have a default value?
- Update query with PDO and MySQL
- (mysql, php) How to get auto_increment field value before inserting data?
- “SELECT COUNT(*)” is slow, even with where clause
- MySQL – SQL_BIG_SELECTS
- PHP to store images in MySQL or not?
- How to use unsigned int / long types with Entity Framework?
- UTF-8 character encoding battles json_encode() [duplicate]
- Can I launch a trigger on select statement in mysql?
- How do you write a case insensitive query for both MySQL and Postgres?
- MySql. How to use Self Join
- SQL doesnt differentiate u and ü although collation is utf8mb4_unicode_ci
- Laravel Eloquent Ignore Casing
- How can I generate a round robin tournament in PHP and MySQL?
- get_result() Doesn’t Work even mysqlnd is enabled