PDA

View Full Version : این کد نوشتم ولی کار نمی کنه



acssesali
یک شنبه 29 بهمن 1391, 21:02 عصر
<?php
mysql_connect("localhost","root","");
mysql_select_db("user");
if(isset($_GET['id']) && is_numeric($_GET['id']) && !empty($_GET['id'])){
$id = $_GET['id'];
$result = mysql_query("select * from info where pid=$id");
$row=mysql_fetch_row($result);
echo("$row[1] $row[2] $row[3] $row[4]");
}
?>