I am trying to write a simple portal system and there is no error for beggining but its showing wrong data from mysql i couldnt solve the problem can anybody help me here is my php code and mysql
Mysql
# phpMyAdmin SQL Dump
# version 2.5.4
# http://www.phpmyadmin.net
#
# Host: localhost
# Generation Time: Feb 29, 2004 at 05:23 PM
# Server version: 4.0.16
# PHP Version: 4.3.4
#
# Database : `portal`
#
# --------------------------------------------------------
#
# Table structure for table `syl_cs_text`
#
CREATE TABLE `syl_cs_text` (
`post_id` mediumint(8) unsigned NOT NULL default '0',
`post_subject` varchar(60) default NULL,
`post_text` text,
PRIMARY KEY (`post_id`)
) TYPE=MyISAM;
#
# Dumping data for table `sylveria_cs_text`
#
# --------------------------------------------------------
#
# Table structure for table `syl_sc_text`
#
CREATE TABLE `syl_sc_text` (
`post_id` mediumint(8) unsigned NOT NULL default '0',
`post_subject` varchar(60) default NULL,
`post_text` text,
PRIMARY KEY (`post_id`)
) TYPE=MyISAM;
#
# Dumping data for table `syl_sc_text`
#
# --------------------------------------------------------
#
# Table structure for table `syl_uo_text`
#
CREATE TABLE `syl_uo_text` (
`post_id` mediumint(8) unsigned NOT NULL default '0',
`post_subject` varchar(60) default NULL,
`post_text` text,
PRIMARY KEY (`post_id`)
) TYPE=MyISAM;
#
# Dumping data for table `syl_uo_text`
#
INSERT INTO `syl_uo_text` VALUES (1, 'Asd', '122456789645');
INSERT INTO `syl_uo_text` VALUES (2, 'This subject', 'Aman yava? yollar ya?');
INSERT INTO `syl_uo_text` VALUES (3, 'Abc', 'abcdefg ');
INSERT INTO `syl_uo_text` VALUES (4, 'Dark Lord', 'One ring to the dark lords hand sitting on his throne');
INSERT INTO `syl_uo_text` VALUES (5, 'In a land so dark', 'Where i have to go');
Php Code:
<html>
<head>
<meta http-equiv="Content-Language" content="tr">
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1254">
<title>PORTAL MANAGEMENT</title>
</head>
<body bgcolor="#C0C0C0">
<p align="center"><u><font face="Arial Black" size="4">PORTAL MANAGAMENT</font></u></p>
<hr>
<ul>
<li>
<p align="left">
<?
@mysql_connect("localhost", "root", "")
or die("Veritabani ile baglanti kurulamadi!");
@mysql_select_db("portal")
or die("Veritabaninda bir hata olustu!");
$sql = "SELECT post_text FROM syl_uo_text WHERE post_id = '1'";
$res = mysql_query($sql) OR die(mysql_error());
echo "$res";
?>
</li>
<li>
<p align="left">
<?
$sql2 = "SELECT post_text FROM syl_uo_text WHERE post_id = '2'";
$res2 = mysql_query($sql2) OR die(mysql_error());
echo "$res2";
?>
</li>
<li>
<p align="left">
<?
$sql3 = "SELECT post_text FROM syl_uo_text WHERE post_id = '3'";
$res3 = mysql_query($sql3) OR die(mysql_error());
echo "$res3";
?>
</li>
<li>
<p align="left">
<?
$sql4 = "SELECT post_text FROM syl_uo_text WHERE post_id = '4'";
$res4 = mysql_query($sql4) OR die(mysql_error());
echo "$res4";
?>
</li>
<li>
<p align="left">
<?
$sql5 = "SELECT post_text FROM syl_uo_text WHERE post_id = '5'";
$res5 = mysql_query($sql5) OR die(mysql_error());
echo "$res5";
?>
</li>
</ul>
<p align="left"> </p>
<p align="left"> </p>
</body>
</html>
and when i use this php code its showing the datas like this
Resource id #3
Resource id #4
Resource id #5
Resource id #6
Resource id #7
Where is the problem?