![]() |
Home Community Mys-Script Creative Off-Topic |
|
![]() |
|
Thread Tools | Display Modes |
#11
|
||||
|
||||
![]()
I wish I could find out why the codes wont work for you, but I am no good at AJAX at this point. Sorry...
__________________
![]() Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site. |
#12
|
||||
|
||||
![]()
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. |
#13
|
||||
|
||||
![]()
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.
__________________
![]() Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site. |
#14
|
||||
|
||||
![]()
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"){ |
#15
|
||||
|
||||
![]()
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.
__________________
![]() Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site. |
#16
|
||||
|
||||
![]()
That is good to know... better go fix my fox scripts. Thank you HoF ;)
|
#17
|
||||
|
||||
![]()
You are welcome, enjoy.
__________________
![]() Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site. |
#18
|
||||
|
||||
![]()
One more thing :D Is it possible to add 1000 to every users money using sql?
|
![]() |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Make pets' trade status Not For Trade by default | tahbikat | Questions and Supports | 3 | 12-13-2015 10:21 PM |
View Public Trade Offers not working. | Pear | Questions and Supports | 16 | 03-10-2014 06:29 PM |
Version 3? | AlexC | Feedback and Suggestions | 8 | 09-09-2011 05:37 PM |
When the new version?? | SieghartZeke | Suggestions and Feature Requests | 4 | 12-02-2010 04:53 AM |
Mac version? | Smoggy | Questions and Supports | 7 | 08-01-2010 05:36 PM |
What's New? |
What's Hot? |
What's Popular? |