This is a discussion on "Ah form processing doing my head in!" within the PHP Forum section. This forum, and the thread "Ah form processing doing my head in! are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
Ah form processing doing my head in!
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
||||
|
Ah form processing doing my head in!
Hi all. I know theres some pretty good php'ers round here and afetr spending the best part of three hours getting more and more frustrated I thought maybe you could take a peek at my code for me and try and find what i've done wrong!
My table... Field Type Collation Attributes Null Default Extra ID int(6) UNSIGNED No auto_increment client varchar(200) latin1_swedish_ci Yes NULL type varchar(200) latin1_swedish_ci Yes NULL imgpath varchar(200) latin1_swedish_ci Yes NULL imgalt varchar(200) latin1_swedish_ci Yes NULL worklink varchar(200) latin1_swedish_ci Yes NULL section varchar(60) latin1_swedish_ci Yes NULL description text latin1_swedish_ci Yes NULL and the code is....(sorry its long)
its wierd because updating an existing entry works...but new entry doesn't. It worked untill I changed the combo box on the form because i was rewriting the urls and rather than the id I wanted to use link_name in the table. Thanks Mike |
|
|
|
|||
|
Re: Ah form processing doing my head in!
Not sure if i am correct here or not just yet, I am at work and dont have to much time to dive into it. But a couple questions, Do you get an error message? if so what is the error (check logs as well). But, I think the problem lies in line 48: if ($result = $connector->query($insertQuery)) i'll look more into it when i get home. but i suspect break that down into steps and lets see if we cant solve this. I'll be back after work
|
|
|||
|
Re: Ah form processing doing my head in!
Does this code function just as the inserter, or do you use it to update too?
Should be:
Should be:
Not exactly sure of your problem though. Do you get any error messages? Last edited by balaclave; Jul 17th, 2007 at 23:09. |
|
|||
|
Re: Ah form processing doing my head in!
Quote:
I don't think that SQL query was valid. Are you sure that isn't what you changed? Last edited by balaclave; Jul 17th, 2007 at 23:09. |
|
||||
|
Re: Ah form processing doing my head in!
Yea it was something in and around that area.Tell you what I'll post up the now working code....
Right I added this into the code
Mike |
|
|||
|
Re: Ah form processing doing my head in!
OOoops.
I got it wrong. I've edited my above posts. You started with the query in brackets, but didn't close them at the end. In the second example, you didn't attempt to wrap the query in brackets. So either, you can't wrap queries in brackets, or you must close them as usual. I.e. Your original was like:
|
![]() |
| Tags |
| combo box, php |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Processing application and agreement form | beerboi | PHP Forum | 1 | Jun 26th, 2006 14:36 |
| problems with form processing | tooie | Classic ASP | 3 | Apr 26th, 2006 17:34 |
| Processing Form ASP using GET method to Email | rbrown1972 | Classic ASP | 2 | Feb 25th, 2005 05:23 |
| Form processing javabean | kinjiro | PHP Forum | 0 | Aug 9th, 2004 14:18 |
| Template Processing | vor | Classic ASP | 3 | Sep 10th, 2003 00:01 |