![]() |
|
#1
|
|||
|
|||
I have to use an other method ?Hi.
Why the code works only for the print instruction ?– I mean it shows on the screen the results—but in the data bases it only records, the first row of values. What method do I have to use ? The data for this script are sent to it by a post action PLEASE HELP ME !! PHP Code:
Thanks. |
|||
|
#2
|
||||
|
||||
|
Hello C05MIN,
You should really add mysql_error() to the script, like in this example below: PHP Code:
I am guessing, $factura a PRIMARY KEY value? If yes, then this is your problem isn't it? You can't have multiple rows with $factura being 55 in each. Also you need to add those single quotes in your values if they are not numeric... Also if I were you, I would use the LOOP to compile the values and then do the INSERT just once outside of it. Like this maybe... PHP Code:
Finally, don't forget to pass ANY value off the form through mysql_escape_string() if your magic_quotes_gpc setting is OFF. __________________
J de Silva Learning Journal | GIDForums™ | GIDNetwork™ | GIDWebhosts™ | GIDSearch™ |
Recent GIDBlog
Vista ?Widgets? on Windows XP by LocalTech
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| calling abstract base class method calls draw instead | achoo | FLTK Forum | 1 | 19-Dec-2004 09:38 |
| The requested method POST is not allowed | andret | Apache Web Server Forum | 1 | 14-Jun-2004 16:29 |
| regarding main method | jerry | C++ Forum | 18 | 09-Mar-2004 18:48 |
| Method POST is not allowed on the URL | jwalsh | Computer Software Forum - Windows | 2 | 27-Feb-2004 15:36 |
| Best method to get listed on Google | no1special_1999 | Search Engine Optimization Forum | 4 | 23-Sep-2003 23:34 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The