arashaliz
یک شنبه 24 آذر 1392, 11:41 صبح
با سلام
چه طوری می شه زمانی که رکورد هارو می خوایم پرینت کنیم یک شماره ردیف هم بهشون بدیم
من که هر کاری می کنم شماره درست نمیده
این کدیه که من استفاده می کنم
while($row = mysql_fetch_array( $result )) {
// Print out the contents of each row into a table
$wId =$row['wId'];
$wNo =$row['wNo'];
$wDesc =$row['wDesc'];
$wDesc_new = substr($wDesc,0,30);
echo "<div>ردیف شماره</div><div><a href=\"detail.php?Url=$wId\">" . '...' . $wNo . ' - ' . $wDesc_new . " </a> </div>\n";
چه طوری می شه زمانی که رکورد هارو می خوایم پرینت کنیم یک شماره ردیف هم بهشون بدیم
من که هر کاری می کنم شماره درست نمیده
این کدیه که من استفاده می کنم
while($row = mysql_fetch_array( $result )) {
// Print out the contents of each row into a table
$wId =$row['wId'];
$wNo =$row['wNo'];
$wDesc =$row['wDesc'];
$wDesc_new = substr($wDesc,0,30);
echo "<div>ردیف شماره</div><div><a href=\"detail.php?Url=$wId\">" . '...' . $wNo . ' - ' . $wDesc_new . " </a> </div>\n";