![]() |
$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. |
the problem with that is it wont echo the output will it?
|
add an:
echo $a; exit; :) |
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? |
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
|
All times are GMT. The time now is 03:44 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|