<?php
$db = mysql_connect('localhost', 'pma', '111');
mysql_select_db('test',$db);
mysql_query('INSERT INTO cat(number,name,age) VALUES ("","Петя",28)');
$rez = mysql_query('SELECT * FROM test.cat');
while($r = mysql_fetch_assoc($rez)) echo $r["number"],$r["name"],$r["age"];
?> |