The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#11
|
||||
|
||||
$a = myql_affected_rows();
place it right after the mysql_query call you need to check. (right after your update query). $a will then contain the number of affected rows, 1 in your case, if the query ran. |
#12
|
|||
|
|||
the problem with that is it wont echo the output will it?
|
#13
|
||||
|
||||
add an:
echo $a; exit; |
#14
|
|||
|
|||
Then do a: 'echo "$a";' after that.
But i still don't get your script, does it give you any SQL errors? - I think you inserted the update statement inside an existing code block, and have commented the last part of the script out. - Why don't you use the standard vB functions for validating login, and accessing database? - Script should produce an error anyway because 'if(!$res[c]) ' would be true (you don't run the select count query anymore) and the script would try to insert a new user with that id. - Did you run the manual select query before and after running the script? |
#15
|
|||
|
|||
the thing is that the script isnt accessed when you access another page, that states the forum rules, the script runs in the background, so even if it did echo I wouldnt see it, It seems to work fine when creating the accounts and what not, I just cant make it set options to 87
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|