[Dev] MuOnline Web free dev PHP+CSS+MSSQL

azgardik

New Member
Joined
Aug 13, 2010
Messages
35
Reaction score
2
In this thread i will post my scripts and asking for help if need. I don`t mega web developer but i`m study for this and don`t want use bugles websites. If anyone want help me i will only thanks for help. All scripts and comments please in english.
Rankings top 100 :
PHP:
<?php
$connect = mssql_connect ('#server#','#user#','#password#');
mssql_select_db('muonline','$connect');
$chars2 = mssql_query("Select Top 100 Name,cLevel,Resets,class From Character where ctlcode !=32 order by Resets desc, cLevel desc, Experience desc");

print "

<table border=\"1\" cellpadding=\"1\" cellspacing=\"1\" width=\"100%\">
<tbody><tr align=\"center\" bgcolor=\"#FFA500\">
			<td><b>#</b></td>
			<td><b>".phrase_char."</b></td>
			<td><b>".phrase_level."</b></td>
			<td><b>".phrase_resets."</b></td>
		</tr>
";
$i = 1;
while ($i <= mssql_num_rows($chars2)) {
	$row = mssql_fetch_array($chars2);
	$rank = $i++;
echo "<tr align=\"center\" >";
	echo "<td>".$rank."</td>";
	echo "<td>".$row['Name']."</td>";
	echo "<td>".$row['cLevel']."</td>";
	echo "<td>".$row['Resets']."</td>";
	echo "</tr>";
	//End
}

?></table>
 
What about this script? I can't understand, what is the point from this thread?
 
i`m looking for designer for web - i will write scripts but i need someone who can design site for it.
 
Nooo, he means that he wants to write a PHP Mu-Online website, but he needs a designer to make a design 4 him.
He is good with the coding stuff, but he can't deal with designs.
 
Not bad at all... but you can use JQuery, cuz it will be better and stylish with auto refreshing extras :) (if I can say it on that way :D ) or you can use OOP ;] (It's more safety, more advanced and more quicker than usual PHP functions ;])
 
Good job! only change that you can do to make it little lighter is to change this

PHP:
while ($i <= mssql_num_rows($chars2)) {  $row = mssql_fetch_array($chars2);  ..
to this
PHP:
while ( $row = mssql_fetch_array($chars2); ) {...
to point to use
mssql_num_rows(..)
if there is no record while loop will break
...or you can use OOP ;] (It's more safety, more advanced and more quicker than usual PHP functions ;])
can you explain why to us incompetent piece of sh*t's
 
Last edited: