PhpTest

[insert_php]
$name = $_GET[‘name’];
//Στοιχεία βάσης Mysql
$host = ‘localhost’;
$user = ‘antidoto_user’;
$pass = ‘anti123!@#’;
$db = ‘antidoto_gr’;
$table = ‘last1’;

//Άνοιγμα βάσης
$con=mysql_connect($host,$user,$pass) ;
mysql_select_db($db,$con) ;

//Επιλογή εγγραφών
$query = “SELECT * FROM last1 where id ='”.$name.”‘”;
mysql_query(“set names’greek'”);
$result = mysql_query($query);
$row= mysql_fetch_row($result);

//echo $row[‘id’] . ” ” . $row[‘Name’] . ” ” . $row[‘Zeygari’] . “<br />”;
//echo ($name);
//echo (” $name \n”);
echo ($row[0]);
echo ($row[1]);
echo (“$row[2] \n”);
echo (“$row[3] \n”);

mysql_close();
[/insert_php]