<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <title>Read values from MySQL</title> </head> <body> <? mysql_connect('192.168.1.200','vladimir','psw1234'); mysql_select_db('uservdb'); ?> <table border="1"> <tbody> <? $result = mysql_query("SELECT LastDir, LastUser FROM MZK_lock"); OR die(mysql_error()); while($row = mysql_fetch_assoc($result)) { echo '<tr><td>' . $row['LastDir'] . '</td><td>' . $row['LastUser'] . '</td></tr>'; } ?> </tbody> </table> </body> </html>
Код: Выделить всё
'; } ?>
' . $row['LastDir'] . ' ' . $row['LastUser'] . '
php-mysql установлен. Что не так???