Cod: Selectaţi tot
$data=@date('d-m-Y');
mysql_select_db("autentificare", $conexiune);
$result= mysql_query("SELECT *FROM clients WHERE data=".$data);
if(mysql_num_rows($result)>0)
{
while($row = mysql_fetch_array($result))
{
echo'
<b>Name:</b> '.$row['name'].' </br />
<b>Surname:</b> '.$row['surname'].' </br />
';
}
echo'
Press<a href="paginamenu.php"> here </a>to go back previous page
Press<a href="iesire.php"> here </a></span>to exit.
</div></center>
' ;
}
else{
echo'
<center> <div class="menuprod3" >
Hei <b><i>'.$_SESSION['user'].'</b></i></div>
Sory! Today we don`t have any customers !</div>
Press<a href="paginamenu.php"> here </a>to go back previous page.</div>
Press<a href="iesire.php"> here </a>to exit.
</div></center>
';
}
mysql_close($conexiune);
}
Cod: Selectaţi tot
else{
echo'
<center> <div class="menuprod3" >
Hei <b><i>'.$_SESSION['user'].'</b></i></div>
Sory! Today we don`t have any customers !</div>
Press<a href="paginamenu.php"> here </a>to go back previous page.</div>
Press<a href="iesire.php"> here </a>to exit.
</div></center>
';
}
Multumesc .