vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   PHP code check (https://vborg.vbsupport.ru/showthread.php?t=215043)

Excalibur82 06-01-2009 03:25 AM

PHP code check
 
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 [DATE]1243895205[/DATE] at [TIME]1243895205[/TIME] ---------------

I'm officially an idiot. I wasn't cleaning $catid so I cleaned it then did what I needed and it worked perfect.


All times are GMT. The time now is 03:32 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01055 seconds
  • Memory Usage 1,710KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete