Jump to content
php.lv forumi

ar wml izvadit no db


djmartins

Recommended Posts

Saadi?

 

<wml>

 

$host == "localhost";

$port == "3306";

$user == "dundurs";

$pass == "zebiekste";

$database == "news";

$db = mysql_connect("$host:$port", "$user", "$pass");

$result = mysql_query("SELECT * FROM news;", $db);

while ($res = mysql_fetch_array($result)) {

 

print("res2");

 

</wml>

Link to comment
Share on other sites

×
×
  • Create New...