![]() |
# 1 |
חסום
|
שגיאה מוזרה ודפוקה O_o
Warning: Division by zero in /home/netanya/domains/sportn.co.il/public_html/polls/poll_view.php on line 39
השורה : קוד:
echo "\t<TD width=75% align=\"right\"><NOBR><IMG src=\"".$poll_bars[$i%$j]."\" width=".(integer)($vv*80)."% height=15> ".round($vv*100)."% (".$poll_alts[$i]['votes'].")</NOBR></TD>\n"; //prints the bar to demonstrate the percent of the alternative |
![]() |
# 2 |
משתמש - היכל התהילה
|
אסור לחלק ב0. (כנראה ב$i%$j)
|
![]() |
# 3 |
חסום
|
אז איך מטפלים בזה ?
קוד:
$vv=$poll_alts[$i]['votes']/(($num_votes==0)?1:$num_votes); //the part of the total votes for this alternative echo "<TR>\n"; //prints a new line in the table echo "\t<TD width=25% align=\"right\">".($i+1).". ".$poll_alts[$i]['alternative']."</TD>\n"; //prints the alternative echo "\t<TD width=75% align=\"right\"><NOBR><IMG src=\"".$poll_bars[$i%$j]."\" width=".(integer)($vv*80)."% height=15> ".round($vv*100)."% (".$poll_alts[$i]['votes'].")</NOBR></TD>\n"; //prints the bar to demonstrate the percent of the alternative echo "<TR>\n"; |
![]() |
# 4 | |
אחראי פורום
|
ציטוט:
אם לא תעתיק קודים מוכנים מאיתן, אולי גם תדע איך להתמודד עם זה... אין תמיכה במערכות מוכנות. http://php.eitan.ac.il/main.php?id=01005 |
|
![]() |
חברים פעילים הצופים באשכול זה: 1 (0 חברים ו- 1 אורחים) | |
|
|