![]() |
|
#11
|
||||
|
||||
Re: Script to manage InvoicesQuote:
My attempt would have gone about a solution the HARD way, which would've involved a situation that would give Pulaskee and I both a moment!__________________
Use the force...read the source!! WYCIWYG -- what you code is what you get! |
||||
|
#12
|
|||
|
|||
Re: Script to manage InvoicesNow you tell me
Turbo yours makes more sense to me, but i will try Admins next and see what i can do with it. i think i will still run into my issue of trying to getting mutable items in the array to update if more then one entree is edited. If that happens. |
|
#13
|
||||
|
||||
Re: Script to manage InvoicesQuote:
If you really want us to help you quickly, give us something to work with. Maybe give us sample data off your DB table (maybe 5 lines). And also give us the markup of the form. |
|
#14
|
|||
|
|||
Re: Script to manage InvoicesThe db only has a few entrees and all of them are test entrees to make sure the initial entree form was working. Its a simple html file, and the php is a simple insert.
I do not have a ton of security in mind. hence the openness of the inputs. This system is NOT easily accessible via the internet. There are some things that will change, but there only cosmetic. Example, the ID input will be hidden so it cant be tampered with. But to work on it i need to see it. |
|
#15
|
|||
|
|||
Re: Script to manage InvoicesWhy wont this work?
Code:
|
|
#16
|
||||
|
||||
Re: Script to manage InvoicesWhat about the code from the form side?
__________________
Use the force...read the source!! WYCIWYG -- what you code is what you get! |
|
#17
|
|||
|
|||
Re: Script to manage InvoicesRight, sorry spaced it.
For this i used your concept because i had it done already. Code:
|
|
#18
|
|||
|
|||
Re: Script to manage InvoicesI just thought, could it be that the generated number dosnt correspond with the ID number? example. the first generated number is one 1 but the first ID in the array is 2? or would it jut skip over and go to the next number?
|
|
#19
|
||||
|
||||
Re: Script to manage InvoicesThinking about what the admin has shared with us, I think that explicitly setting the id value as the array index will be more like what you need. However, that could also make for 'useless' processing, as the admin has also suggested, because of the potential to process rows that don't really need an update. [and a potential to change a value from what it was originally, when not actually desired]
I'm thinking you could take each row [in the form] like this: (inside the loop) PHP Code:
PHP Code:
__________________
Use the force...read the source!! WYCIWYG -- what you code is what you get! |
|
#20
|
|||
|
|||
Re: Script to manage InvoicesError in query: UPDATE nine2400 SET Paid = 4lll WHERE ID = 2 LIMIT 1
i don't under stand why i would get this. the code makes sense. i read up some on $key i never knew about it and its helpful. i think im understanding how that works now. ID 2 is the first record in the DB record one was blank due to a error and i deleted it. i cant see any mistakes in the table or the DB. so i dont know why this wont work. |
Recent GIDBlog
Accepted for Ph.D. program by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| how do u guys know???? | devin | Open Discussion Forum | 9 | 06-Feb-2007 22:29 |
| + Hey Guys | EthicsD | New Member Introductions | 0 | 10-Oct-2006 11:39 |
| Newbie Problems. Help me guys | the_last_rites | Apache Web Server Forum | 4 | 18-Jan-2005 12:57 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The