Onbekend |
|
dit is een stukje code
<?php
include("dogs.inc"); #14
$connection = mysql_connect($host,$user,$password)
or die ("Couldn't connect to server."); #16
$db = mysql_select_db($database, $connection)
or die ("Couldn't select database."); #18
$sql = "SELECT loginName FROM Member
WHERE loginName='{$_SESSION['logname']}'";
$result = mysql_query($sql)
or die("Couldn't execute query 1.");
$row = mysql_fetch_array($result,MYSQL_ASSOC);
$query = mysql_query("SELECT * FROM member where loginName = 'loginName' AND gelezen = '0'");
//AANPASSEN
$berichten = mysql_num_rows($query);
<?php include("dogs.inc"); #14 or die ("Couldn't connect to server."); #16 or die ("Couldn't select database."); #18 $sql = "SELECT loginName FROM Member WHERE loginName='{$_SESSION['logname']}'"; or die("Couldn't execute query 1."); $query = mysql_query("SELECT * FROM member where loginName = 'loginName' AND gelezen = '0'"); //AANPASSEN
en ik krijg de fout melding:
Notice: Undefined variable: _SESSION in C:\Documents and Settings\denny\Bureaublad\Webserver\Root\test\tabel.php on line 8
alvast bedankt
|