My code Problem
I fixed it.
I want to auto pm to users who get this transfer bonus. but it occurs this. SQL Error You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ' 2008-10-21 17:02:56, 'You receive money from ticc Value K\n', 0)' at line 1 Code:
$msg = sqlesc("You receive money from ".$CURUSER['username']." value ".$money." K"); |
without seeing the entire code i cant help much but
go to your html output (i.e. view source in your browser) and look for the hidden input see what the value is .. it should be outputting the value of $user['id'] but from the error im guessing it is not .. either that or the code in userdetails uve added doesnt account for id being sent via post and is wanting the id var sent by GET .. as i said without seeing the mod you've installed as well as the code uve added i cant help |
1 Attachment(s)
value is correct. Code:
|
find
Code:
Code:
|
oh thx you very much.
My page is running. Very thx you. If I have another problems, can I ask you again? |
as long as u post in the forums and dont pm me .. u'll be waiting an extremely long time for replies via PM
|
if ($money > $user["seedbonus"])
I think this is wrong because I put the number just 1 it's say You don't have enough money but I have 13.4. |
replace the print statement that says u dont have enough money with
Code:
print("Money: ".$money."Allowed: ".$user['seedbonus'].""); |
I see the errors.
Thank you It should be Code:
if ($money > $CURUSER["seedbonus"]) Code:
else |
wheres the query that does it all
something like Code:
@mysql_query("UPDATE users SET seedbonus = seedbonus + $money WHERE id=$receiver"); |
All times are GMT +2. The time now is 22:26. |
Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.