I am trying to add a query from one file, and modify it to be used in another.
Both .php files are for the cast system, one has an outfit column and one doesnt.
I have modified the table, and have a broken image showing up. When I got to the image it shows the correct link, but no numbers for the outfit. So my theory is the $q query isnt working properly - I think it has to do with the if statement since it checks if its ordered by level/vocation..
Bugged Outfit Column:
http://pastebin.com/s0mWfUFq
Working Outfit Column:
http://pastebin.com/0aGDYBQu
Any help is appreciated, I understand how to store a query; but the code I'm transforming from has a weird variable setup making it a bit harder.
Edit: Solved myself by adding the description column to the other .php file instead, much easier of a task.
Fixed .php file for anyone who wants it: http://pastebin.com/afyL5SUM
Both .php files are for the cast system, one has an outfit column and one doesnt.
I have modified the table, and have a broken image showing up. When I got to the image it shows the correct link, but no numbers for the outfit. So my theory is the $q query isnt working properly - I think it has to do with the if statement since it checks if its ordered by level/vocation..
Bugged Outfit Column:
http://pastebin.com/s0mWfUFq
Working Outfit Column:
http://pastebin.com/0aGDYBQu
Any help is appreciated, I understand how to store a query; but the code I'm transforming from has a weird variable setup making it a bit harder.
Edit: Solved myself by adding the description column to the other .php file instead, much easier of a task.
Fixed .php file for anyone who wants it: http://pastebin.com/afyL5SUM
Last edited: