-
Posts
30 -
Joined
-
Last visited
Never
Posts posted by memfiss
-
-
wtf is it ?
if(!isset($_SESSION['cart'] = $new)) #php makes ur code step by step #first step $_SESSION['cart'] = $new #where is $new variable ? #if no varable $_SESSION['cart'] will be null #then we check if (!isset(null)) #its true if (true) $_SESSION['cart'] = $new; #and again $_SESSION['cart'] will be null
where is declarated $new variable ?
-
ur $_SESSION['uid'] doesn't isset , u should check it
<?php session_start(); mysql_connect("localhost","root",""); mysql_select_db("news_system"); if (!isset($_SESSION['uid'])) $_SESSION['uid'] = null;
-
OMG
for ($i=1 ; !($i > 12) ; $i++) { ${'checkmatch'.$i} = isset($_SESSION['match'.$i]) ? $_SESSION['match'.$i] : 0; }
-
u make output
echo "<p>logged in as: ". $_SESSION['login'];
then u are using header in ur function
try to replace them
session_start(); if(isset($_SESSION['login']) && isset($_SESSION['password'])) { checkdate(); include ('header.php'); echo "<p>logged in as: ". $_SESSION['login']; include ('footer.php'); } ...
Help needed to find multiple values in a row
in MySQL Help
Posted
id should automaticaly generate mysql
u should make ur `userid` like that
then when u will run
id will be 1 , next accaunt will have 2 , then 3 ... 99999