hosted by liquidweb

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

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
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:

Parse error: parse error, unexpected T_IF, expecting ')' in /home/manalapan/domains/ on line 51

First Document: (

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

Second Document: (

session_unset(); //unsets all the variables

if (!$db) {

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


//authentication sql to the dbase
$authsql= "Select *
From users_tour a1 where
AND (userid='$login')";

header (if ($authexist) {

session_start(); //start the session


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

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

//assigns session variables to the form variables!


} else {

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

} //endif authexist


Thanks for your help!

Sponsored Links

Related posts from
Title Type Date Posted
Weekend Issue with Twitter Link Shorteners Connected to .CO Domain: Report Web Hosting News 2015-01-26 15:34:25
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
Nominet Pilot Program Hopes to Help SMBs Combat Cyber Threats with Support, Advice Web Hosting News 2014-02-07 15:12:39
Amazon Web Services Northern Virginia Outage Rocks Instagram, Vine Web Hosting News 2013-08-26 14:33:03

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
Log in with your username and 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.

Web Hosting News:
WHT Membership
WHT Membership



Welcome to

Create your username to jump into the discussion! 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?