hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Web Design and Content : PHP Golf Problems
Reply

Forum Jump

PHP Golf Problems

Reply Post New Thread In Web Design and Content Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old
Newbie
 
Join Date: Apr 2004
Posts: 13

PHP Golf Problems


I am having some problems with some PHP.

Here are the two files that aren't clicking when I try to login.

The problem is:

header()
Parse error: parse error, unexpected T_IF, expecting ')' in /home/manalapan/domains/manalapangolf.com/public_html/golf/auth.inc.php on line 51

First Document: (dbasecon.inc.php)

header(<?
<A href="mailto:$db=@mysql_connect("localhost">$db=@mysql_connect("localhost", "manalapan_score", "score") or header("Location:login.php?xc=3112");
mysql_select_db("manalapan_score",$db);
?>)


Second Document: (auth.inc.php)

<?
session_unset(); //unsets all the variables

if (!$db) {

header("Location: login.php?xc=3112");
exit();
}

$password=$HTTP_POST_VARS['password'];
$login=$HTTP_POST_VARS['login'];



//authentication sql to the dbase
$authsql= "Select *
From users_tour a1 where
(password='$password')
AND (userid='$login')";
$authquery=@mysql_query($authsql);
$authrow=@mysql_fetch_array($authquery);
$authexist=@mysql_numrows($authquery);
$login_id=$authrow[userid];


header (if ($authexist) {
extract($authrow);

session_start(); //start the session

$authdata=array("login_id"=>$login);
session_register('authdata');

if (!$PHPSESSID) { //register the sessions if there's no sessionid
session_register('login_id');



} elseif (!$login_id) { //if any session variable undeclared, register them!
session_register('login_id');

}
//assigns session variables to the form variables!

$login_id=$login;

} else {

header("Location: login.php?xc=24601");
exit();

} //endif authexist


?>


Thanks for your help!



Sponsored Links
Reply

Related posts from TheWhir.com
Title Type Date Posted
Report: Microsoft Buys 100 Acres of Iowa Land for Data Center Web Hosting News 2014-08-04 12:02:25
Lance Crosby Lends His Voice to IBM Cloud Commercial Blog 2014-04-14 15:11:29
HostMetro Listing 2014-12-10 12:45:31
HostMetro Listing 2014-12-10 12:45:32
HostMetro Listing 2014-12-10 12:45:30


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
WHT Host Brief Email:

We respect your privacy. We will never sell, rent, or give away your address to any outside party, ever.

Advertisement:
Web Hosting News:
WHT Membership
WHT Membership



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?