foranyone
Well-Known Member
با سلام
مشکل این کد چیه که دوبار چاپ می کنه؟
من می خوام یه بار چاپ شه ولی نمیشه!!:razz:
مشکل این کد چیه که دوبار چاپ می کنه؟
من می خوام یه بار چاپ شه ولی نمیشه!!:razz:
<?php
$query = "SELECT textarea FROM post where ID=";
$query.=$DPT;
$result = mysql_query ($query)
or die ("Query failed");
// printing HTML result
print "<table>\n";
while ($line = mysql_fetch_array($result)) {
print "\t<tr>\n";
while(list($col_name, $col_value) =each($line)) {
print "\t\t<td>$col_value</td>\n";
}
print "\t</tr>\n";
}
print "</table>\n";
?>
$query = "SELECT textarea FROM post where ID=";
$query.=$DPT;
$result = mysql_query ($query)
or die ("Query failed");
// printing HTML result
print "<table>\n";
while ($line = mysql_fetch_array($result)) {
print "\t<tr>\n";
while(list($col_name, $col_value) =each($line)) {
print "\t\t<td>$col_value</td>\n";
}
print "\t</tr>\n";
}
print "</table>\n";
?>
تازه من هرچی از دیتابیس می خونم ؟؟؟؟؟؟؟؟؟؟؟؟ چاپ می کنه!!!
روی تمامی اینکدینگ ها امتحان کردم ولی کلا با فارسی مشکل داره !؟
روی تمامی اینکدینگ ها امتحان کردم ولی کلا با فارسی مشکل داره !؟