The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
i'm working on a raffle system and so far so good
![]() however this update statement is not working $urh = $DB_site->query("UPDATE raffle_images SET comment='$comment' WHERE id='$id'"); i'm echo out $urh afterwards btw and it just returns a 1!!!! how does that give me one? and it does it for all my images in the database :disappointed: i tried using different variables for urh, hence why it's urh haha.... but it alwasy gives me 1, which is odd :cross-eyed: the $id comes from teh title bar, which it is catching correctly i checked. this is for a script in admin panel btw... my other update portion works fine just like this.... thanks all :banana: |
#2
|
|||
|
|||
![]()
Updates never return anything useful beyond success or failure (and on failure the script will die anyway)...what are you trying to do?
|
#3
|
|||
|
|||
![]()
thanks for your reply and it's a field in the database comment that i need to update through a form, here's the entire portion of the script
PHP Code:
is workign as it comes up and gives me that it has been updated, although it has not. but with what your saying above is true, and it's eitehr gonna go through or have an error, i'm thinking it is throwing an error and that the error is error # 1 whatever that one is. thanks ![]() |
#4
|
|||
|
|||
![]()
If it fails, the script will die anyway. Your failure code will never execute.
|
#5
|
|||
|
|||
![]()
i'm gonna add or die(""); and see if it is my query, which i'm guessing it must be
![]() thanks for your help, hopefully i'll figure it out soon |
#6
|
|||
|
|||
![]()
You don't seem to understand. With the MySQL wrapper class that vB uses, it will die by itself if the query fails.
|
#7
|
|||
|
|||
![]() Quote:
ohhhhh yeah your right i didn't understand... however I fixed my problem, what I had forgotten to do in the form action was PHP Code:
![]() thanks alot though...... so no matter what query you run in any VB page the query dies if it's failure then? ![]() |
#8
|
|||
|
|||
![]()
As long as you call it via $DB_site->query(), then yes
![]() |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|