Results 1 to 10 of 12
Hybrid View
-
16th May 2010, 03:02 PM #1Respected Member
First don't put numeric if in quotes. And to be sure it is numeric use is_numeric function like this:
Code:if ( is_numeric($val1) && is_numeric($val2) ) { if($val1 > 0 && $val2 == 0) {$blog_content.='<font color=green>100% voted for working links !</font>';} if($val2 > 0 && $val1 == 0) {$blog_content.='<font color=red>100% voted for dead links !</font>';} elseif($val2 > $val1) {$percent = number_format(($val2 * 100) / $val1); $blog_content.='<font color=red>'.$percent.'% voted for dead links !</font>';} else { if($val1 > $val2) { $percent = number_format(($val1 * 100) / $val2); $blog_content.='<font color=green>'.$percent.'% voted for working links !</font>'; } } }
Lock Down Reviewed by Lock Down on . [html] align problem Hi ! When i tried <img align=left src=bbb.gif><p align=left>sometext</p> i get some <br> or top margin . How to make this at one line ? Rating: 5
Sponsored Links
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
Html Problem! Website breaks apart when zoomed!
By Drag in forum Web Development AreaReplies: 5Last Post: 7th Oct 2012, 09:47 AM -
WordPress align problem
By stefan-te in forum WordpressReplies: 13Last Post: 22nd Sep 2012, 01:49 AM -
[HTML] How To Align Any Image Center !
By Rapid S in forum Web Development AreaReplies: 28Last Post: 9th Sep 2012, 11:55 AM -
html codding problem
By warezgalaxy in forum Web Development AreaReplies: 1Last Post: 6th Sep 2012, 09:32 AM -
PHP in HTML problem
By Porsche_maniak in forum Server ManagementReplies: 7Last Post: 9th Jul 2010, 08:23 PM
themaLeecher - leech and manage...
Version 5.05 released. Open older version (or...