View Full Version : PHP code check
Excalibur82
06-01-2009, 03:25 AM
Just need someone to go over this snippet of code and tell me if you see anything wrong with it. Currently my mod is not updating the table with the information, instead it does nothing.
I was getting Error: 4 and I have no clue what that means as I'm sure its directed at something I'm doing or within vB.
Thanks
Lynne
06-01-2009, 04:07 AM
Is that a plugin - if so, what hook? Your ifs and elses don't add up correctly either.
Excalibur82
06-01-2009, 04:21 AM
No this is not a plugin, it is in my own custom addon. They actually do add up from what I can see.
That is the full process.
Lynne
06-01-2009, 04:34 AM
When I was playing with attachments and using $upload, I think error 4 meant the file failed to upload. Does that make sense there?
Excalibur82
06-01-2009, 04:51 PM
Yes it does, in other words if the user chooses not to upload a new file, then I need to have it check for a file or not, if no file process text areas only. Still the problem remains with the data not being updated to the entry in the database. So do you see anything wrong with my UPDATE queries?
--------------- Added 1243895205 at 1243895205 ---------------
I'm officially an idiot. I wasn't cleaning $catid so I cleaned it then did what I needed and it worked perfect.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.