![]() |
|
#1
|
|||
|
|||
Please help! Insert into database problemHi all, I am pretty new to PHP programming and and have a problem with inserting customer data into my MySQL database, I think its probably a really obvious problem, but I've been staring at the same code for hours and its driving me mad
This code fragment is supposed to insert all the customer data into my Customer database. Each time I try, it returns to the clients form saying "The client has been saved" but it hasn't. I would greatly appreciate any help x Here's the code: PHP Code:
|
|||
|
#2
|
|||
|
|||
|
You're not checking if mysql_query is successful, so of course you won't know what happens. (In fact, by using the @ in front of mysql_query you're suppressing all warnings. You shouldn't use it while debugging.) Use something like this instead:
mysql_query($query) or die("Something went wrong; ".mysql_error()); |
Recent GIDBlog
Updates On The All New Toyota VIOS - Part III by Nihal
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Limit combo box and date time picker choice according to database created in folder | shinyhui | CPP / C++ Forum | 0 | 22-Feb-2005 20:16 |
| Limit combo box and date time picker choice according to database created in folder | shinyhui | MS Visual C++ / MFC Forum | 0 | 22-Feb-2005 02:13 |
| Insert problem in linked list with two function code | Kay Chan | CPP / C++ Forum | 1 | 03-Sep-2004 09:52 |
| insert data into database | jilshi | Web Design Forum | 0 | 29-Apr-2004 22:47 |
| urgent help needed :c + mysql insert | jack | C Programming Language | 1 | 13-Apr-2004 21:16 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The