This is a discussion on "Insert record in mysql" within the Databases section. This forum, and the thread "Insert record in mysql are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
Insert record in mysql
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
|||
|
|||
|
Insert record in mysql
Hi, im trying to insert a record into a database - ive done this before but I can't spot what ive done wrong with the code im using and its not inserting the record.
@mysql_select_db($database) or die( "Unable to select database"); mysql_query($query); $query = "INSERT INTO table1 VALUES ('$one','$two','','$three','$four','$five','$six', '$seven','$eight','$nine','$ten')"; mysql_close(); if anyone can spot the error it would be much appreciated - I've checked that the variables are being set correctly **Sorted it now (lol put mysql_query......... before $query.....) Last edited by djme; Dec 23rd, 2005 at 20:34. |
|
|
|
#2
|
|||
|
|||
|
Re: Insert record in mysql
haha easily done
|
![]() |
| Tags |
| insert, record, mysql |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Asp.net insert to mysql problem | boyindie | ASP.NET Forum | 1 | Aug 24th, 2007 03:00 |
| updating mysql record | djme | Databases | 4 | Jan 5th, 2006 00:09 |
| insert record | accessman | Databases | 1 | Oct 15th, 2005 02:12 |
| Insert Record | redkyna | Classic ASP | 11 | Aug 25th, 2004 23:46 |
| how to quickly insert a record | gab | Classic ASP | 5 | Oct 31st, 2003 19:28 |