• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Solved [PHP] Adding Outfit Column to List

Extrodus

|| Blazera.net ||
Premium User
Joined
Dec 22, 2008
Messages
2,737
Solutions
7
Reaction score
541
Location
Canada
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
 
Last edited:
Back
Top