Biggest nub question

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Biggest nub question

Post 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
microthick
Forum Regular
Posts: 543
Joined: Wed Sep 24, 2003 2:15 pm
Location: Vancouver, BC

Post by microthick »

Missing quotes around jc?

if (isset($user == "jc" && $pass == "jc"))
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Post by John Cartwright »

nope :(

UPDATE**

heh, nvm this works fine....

Code: Select all

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