Welcome Guest ( Log In | Register)



2 Pages V  < 1 2  
Reply to this topicStart new topic
> Parse Error: Syntax Error, Unexpected '<' On Line 29
nol
post Feb 16 2008, 05:30 PM
Post #11


Super Member
*********

Group: [HOSTED]
Posts: 260
Joined: 27-May 07
Member No.: 43,758



i talked to alex, he said i need to connect to the database in the else statement. I'll try both when the cpanel works again for me, I just need to know about the leader thing though. Like the user who registers the clan, gets their username put into the database, without filling out a line for it: how can I do that?
Go to the top of the page
 
+Quote Post
truefusion
post Feb 16 2008, 10:23 PM
Post #12


Ephesians 6:10-17
Group Icon

Group: [MODERATOR]
Posts: 1,994
Joined: 22-June 05
From: somewhere... Where am i?
Member No.: 8,528
myCENT:72.96



The problem with MySQL in your script is that you close the MySQL connection before you even do anything to access or modify the database. On, i would assume, line 11, you close the MySQL connection, but on line 18 you try to access the MySQL database with the mysql_query() function—this won't work. Although in PHP you don't have to use mysql_close(), but if you're going to use it, make sure it's at the end—after all other MySQL queries.

QUOTE(nol)
Like the user who registers the clan, gets their username put into the database, without filling out a line for it: how can I do that?

I don't think that's possible, unless you want to do the work for them.
Go to the top of the page
 
+Quote Post

2 Pages V  < 1 2
Reply to this topicStart new topic

Collapse

> Similar Topics

Topics Topics
  1. 403 Forbidden Error When Accessing My Site(11)
  2. Error Code In Subscriptions Page(5)
  3. Database Connection Problem(5)
  4. Trying To Install Phpbb3 [resolved](0)
  5. Error In Credits [resolved](0)
  6. Error Trying To Edit File Using Cpanel Filemanager(8)
  7. Making Custom Error Pages With Cpanel(4)
  8. Error Using Fantastico!(4)
  9. 'page Not Found' Error [resolved](8)
  10. Error(6)
  11. Installing Joomla And Shell Question(0)
  12. Suspended Account Error [resolved](12)
  13. Help! Forum Error Please Reply(4)
  14. Error During Upgrade [resolved](3)
  15. Help: Internet Server Error(20)
  1. Unexpected Hosting Deletion - My Apologies(0)
  2. Email Creation Error(3)
  3. Keep Getting Socket Error(3)
  4. Mysqli Error - Phpbb3(3)
  5. Phpmyadmin Error(4)
  6. Phpmyadmin Error [resolved](7)
  7. Coppermine Gallery Error(2)
  8. Page Load Error When Accessing Cpanel(0)
  9. Error 28 (on Phpmyadmin)(10)
  10. Phpbb3 - Error 28(5)
  11. Wordpress Error - Bytes Exausted [resolved](7)
  12. Hosting Problem [resolved](22)
  13. Page Load Error When Trying To Get Into Control Panel(2)


 



- Lo-Fi Version Time is now: 1st December 2008 - 07:39 PM