![]() |
I wish I could find out why the codes wont work for you, but I am no good at AJAX at this point. Sorry...
|
It's ok... but new problem with trade. In the redeem there is is_numeric but when I change that to !empty I get this
The trade either does not exist or has been revoked by the other user. |
First of all, !empty() can be used to replace is_numeric(), but I am pretty sure the redeem.php has !is_numeric(). See the difference? ! means 'not', so it is the opposite to is_numeric(). Of course it wont work if you change !is_numeric() to !empty(), it should be empty() instead.
I also do not recommend you to change every is_numeric() to !empty(), unless all your table IDs are alphanumeric. If the trade id is still numeric, you are better off just leave the code the way it was. |
Ok when I left it as it was the adoptable offered wasn't showing up... so I changed this:
Code:
if($row->adoptableoffered != "" and $row->adoptableoffered != 0){ Code:
if($row->adoptableoffered != "" and $row->adoptableoffered != "0"){ |
Yeah it is quite interesting to see how the code works. Your adoptables id is alphanumeric, so you should use "0" instead of 0. Alphanumeric ids are strings, while numeric ids are integers, they work differently.
|
That is good to know... better go fix my fox scripts. Thank you HoF ;)
|
You are welcome, enjoy.
|
One more thing :D Is it possible to add 1000 to every users money using sql?
|
All times are GMT -5. The time now is 08:53 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.