You need to properly format your strings for insert:
$query = mysql_query("INSERT INTO hireus (name, cname, email, telephone)
VALUES ('ashfaq', 'muhm', 'ashfaq@', '1234566')");
But that’s just the tip of the iceberg with this code…
More Related Contents:
- Laravel one to many relation with a one to one relation
- Using PHP data in MySQL [closed]
- which is better every user have a table or just a row [closed]
- PHP – Change value y,n in database [closed]
- PDOException SQLSTATE[HY000] [2002] No such file or directory
- Many-to-many relationships examples
- Automated or regular backup of mysql data
- strange character encoding of stored data , old script is showing them fine new one doesn’t
- Warning: mysql_connect(): [2002] No such file or directory (trying to connect via unix:///tmp/mysql.sock) in
- How to upload images into MySQL database using PHP code
- PDO mysql: How to know if insert was successful
- How to loop through a mysql result set
- MySQL check if a table exists without throwing an exception
- Maximum execution time in phpMyadmin
- Fetching single row, single column with PDO
- Mysql No connection could be made because the target machine actively refused it
- Replacing mysql_* functions with PDO and prepared statements
- Is there any way to check the performance of mysql Indexing
- IP address storing in MySQL database using PHP [duplicate]
- Selecting a float in MySQL
- phpmyadmin automatic logout time
- MySQL skipping first row
- Using LIKE in bindParam for a MySQL PDO Query [duplicate]
- Fatal error: Call to undefined function mysqli_result()
- Laravel nested relationships
- Selecting all fields except only one field in mysql [duplicate]
- mysqli – fetch_Array error call to a member function fetch_array() on a non-object mysqli [duplicate]
- mysql injection damages?
- How do I save PHP session data to a database instead of in the file system?
- Mysqli multiple row insert, simple multi insert query [duplicate]