error_reporting(0);
$u="kx";
$pas="kx";
$h="localhost";
$db="kxfo";
$con=mysql_connect ($h, $u, $pas);
mysql_select_db ($db);
mysql_db_query ($db);
mysql_query (" update fo set br_vizit = br_vizit + 1 where id = $show_id");
$q = mysql_query("SELECT * FROM fo WHERE id =" .$show_id);
$fuser = mysql_fetch_object($q);
function which_user($id) {
$q = mysql_query("SELECT * FROM fo WHERE id = '$id'");
$ref = mysql_fetch_object($q);
return($ref->user);
}
?>
����
|
���� � �������� ����� ��� ������� |
$date = date("Y-m-d H:i:s");
$fo_id = $show_id;
print ("$date");
mysql_query("selct (*) from post " );
if (($_POST[user]!='' and $_POST[odgovor]!='' )){
mysql_query("INSERT into post ( fo_id, user, odgovor, date ) values ('$fo_id','".addslashes ($_POST[user])."','".addslashes ($_POST[odgovor])."', '$date') ");
print("Ñ" );
}
?>
�� |
|
�������� |
|
���� |
|
|
$r= mysql_db_query ($db, "select * from post where fo_id= $show_id");
while ($z = mysql_fetch_row ($r)){
?>
}?>