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