<?php $connection= mysql_connect("localhost","root","") or die ("Could not connect to server");$db=mysql_select_db("bank",$connection) or die ("Could not connect to DataBase"); $query="SELECT * FROM account"; $resalt=mysql_query($query) or die ("Query failed : ".mysql_error()); while ($row = mysql_fetch_array($resalt)) { echo $row['user'],"<br>"; } mysql_close($connection); ?>
|
והשגיאה :
Warning: mysql_connect() : A connection attempt failed because the connected party did not (trying to connect via tcp://localhost:3306) in C:\Users\Yoni\Desktop\PHP\index.php on line 4
Warning: mysql_connect() : A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. in C:\Users\Yoni\Desktop\PHP\index.php on line 4
Fatal error: Maximum execution time of 30 seconds exceeded in C:\Users\Yoni\Desktop\PHP\index.php on line 5
