Convert PHP to JSP

Results 1 to 17 of 17
  1. #1
    Enthusiast Suedevander is offline
    MemberRank
    Apr 2011 Join Date
    36Posts

    Convert PHP to JSP

    Can anyone help me? I want to convert my top play for jsp

    My PHP
    Code:
    <head>	
    <link rel="stylesheet" type="text/css" href=".aussehen.css">
    	<meta http-equiv="refresh" content="30" >
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <style type="text/css">
    body {
    	border-color:#999;
    }
    </style>
    </head>
    
    <body scroll='no'  width="100%" height="100%" scroll="no">
    
    <table width="100%" height="30%" cellpadding="0" cellspacing="0" border="0" scroll="no">
    
    <tr>
    	<td align="center" valign="">
    	<?php
    	
    		include ".rank_config.php";
    
    
    
    		$result = mysql_query("SELECT * FROM uwebplayers ORDER BY pinknametime DESC")or die(mysql_error());
    		$row = mysql_fetch_assoc($result);
    		$z=1;
    		$c=1;
    ?>
    
    <table width="571" border="0" cellpadding="1" cellspacing="0" style="width=1200";">
    	<tbody>
    		<tr>
    			<td width="22" scope="col">
    				Top</td>
    			<td width="31" scope="col">
    				Name</td>
    			<td width="137" scope="col">
    				Pontos PK</td>
    			<td width="144" scope="col">
    				Sexo</td>
    			<td width="129" scope="col">
    				PK-status</td>
    			<td width="129" scope="col">Level</td>
    		</tr>
    
    
    		<tr>
    			<td>
    				<?php 
    				echo $z;
    				$z++
    				?>			</td>
    			<td>
    				<?php 
    				echo $row['rolename'];
    				?>			</td>
    			<td>
    				<?php 
    				if ($row['pinknametime']<30) 
    					{
    					?>
    						
    					<?php
    					echo $row['pinknametime'];
    					} 
    				elseif ($row['pinknametime']==30)
    					{
    					?>
    						
    					<?php
    					echo $row['pinknametime'];	
    					}
    				elseif ($row['pinknametime']>30 && $row['pinknametime']<60)
    					{
    					?>
    						
    					<?php
    					echo $row['pinknametime'];	
    					}
    				elseif ($row['pinknametime']>60 && $row['pinknametime']<89)
    					{
    					?>		
    						
    					<?php
    					echo $row['pinknametime'];	
    					}
    				elseif ($row['pinknametime']>89)
    					{
    					?>	
    						
    					<?php
    					echo $row['pinknametime'];	
    					}
    					?>			</td>
    			<td>
    				<?php 
    				if ($row['rolegender']>0) 
    					{
    					?>
    						<img src="./weiblich.png" alt="weiblich" width="30" height="30">
    					<?php
    					} 
    				else 
    					{
    					?>
    						<img src="./mannlich.png" alt="mänlich" width="30" height="30">
    					<?php
    					}
    					?>			</td>	
    			<td>
    					<?php
    				if ($row['redname']>0) 
    					{
    					?>
    						<img src="./rot.png" alt="weiblich" width="30" height="30">
    					<?php
    					} 
    				else 
    					{
    					?>
    						<img src="./weiss.png" alt="mänlich" width="30" height="30">
    					<?php
    					}
    					?>			</td>
    			<td><?php 
    				if ($row['rolelevel']<30) 
    					{
    					?>
                  <?php
    					echo $row['rolelevel'];
    					} 
    				elseif ($row['rolelevel']==30)
    					{
    					?>
                  <?php
    					echo $row['rolelevel'];	
    					}
    				elseif ($row['rolelevel']>30 && $row['pinknametime']<60)
    					{
    					?>
                  <?php
    					echo $row['rolelevel'];	
    					}
    				elseif ($row['rolelevel']>60 && $row['pinknametime']<89)
    					{
    					?>
                  <?php
    					echo $row['rolelevel'];	
    					}
    				elseif ($row['rolelevel']>89)
    					{
    					?>
                <?php
    					echo $row['rolelevel'];	
    					}
    					?></td>
    		</tr>
    			
    
    
    
    
    
    <?php
    while($row = mysql_fetch_assoc($result))
    
    {
    ?>
    
    				<tr>
    			<td>
    				<?php 
    				echo $z;
    				$z++
    				?>			</td>
    			<td>
    				<?php 
    				echo $row['rolename'];
    				?>			</td>
    			<td>
    				<?php 
    				if ($row['pinknametime']<30) 
    					{
    					?>
    						
    					<?php
    					echo $row['pinknametime'];
    					} 
    				elseif ($row['pinknametime']==30)
    					{
    					?>
    						
    					<?php
    					echo $row['pinknametime'];	
    					}
    				elseif ($row['pinknametime']>30 && $row['pinknametime']<60)
    					{
    					?>
    						
    					<?php
    					echo $row['pinknametime'];	
    					}
    				elseif ($row['pinknametime']>60 && $row['pinknametime']<89)
    					{
    					?>		
    						
    					<?php
    					echo $row['pinknametime'];	
    					}
    				elseif ($row['pinknametime']>89)
    					{
    					?>	
    						
    					<?php
    					echo $row['pinknametime'];	
    					}
    					?>			</td>
    			<td>
    				<?php 
    				if ($row['rolegender']>0) 
    					{
    					?>
    						<img src="./weiblich.png" alt="weiblich" width="30" height="30">
    					<?php
    					} 
    				else 
    					{
    					?>
    						<img src="./mannlich.png" alt="mänlich" width="30" height="30">
    					<?php
    					}
    					?>			</td>	
    			<td>
    					<?php
    				if ($row['redname']>0) 
    					{
    					?>
    						<img src="./rot.png" alt="weiblich" width="30" height="30">
    					<?php
    					} 
    				else 
    					{
    					?>
    						<img src="./weiss.png" alt="mänlich" width="30" height="30">
    					<?php
    					}
    					?>			</td>
    			<td><?php 
    				if ($row['rolelevel']<30) 
    					{
    					?>
                  <?php
    					echo $row['rolelevel'];
    					} 
    				elseif ($row['rolelevel']==30)
    					{
    					?>
                  <?php
    					echo $row['rolelevel'];	
    					}
    				elseif ($row['rolelevel']>30 && $row['pinknametime']<60)
    					{
    					?>
                  <?php
    					echo $row['rolelevel'];	
    					}
    				elseif ($row['rolelevel']>60 && $row['pinknametime']<89)
    					{
    					?>
                  <?php
    					echo $row['rolelevel'];	
    					}
    				elseif ($row['rolelevel']>89)
    					{
    					?>
                  <?php
    					echo $row['rolelevel'];	
    					}
    					?></td>
    		    </tr>		
    
    
    <?php
    $c++;
    if($c==$top)
    {
    exit;
    }
    }
    ?>
    </table>
    
    </body>
    someone converte please :D


  2. #2
    Genesis?Is it a new drug? renan7899 is offline
    MemberRank
    Apr 2010 Join Date
    BrazilLocation
    519Posts

    Re: Convert PHP to JSP

    Ha, Su... You want that just because you're trying to execute the top players in jetty?

    First of all, go find a way to make your machine accept exterior connections in mysql. AND STOP USING THE F#CKING JETTY FOR PHP.

    For the mods: Sorry about this, I know this guy, and he want to 'convert' the php code to JSP code just because he can't execute the php code -.-'

    I don't know how to convert that, but I guess it's will be useless, because your machine/mysql is not accepting exterior connections.

    And, this post shouldn't be in the releases forum.
    Last edited by renan7899; 28-07-11 at 07:11 PM.

  3. #3
    Enthusiast Suedevander is offline
    MemberRank
    Apr 2011 Join Date
    36Posts

    Re: Convert PHP to JSP

    vo or say anything to you

    you is admin the my server?

    then is silence

  4. #4
    Psy Sins Psytrac is online now
    MemberRank
    Jul 2011 Join Date
    Hammond, INLocation
    2,015Posts

    Re: Convert PHP to JSP

    this isn't a release, it's a request for help, thus it belongs in the main section of the forums, NOT here

  5. #5
    Genesis?Is it a new drug? renan7899 is offline
    MemberRank
    Apr 2010 Join Date
    BrazilLocation
    519Posts

    Re: Convert PHP to JSP

    Quote Originally Posted by Suedevander View Post
    vo or say anything to you

    you is admin the my server?

    then is silence

    I didn't said anything wrong. So don't scold me with this stupid english. D:

  6. #6
    Enthusiast Suedevander is offline
    MemberRank
    Apr 2011 Join Date
    36Posts

    Re: Convert PHP to JSP

    renan7899 : fuck -.-

    psytrac : sorry man i no see :D
    Last edited by Suedevander; 29-07-11 at 12:51 AM.

  7. #7
    Omega 343 is offline
    MemberRank
    Oct 2009 Join Date
    Ancient DGN CTYLocation
    5,514Posts

    Re: Convert PHP to JSP

    moved

  8. #8
    Banned Adriana is offline
    BannedRank
    Apr 2011 Join Date
    127Posts

    Re: Convert PHP to JSP

    Quote Originally Posted by Suedevander View Post
    Can anyone help me? I want to convert my top play for jsp

    My PHP
    Code:
    <head>	
    <link rel="stylesheet" type="text/css" href=".aussehen.css">
    	<meta http-equiv="refresh" content="30" >
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <style type="text/css">
    body {
    	border-color:#999;
    }
    </style>
    </head>
    
    <body scroll='no'  width="100%" height="100%" scroll="no">
    
    <table width="100%" height="30%" cellpadding="0" cellspacing="0" border="0" scroll="no">
    
    <tr>
    	<td align="center" valign="">
    	<?php
    	
    		include ".rank_config.php";
    
    
    
    		$result = mysql_query("SELECT * FROM uwebplayers ORDER BY pinknametime DESC")or die(mysql_error());
    		$row = mysql_fetch_assoc($result);
    		$z=1;
    		$c=1;
    ?>
    
    <table width="571" border="0" cellpadding="1" cellspacing="0" style="width=1200";">
    	<tbody>
    		<tr>
    			<td width="22" scope="col">
    				Top</td>
    			<td width="31" scope="col">
    				Name</td>
    			<td width="137" scope="col">
    				Pontos PK</td>
    			<td width="144" scope="col">
    				Sexo</td>
    			<td width="129" scope="col">
    				PK-status</td>
    			<td width="129" scope="col">Level</td>
    		</tr>
    
    
    		<tr>
    			<td>
    				<?php 
    				echo $z;
    				$z++
    				?>			</td>
    			<td>
    				<?php 
    				echo $row['rolename'];
    				?>			</td>
    			<td>
    				<?php 
    				if ($row['pinknametime']<30) 
    					{
    					?>
    						
    					<?php
    					echo $row['pinknametime'];
    					} 
    				elseif ($row['pinknametime']==30)
    					{
    					?>
    						
    					<?php
    					echo $row['pinknametime'];	
    					}
    				elseif ($row['pinknametime']>30 && $row['pinknametime']<60)
    					{
    					?>
    						
    					<?php
    					echo $row['pinknametime'];	
    					}
    				elseif ($row['pinknametime']>60 && $row['pinknametime']<89)
    					{
    					?>		
    						
    					<?php
    					echo $row['pinknametime'];	
    					}
    				elseif ($row['pinknametime']>89)
    					{
    					?>	
    						
    					<?php
    					echo $row['pinknametime'];	
    					}
    					?>			</td>
    			<td>
    				<?php 
    				if ($row['rolegender']>0) 
    					{
    					?>
    						<img src="./weiblich.png" alt="weiblich" width="30" height="30">
    					<?php
    					} 
    				else 
    					{
    					?>
    						<img src="./mannlich.png" alt="mänlich" width="30" height="30">
    					<?php
    					}
    					?>			</td>	
    			<td>
    					<?php
    				if ($row['redname']>0) 
    					{
    					?>
    						<img src="./rot.png" alt="weiblich" width="30" height="30">
    					<?php
    					} 
    				else 
    					{
    					?>
    						<img src="./weiss.png" alt="mänlich" width="30" height="30">
    					<?php
    					}
    					?>			</td>
    			<td><?php 
    				if ($row['rolelevel']<30) 
    					{
    					?>
                  <?php
    					echo $row['rolelevel'];
    					} 
    				elseif ($row['rolelevel']==30)
    					{
    					?>
                  <?php
    					echo $row['rolelevel'];	
    					}
    				elseif ($row['rolelevel']>30 && $row['pinknametime']<60)
    					{
    					?>
                  <?php
    					echo $row['rolelevel'];	
    					}
    				elseif ($row['rolelevel']>60 && $row['pinknametime']<89)
    					{
    					?>
                  <?php
    					echo $row['rolelevel'];	
    					}
    				elseif ($row['rolelevel']>89)
    					{
    					?>
                <?php
    					echo $row['rolelevel'];	
    					}
    					?></td>
    		</tr>
    			
    
    
    
    
    
    <?php
    while($row = mysql_fetch_assoc($result))
    
    {
    ?>
    
    				<tr>
    			<td>
    				<?php 
    				echo $z;
    				$z++
    				?>			</td>
    			<td>
    				<?php 
    				echo $row['rolename'];
    				?>			</td>
    			<td>
    				<?php 
    				if ($row['pinknametime']<30) 
    					{
    					?>
    						
    					<?php
    					echo $row['pinknametime'];
    					} 
    				elseif ($row['pinknametime']==30)
    					{
    					?>
    						
    					<?php
    					echo $row['pinknametime'];	
    					}
    				elseif ($row['pinknametime']>30 && $row['pinknametime']<60)
    					{
    					?>
    						
    					<?php
    					echo $row['pinknametime'];	
    					}
    				elseif ($row['pinknametime']>60 && $row['pinknametime']<89)
    					{
    					?>		
    						
    					<?php
    					echo $row['pinknametime'];	
    					}
    				elseif ($row['pinknametime']>89)
    					{
    					?>	
    						
    					<?php
    					echo $row['pinknametime'];	
    					}
    					?>			</td>
    			<td>
    				<?php 
    				if ($row['rolegender']>0) 
    					{
    					?>
    						<img src="./weiblich.png" alt="weiblich" width="30" height="30">
    					<?php
    					} 
    				else 
    					{
    					?>
    						<img src="./mannlich.png" alt="mänlich" width="30" height="30">
    					<?php
    					}
    					?>			</td>	
    			<td>
    					<?php
    				if ($row['redname']>0) 
    					{
    					?>
    						<img src="./rot.png" alt="weiblich" width="30" height="30">
    					<?php
    					} 
    				else 
    					{
    					?>
    						<img src="./weiss.png" alt="mänlich" width="30" height="30">
    					<?php
    					}
    					?>			</td>
    			<td><?php 
    				if ($row['rolelevel']<30) 
    					{
    					?>
                  <?php
    					echo $row['rolelevel'];
    					} 
    				elseif ($row['rolelevel']==30)
    					{
    					?>
                  <?php
    					echo $row['rolelevel'];	
    					}
    				elseif ($row['rolelevel']>30 && $row['pinknametime']<60)
    					{
    					?>
                  <?php
    					echo $row['rolelevel'];	
    					}
    				elseif ($row['rolelevel']>60 && $row['pinknametime']<89)
    					{
    					?>
                  <?php
    					echo $row['rolelevel'];	
    					}
    				elseif ($row['rolelevel']>89)
    					{
    					?>
                  <?php
    					echo $row['rolelevel'];	
    					}
    					?></td>
    		    </tr>		
    
    
    <?php
    $c++;
    if($c==$top)
    {
    exit;
    }
    }
    ?>
    </table>
    
    </body>
    someone converte please :D
    dude this code is messed up pretty much who ever develop such a thing is to complicated i can do a php script that can do all this within 6 lines lol

    converte = convert :P

    i can convert this how much you pay?(joke)
    Last edited by Adriana; 29-07-11 at 12:12 PM.

  9. #9
    Enthusiast Suedevander is offline
    MemberRank
    Apr 2011 Join Date
    36Posts

    Re: Convert PHP to JSP

    xD '-'
    nobody no know convert?

  10. #10
    Genesis?Is it a new drug? renan7899 is offline
    MemberRank
    Apr 2010 Join Date
    BrazilLocation
    519Posts

    Re: Convert PHP to JSP

    Listen Suedevander. This php code is only to read and organize the pvp rank. It's not necessary to convert to JSP, because JSP is 100x more complex. And why convert to JSP if this PHP code work correctly?

    The PHP code only read the players infos inside mysql that was sent by the .sh and .jsp scripts.

    Can you give us a good reason to convert it?

  11. #11
    Enthusiast Suedevander is offline
    MemberRank
    Apr 2011 Join Date
    36Posts

    Re: Convert PHP to JSP

    Yes, My lampp no accept connection mysql another mysql not to be mysql lampp '-'

  12. #12
    Genesis?Is it a new drug? renan7899 is offline
    MemberRank
    Apr 2010 Join Date
    BrazilLocation
    519Posts

    Re: Convert PHP to JSP

    Quote Originally Posted by Suedevander View Post
    Yes, My lampp no accept connection mysql another mysql not to be mysql lampp '-'
    I can't understand, you don't have english class in your school?
    Last edited by renan7899; 30-07-11 at 09:15 PM.

  13. #13
    Nerd-IO Romulan is offline
    MemberRank
    Feb 2009 Join Date
    BelgiumLocation
    3,333Posts

    Re: Convert PHP to JSP

    Looks like a 12yo brazilian boy that has some problems at speaking english correctly. Poor him...

  14. #14
    Banned Adriana is offline
    BannedRank
    Apr 2011 Join Date
    127Posts

    Re: Convert PHP to JSP

    Yes, My lampp no accept connection mysql another mysql not to be mysql lampp '-'

    Translation:

    My lampp dos not want to connect to mysql database :P

    Solution:

    http://yourserverip/phpmyadmin
    ---->privileges ---->Add a new User and

    username = your username
    host = IP
    pass = Yourpassword
    Re-type: Your password

    Select ratio Grant all privileges on wildcard name (username\_%)

    click Global privileges (Check All)

    go


    And your connection will be approved

    you can also change the ip from your php script to localhost :P

    in additional if it dos not work try to ff the port 80

    have fun.

  15. #15
    Enthusiast Suedevander is offline
    MemberRank
    Apr 2011 Join Date
    36Posts

    Re: Convert PHP to JSP

    OK Adriana I try

  16. #16
    Genesis?Is it a new drug? renan7899 is offline
    MemberRank
    Apr 2010 Join Date
    BrazilLocation
    519Posts

    Re: Convert PHP to JSP

    Quote Originally Posted by Romulan View Post
    Looks like a 12yo brazilian boy that has some problems at speaking english correctly. Poor him...
    He have 14yo, but he doesn't even understand the Brazil's official language -.-

    He don't use accentuation and commas, and when he try to translate something in google, he use slangs.

  17. #17
    Enthusiast Suedevander is offline
    MemberRank
    Apr 2011 Join Date
    36Posts

    Re: Convert PHP to JSP

    renan7899 i speak of way that i want -.-



Advertisement