Activity Stream
48,167 MEMBERS
6976 ONLINE
besthostingforums On YouTube Subscribe to our Newsletter besthostingforums On Twitter besthostingforums On Facebook besthostingforums On facebook groups

Page 1 of 2 12 LastLast
Results 1 to 10 of 12
  1.     
    #1
    Member
    Website's:
    maxneeds.info

    Question [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 ?
    Porsche_maniak Reviewed by Porsche_maniak 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

  2.   Sponsored Links

  3.     
    #2
    Teh GFX Whore! ^.^
    eh? screen shot + exact code please..


    I joined KWWHunction before it was cool!
    My "AWESOME" Graphic designing Service


  4.     
    #3
    Member
    Website's:
    maxedoutdesigns.com
    Yeah confused me there lol
    What do i do?
    vBulletin Skins,Custom CMS Designs,Wordpress Designs
    and much more!
    Thread :: Website

  5.     
    #4
    Member
    Website's:
    maxneeds.info
    guys forget about that ..
    Now i am trying other thing but i got some problems. Where do i wrong ?

    Code: 
    		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>';}}
    when you know that $val1 and $val2 are numbers.
    And i get Warning: Division by zero

  6.     
    #5
    Respected 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>'; }
              }
        }

  7.     
    #6
    Member
    Website's:
    maxneeds.info
    Lock Down - Helped a lot ! Thanks

  8.     
    #7
    Respected Member
    Glad to help .

  9.     
    #8
    Member
    Website's:
    maxneeds.info
    Also just to ask..
    What about if there is no value for $val2 or $val1 in the first ifs

    if($val1 > 0 && $val2 == empty($val2)) is not working i think...


    Because i don't get any results when having 1 value of 2

  10.     
    #9
    Respected Member
    If there is no value than is_numeric should return false and fall out of the if.

  11.     
    #10
    Member
    Website's:
    maxneeds.info
    Man i am playing with this 2 days non-stop and can't figure it out

    Now i am just trying it simple as possible,but it has defects and don't know why.

    Code: 
    if (file_exists($zzz1)) {$val1=file_get_contents($zzz1);}
    		if (file_exists($zzz2)) {$val2=file_get_contents($zzz2);}
    
    		if($percent == 50){$color='orange';}
    if($percent > 50){$color='green';}
    if($percent < 50){$color='red';}
    if($percent == 0 && $votenum == 0){$color='darkblue';}
    
    if ($votenum >= 1){
    if($val1==0){$val1=1;}
    if ($percent > 100){$percent=100;}
    		$percent = number_format(($val2 * 100) / $val1);}
    		else {$percent=0; $votenum=0;}
    		
    		$votenum = $val1 + $val2;
    		if($votenum==1){$votename='vote';}
    		else {$votename='votes';}
    		
    		$blog_content.='<font color='.$color.'>'.$percent.'% voted for successful download ! ('.$votenum.' '.$votename.')</font>';

Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Html Problem! Website breaks apart when zoomed!
    By Drag in forum Web Development Area
    Replies: 5
    Last Post: 7th Oct 2012, 09:47 AM
  2. WordPress align problem
    By stefan-te in forum Wordpress
    Replies: 13
    Last Post: 22nd Sep 2012, 01:49 AM
  3. [HTML] How To Align Any Image Center !
    By Rapid S in forum Web Development Area
    Replies: 28
    Last Post: 9th Sep 2012, 11:55 AM
  4. html codding problem
    By warezgalaxy in forum Web Development Area
    Replies: 1
    Last Post: 6th Sep 2012, 09:32 AM
  5. PHP in HTML problem
    By Porsche_maniak in forum Server Management
    Replies: 7
    Last Post: 9th Jul 2010, 08:23 PM

Tags for this Thread

BE SOCIAL