OR ?
Jan DS
10/07/2010 15:01:04Code (php)
1
2
3
4
5
6
2
3
4
5
6
<?
if($row['player1'] = $_SESSION['user_id'] || $row['player2'] = $_SESSION['user_id']
|| $row['player3'] = $_SESSION['user_id'] || $row['player5'] = $_SESSION['user_id']
|| $row['player6'] = $_SESSION['user_id'] || $row['player7'] = $_SESSION['user_id']
|| $row['player8'] = $_SESSION['user_id'] || $row['player9'] = $_SESSION['user_id']
|| $row['player10'] = $_SESSION['user_id']){ ?>
if($row['player1'] = $_SESSION['user_id'] || $row['player2'] = $_SESSION['user_id']
|| $row['player3'] = $_SESSION['user_id'] || $row['player5'] = $_SESSION['user_id']
|| $row['player6'] = $_SESSION['user_id'] || $row['player7'] = $_SESSION['user_id']
|| $row['player8'] = $_SESSION['user_id'] || $row['player9'] = $_SESSION['user_id']
|| $row['player10'] = $_SESSION['user_id']){ ?>
Wat is hier fout aan?
Gewijzigd op 10/07/2010 15:01:35 door Jan DS
PHP hulp
05/11/2024 11:39:18Ruben Portier
10/07/2010 15:08:31Welke foutmelding krijg je?
EDIT: Volgens mij moet == gebruiken ;)
EDIT: Volgens mij moet == gebruiken ;)
Gewijzigd op 10/07/2010 15:10:40 door Ruben Portier
Jan DS
10/07/2010 15:14:39Afra ca
10/07/2010 15:49:39Precies. Er zal geen foutmelding komen omdat er gewoon variabelen aangemaakt worden, wat evaluate als TRUE in je if clausule.