Lucky Dice Posted June 25, 2011 Posted June 25, 2011 i need one php coder to code my psd price : 10 - 15 euro depends the work... contact : vorfin1@hotmail.com :)
sharpshoot3r Posted June 25, 2011 Posted June 25, 2011 This is .PSD to HTML service, nothing related to PHP ><
Lucky Dice Posted June 25, 2011 Author Posted June 25, 2011 This is .PSD to HTML service, nothing related to PHP >< yes ofc but i want same php codes like Online Players etc..
Dir50 Posted June 26, 2011 Posted June 26, 2011 10-15 euros are not enought for writing php. they are if you think how many free scripts exist =_=
TehFlator Posted June 26, 2011 Posted June 26, 2011 yes ofc but i want same php codes like Online Players etc.. <?php //---------CONFIGS---------// $title="Online Players"; // Page Title Here (Leave blank if you include this to another page) $server="127.0.0.1"; // MySQL IP $user="root"; //MySQL Username $password="blabla"; //MySQL Password $database="l2jdb"; //MySQL Database //-----END OF CONFIGS-----// if ($title) { print("<head><title>$title</title></head>"); } else { print("<head><title>title here</title></head>"); } mysql_connect("$server", "$user", "$password") or die(mysql_error()); mysql_select_db("$database") or die(mysql_error()); $result = mysql_query("SELECT char_name,title,pvpkills,pkkills FROM characters where online=1 and accesslevel=0 order by pvpkills desc") or die(mysql_error()); $row_sql = mysql_fetch_assoc($result); $total = mysql_num_rows($result); echo "<center><h3>Online Players: $total </h3></center><table border=1 align=center><tr> <th>Character</th> <th>Title</th> <th>PvP Kills</th> <th>PK Kills</th> </tr>"; while($row = mysql_fetch_array( $result )) { $name = $row['char_name']; $title = $row['title']; $pvp = $row['pvpkills']; $pk = $row['pkkills']; echo "<tr><td align=center>$name</td><td align=center>$title</td><td align=center>$pvp</td><td align=center>$pk</td></tr>"; } echo "</table>"; ?> Online players on site , done.(?)
Lucky Dice Posted June 26, 2011 Author Posted June 26, 2011 <?php //---------CONFIGS---------// $title="Online Players"; // Page Title Here (Leave blank if you include this to another page) $server="127.0.0.1"; // MySQL IP $user="root"; //MySQL Username $password="blabla"; //MySQL Password $database="l2jdb"; //MySQL Database //-----END OF CONFIGS-----// if ($title) { print("<head><title>$title</title></head>"); } else { print("<head><title>title here</title></head>"); } mysql_connect("$server", "$user", "$password") or die(mysql_error()); mysql_select_db("$database") or die(mysql_error()); $result = mysql_query("SELECT char_name,title,pvpkills,pkkills FROM characters where online=1 and accesslevel=0 order by pvpkills desc") or die(mysql_error()); $row_sql = mysql_fetch_assoc($result); $total = mysql_num_rows($result); echo "<center><h3>Online Players: $total </h3></center><table border=1 align=center><tr> <th>Character</th> <th>Title</th> <th>PvP Kills</th> <th>PK Kills</th> </tr>"; while($row = mysql_fetch_array( $result )) { $name = $row['char_name']; $title = $row['title']; $pvp = $row['pvpkills']; $pk = $row['pkkills']; echo "<tr><td align=center>$name</td><td align=center>$title</td><td align=center>$pvp</td><td align=center>$pk</td></tr>"; } echo "</table>"; ?> Online players on site , done.(?) what's this? while($row = mysql_fetch_array( $result )) { $name = $row['char_name']; $title = $row['title']; $pvp = $row['pvpkills']; $pk = $row['pkkills'];
sharpshoot3r Posted June 26, 2011 Posted June 26, 2011 <?php //---------CONFIGS---------// $title="Online Players"; // Page Title Here (Leave blank if you include this to another page) $server="127.0.0.1"; // MySQL IP $user="root"; //MySQL Username $password="blabla"; //MySQL Password $database="l2jdb"; //MySQL Database //-----END OF CONFIGS-----// if ($title) { print("<head><title>$title</title></head>"); } else { print("<head><title>title here</title></head>"); } mysql_connect("$server", "$user", "$password") or die(mysql_error()); mysql_select_db("$database") or die(mysql_error()); $result = mysql_query("SELECT char_name,title,pvpkills,pkkills FROM characters where online=1 and accesslevel=0 order by pvpkills desc") or die(mysql_error()); $row_sql = mysql_fetch_assoc($result); $total = mysql_num_rows($result); echo "<center><h3>Online Players: $total </h3></center><table border=1 align=center><tr> <th>Character</th> <th>Title</th> <th>PvP Kills</th> <th>PK Kills</th> </tr>"; while($row = mysql_fetch_array( $result )) { $name = $row['char_name']; $title = $row['title']; $pvp = $row['pvpkills']; $pk = $row['pkkills']; echo "<tr><td align=center>$name</td><td align=center>$title</td><td align=center>$pvp</td><td align=center>$pk</td></tr>"; } echo "</table>"; ?> Online players on site , done.(?) +1
Recommended Posts