select where bd
Scris: Mar Feb 08, 2011
<?php
include 'cfg.php';
unde am gresit:(?
include 'cfg.php';
Cod: Selectaţi tot
echo '<div style="position:absolute;top:420px;left:22%"><img src="rounded.png"></div>';
echo '<div style="position:absolute;top:560px;left:23%">
<form method=post action="index.php?pagina=c">
Manager : <input type=text name=manager ><br>
Parola: <input type=text name=parola ><br>
<input type=submit name=submit value=Intra></form></div>';
if(isset($_POST['submit'])){
$manager=$_POST['manager'];
$parola=$_POST['parola'];
$sql="SELECT manager,parola FROM jucatori WHERE manager='$manager' AND parola='$parola' ";
$result=mysql_query($sql);
while ($row=mysql_fetch_row($result)) {
echo 'Manager:'.$row[1].'<br>';
echo 'Echipa:'.$row[2].'<br>';
echo 'Parola:'.$row[3].'<br>';
echo 'Stadion:'.$row[4].'<br>';
echo 'Echipament:'.$row[5].'<br>';
echo 'Locatie:'.$row[6].'<br>';
echo 'Bani:'.$row[7].'<br>';
}
mysql_close($conexiune);}
?>