<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title></title>
</head>
<body>
<?php
if($link = mysql_connect("localhost:3306", "root", "")) {
echo "inloggad";
$sql = "SELECT * FROM mysql.user LIMIT 0 , 30;";
echo $sql;
$result = mysql_query($sql, $link);
if(!$result) {
echo "noThing just a Fail";
}else {
while($row = mysql_fetch_array($result, MYSQL_ASSOC)) {
foreach($row as $value) {
echo $value. "";
}
echo "<br />";
//print_r($row)
}
}
}
else {
echo "Ej inloggad";
}
?>
</body>
</html>
Inga kommentarer:
Skicka en kommentar