Welcome Guest ( Log In | Register)



 
Reply to this topicStart new topic
> Ah! Mysql Problems Keep Occuring!, AGAIN!
Dayzed
post Apr 12 2005, 09:06 PM
Post #1


Member [Level 2]
*****

Group: Members
Posts: 78
Joined: 18-January 05
Member No.: 3,318



I dont know if it is trap17 or what, but I had people who used this code, the same exact one, and it works for them some are not with trap17 though. In mysql.sql, I have a problem with line 216 and 669. These are the codes:

Line 669:

CODE
break;

 default:
 empty($userstylem) ? $userstylem = 1 : '';

 $theme_path = mysql_result(mysql_query("SELECT theme_path FROM themes WHERE theme_id = '$userstylem'"), 0);




Line 216:

CODE
if (isset($_COOKIE['zXi7g']))
 die;

$result = mysql_query('SELECT ip_addr FROM banned_ips');

while ($row = mysql_fetch_row($result))



This is the error message I get:

www.gigapass.trap17.com
Go to the top of the page
 
+Quote Post
quiksilver
post Apr 12 2005, 09:39 PM
Post #2


Premium Member
********

Group: Members
Posts: 199
Joined: 15-January 05
Member No.: 3,284



I am using the LUE2 source, but I am not having any of those problems. I don't know how to help you either. Sorry.
Go to the top of the page
 
+Quote Post
Dayzed
post Apr 12 2005, 09:44 PM
Post #3


Member [Level 2]
*****

Group: Members
Posts: 78
Joined: 18-January 05
Member No.: 3,318



Are you using the old one or the new one?


The thing wrong is the header, not the sql.sql, sorry.
Go to the top of the page
 
+Quote Post
GM-University
post Apr 12 2005, 09:44 PM
Post #4


Super Member
*********

Group: Members
Posts: 287
Joined: 23-February 05
Member No.: 3,945



Hmm, I am not skilled with LUE2, I've never heard of it, where is there homepage? If they have have a support forum, or something like that you should ask there, and don't spam the shoutbox like this the rules are not tell people to look at topics, we read the forums...
Go to the top of the page
 
+Quote Post
Dayzed
post Apr 12 2005, 09:47 PM
Post #5


Member [Level 2]
*****

Group: Members
Posts: 78
Joined: 18-January 05
Member No.: 3,318



The site is down right now...



Well I kinda would like to have a site, and when I usualy get replys to my help topics they are answers like, "Re code it, I dunno."


v_v
Go to the top of the page
 
+Quote Post
Argoth
post Apr 12 2005, 09:50 PM
Post #6


Newbie [Level 2]
**

Group: Members
Posts: 29
Joined: 6-April 05
Member No.: 5,318



Are there other mysql_queries in the file?
Go to the top of the page
 
+Quote Post
Johnny
post Apr 13 2005, 04:42 AM
Post #7


[::Boy Wonder::]
***************

Group: Members
Posts: 2,096
Joined: 5-April 05
From: Costa Mesa, CA
Member No.: 5,294
T17 GFX Crew



Well, I dunno a whole lot about php, but in the first one, something seems odd with that question mark, and in the second one, that cookie name looks odd.

Sorry I can't help more, but I figured I'd put in my two cents to maybe give a lead?
Go to the top of the page
 
+Quote Post
snlildude87
post Apr 13 2005, 12:19 PM
Post #8


Moderator
***************

Group: Members
Posts: 2,325
Joined: 8-March 05
From: Mawson, Antarctica
Member No.: 4,254



The question mark is a condition statement, sort of like if...then...except in this one, a value is stored if the condition is met
Go to the top of the page
 
+Quote Post
Dayzed
post Apr 13 2005, 08:10 PM
Post #9


Member [Level 2]
*****

Group: Members
Posts: 78
Joined: 18-January 05
Member No.: 3,318



So thats not what is wrong with it?
Go to the top of the page
 
+Quote Post
guangdian
post Apr 14 2005, 02:12 AM
Post #10


Trap Grand Marshal Member
***********

Group: Members
Posts: 1,182
Joined: 24-September 04
Member No.: 1,245