#1
|
|||
|
|||
A little (more)help :)
Well, I'm making an adoptables selling sort of page, but the thing is, I cannot for the life of me figure how to get the mysql database from inserting $mysidia->user->username instead of the actual name when it updates the pet once it's purchased.
*!code removed to prevent usage until finished!* ;) The problem is at the end, starts here "} elseif($mysidia->input->action() == "purchase"){ " , posting whole code just in case it's something earlier on. -Also, I have to say thank you guys for all the previous help you've given 'newbie' me. It really helped me learn how to do this a lot better than staring at a couple of paragraphs. Last edited by Infernette; 03-02-2013 at 09:39 AM. |
#2
|
||||
|
||||
I did not look much into the detail, but it seems that there's something wrong with this line:
PHP Code:
PHP Code:
__________________
Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site. |
#3
|
|||
|
|||
It still seems to not credit it to the right user (Instead it gives it to $user XD), and that is the line that is giving me the problem indeed... I'll spend some more time trying to figure what it's doing tomorrow to see if I can fix it on my own, hopefully.
|
#4
|
||||
|
||||
Well apparently you have another error in your mysql database update query. Find every instance of:
PHP Code:
PHP Code:
__________________
Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site. |
#5
|
|||
|
|||
Thanks, I got it to work.
|
#6
|
||||
|
||||
You are very welcome, glad to see that you are doing some serious customization for your site atm.
__________________
Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site. |
#7
|
|||
|
|||
I have plans to set up a public breeding script now that I have this working. :)
|
#8
|
||||
|
||||
A breeding script? Thats interesting, I am actually working on an advanced breeding system for the next Mys v1.3.3 release. Will post details about it in a blog post in a few days, but Id like to know if people have other ideas in mind.
__________________
Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site. |
|
|
What's New? |
What's Hot? |
What's Popular? |