Re: New years resolution: To get serious with my programming! Anyone wanna help? :)
| From: | Jason Pruim | Date: | Tue, 08 Jan 2008 18:18:33 +0000 |
| Subject: | Re: New years resolution: To get serious with my programming! Anyone wanna help? :) | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-266897@lists.php.net to get a copy of this message | ||
On Jan 8, 2008, at 12:06 PM, Daniel Brown wrote:
On Jan 8, 2008 11:54 AM, Jason Pruim <japruim@raoset.com> wrote:anusanusanusanusanusanusanusanusanusanusanusanusanus :PHi Everyone, Happy New Year a week late! :)And to you, as well.most of the time the script works perfectly, but on the occassion it doesn't like when jupiters third moon aligns with uranus, I want the user to be notified to take their head out of their ass... :)Do not discuss myanus in any public forum, Jason. This will be your final warning. ;-P
As I said in the other e-mail, the query works just fine. But if for some reason the insert doesn't succeed I want it to tell the user that it didn't succeed and that they should call their friendly underpaid under-appreciated network admin (AKA: ME :)) -- Jason Pruim Raoset Inc. Technology Manager MQC Specialist 3251 132nd ave Holland, MI, 49424 www.raoset.com japruim@raoset.comWhat I have tried is this: $querytest = "INSERT INTO current VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)";I'm not sure of your exact problem, to be honest, but this part of the statement should probably be: $querytest = "INSERT INTO current(field1,field2,field3,field4)"; $querytest .= " VALUES('value1','value2','value3','value4')"; Keep in mind that I only broke up the query line to avoid convolution due to linebreaks.