Stworzyłem jakąś prymitywną bazę za pomocą monitora mysql i napisałem skrypt php który ma z niej pobrać informacje.
Ale problem jest w tym że nie moge nawiązać połączenia z serwerem mysql.
funkcja mysql_connect("lokalhost","***","****") ciągle zwraca false!!!
KOd php jest następujący:
<?
print(\"<title>Listing</title>n\"); print(\"</head>n\");
$mysql_link=mysql_connect(\"localhost:8080\",\"httpd\", \"\");
$query=\"SELECT * FROM catalog\";
print(\"<table border=\"0\">n\"); print(\"<td bgcolor=\"#CCCCCC\"><b>Towar</b></td>n\"); print(\"<td bgcolor=\"#CCCCCC\"><b>Cena</b></td>n\");
{
$item_ID=$row[0];
$item_Name=$row[1];
$item_Price=$row[2];
print(\"<td>$item_Name</td>n\"); print(\"<td align\"right\">$item_Price</td>n\"); }
print(\"</table>n\");
print(\"<b>$mysql_link</b>\"); print(\"</body>n\"); print(\"</html>n\"); ?>
pomóżcie ludzie!