Page 1 of 1

Biggest nub question

Posted: Fri Jan 30, 2004 1:46 am
by John Cartwright
It's getting late and I'm a bit "out of it" if you know what I mean :d...and I wanna finish this script b4 I go to bed... :S

Code: Select all

<?
	if (isset($user == jc && $pass == jc))
	{
	echo "1";
	}else{
               echo "2";
                }
I'm getting

Code: Select all

Parse error: parse error, expecting `','' or `')'' in /home2/***/***/***/***.php on line 2
:s i KNow its very nub to ask this but I have no choice. TY

Posted: Fri Jan 30, 2004 1:48 am
by microthick
Missing quotes around jc?

if (isset($user == "jc" && $pass == "jc"))

Posted: Fri Jan 30, 2004 1:59 am
by John Cartwright
nope :(

UPDATE**

heh, nvm this works fine....

Code: Select all

<?php
	if (isset($user))
	{
	echo "";
	}else{
?>