شوف جرب الكود هذا ...
كود PHP:
<?php
include("header.html");?>
<?php
include("contentdb.php");
$result = mysql_query("select * from designs") or
die (mysql_error());
while ($r = mysql_fetch_array($result))
{
$name = stripslashes($r["name"]);
$shortdes = stripslashes($r["shortdes"]);
$pic= stripslashes($r["pic"]);
$des= stripslashes($r["des"]);
$id= stripslashes($r["id"]);
?>
<html dir="rtl">
<head>
<meta http-equiv="Content-Language" content="ar-om">
<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-1256">
<title>New Page 2</title>
</head>
<body>
<div align="center">
<center>
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="750" id="AutoNumber4" bgcolor="#FFFFFF">
<tr>
<td width="100%" style="border-left: 1px solid #E0E0E0; border-right: 1px solid #E0E0E0; border-top-width: 1; border-bottom-width: 1">
<div align="center">
<center>
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber5">
<tr>
<td width="100%"> </td>
</tr>
</table>
</center>
</div>
<div align="center">
<center>
<table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#DFDFDF" width="400" id="AutoNumber1">
<tr>
<td width="100%">
<div align="center">
<center>
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber2">
<tr>
<td width="25%"><font face="MS Sans Serif" size="1" color="#800000">
ÑÞã ÇáÊÕãíã:</font></td>
<td width="75%"><?php echo $id; ?></td>
</tr>
<tr>
<td width="25%"><font size="1" face="MS Sans Serif" color="#800000">
ÇáÇÓã:</font></td>
<td width="75%"><font size="1" face="MS Sans Serif"> <?php echo $name; ?></font></td>
</tr>
<tr>
<td width="25%"><font face="MS Sans Serif" size="1" color="#800000">
ÇáæÕÝ ÇáÞÕíÑ:</font></td>
<td width="75%"><font size="1" face="MS Sans Serif"> <?php echo $shortdes; ?></font></td>
</tr>
<tr>
<td width="25%"><font face="MS Sans Serif" size="1" color="#800000">
ÇáÕæÑÉ:</font></td>
<td width="75%"><font size="1" face="MS Sans Serif"> <?php echo $pic; ?></font></td>
</tr>
<tr>
<td width="25%"><font face="MS Sans Serif" size="1" color="#800000">
ÇáæÕÝ ÇáØæíá:</font></td>
<td width="75%"><font size="1" face="MS Sans Serif"> <?php echo $des; ?></font></td>
</tr>
</table>
</center>
</div>
</td>
</tr>
</table>
</center>
</div>
<div align="center">
<center>
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber3">
<tr>
<td width="100%"> </td>
</tr>
</table>
</center>
</div>
</td>
</tr>
</table>
</center>
</div>
</body>
</html>
<?
} include("footer.html"); ?>
__________________
****************************
Danger For Make Dreams
****************************