Need help asap please error.

Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /home/a1887675/public_html/index.php on line 68

[code]

Rune-Index - Supporting Your Rsps! body { padding-top: 60px; padding-bottom: 40px; } #news p { font-size: 13pt; }
					<div class="btn-group pull-right" id="signin">
						<a id="userid" class="btn btn-success dropdown-toggle" data-toggle="modal" href="#login">
						<i class="icon-user icon-white"></i> <span id="username">Sign in</span>
						</a>
					</div>
										<div class="nav-collapse">


					</ul>
				</div>
			</div>
		</div>
	</div>		<div class="container">
		<center><div style="background-image: url(/img/logo.png); width: 400px; height: 130px; margin-top: -20px;"></div></center>
		<div class="hero-unit" id="news">
	  <div id="contentblock">
	  </div>
	  <div id="block">
<?php include ("config.php"); $SQL = "SELECT * FROM server ORDER BY votes DESC"; $result = mysql_query($SQL); $ss = $start_from + 1; while ($db_field = mysql_fetch_assoc($result)) { $ServerName = $db_field['name']; $Description = $db_field['desc']; $link = $db_field['site']; $votes = $db_field['votes']; $ip = $db_field['ip']; $rev = $db_field['rev']; $port = $db_field['port']; $text = "$Description"; if (strlen($text) > 40) { $shortText = substr($text, 0, 40); $shortText .= ' ... Read More'; }else { $shortText = $text; } if ($db_field['prem'] == gold) { echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; }else{ echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; } } ?>
Revision Server Name Description Votes Vote Play
' . $rev . '

' . $ServerName . '/h3>

' . $text . '' . $votes . 'Vote now!
' . $rev . '' . $ServerName . '' . $text . '' . $votes . 'Vote now!Play now!
	  </div>
	  <div id="contentblock">
	  </div>

Copyright © Rune-Index 2012 - 2013.

</div>
	<script src="/js/jquery.js"></script>
	<script src="/js/bootstrap-transition.js"></script>
	<script src="/js/bootstrap-alert.js"></script>
	<script src="/js/bootstrap-modal.js"></script>
	<script src="/js/bootstrap-dropdown.js"></script>
	<script src="/js/bootstrap-scrollspy.js"></script>
	<script src="/js/bootstrap-tab.js"></script>
	<script src="/js/bootstrap-tooltip.js"></script>
	<script src="/js/bootstrap-popover.js"></script>
	<script src="/js/bootstrap-button.js"></script>
	<script src="/js/bootstrap-collapse.js"></script>
	<script src="/js/bootstrap-carousel.js"></script>
	<script src="/js/bootstrap-typeahead.js"></script>
	<script src="/js/bootstrap-popover.js"></script>
	<script src="/js/jquery.scrollto.min.js"></script>				<form method="post" action="/forums/index.php?app=core&amp;module=global&amp;section=login&amp;do=process">
		<div class="modal hide fade" id="login">
			<div class="modal-header">
				<button type="button" class="close" data-dismiss="modal">×</button>
				<h3>Sign In</h3>
			</div>
			<div class="modal-body">
				<p>Please, fill in your credentials to log in to Excision.</p>
				<p>we're sorry for the inconvenience, the login box doesn't work yet.</p>
				<div style="height: 5px;"></div>
				<div class="input-prepend"><span class="add-on"><i class="icon-user"></i></span><input class="input-xlarge span2" name="ips_username" type="text" value="" placeholder="Username" maxlength="64"></div>
				<div class="input-prepend"><span class="add-on"><i class="icon-key"></i></span><input class="input-xlarge span2" name="ips_password" type="password" value="" placeholder="Password"></div>
				<p style="position: absolute; margin-top: 27px;">
				<a href="/forums/register.php" title="Register an account at Excision.">Register an account.</a><br>
				<a href="/forums/login.php?do=lostpw" title="Recover your lost password.">I've lost my password.</a></p>
			</div>
			<div class="modal-footer">
				<a href="#" class="btn" data-dismiss="modal">Cancel</a>
				<input type="submit" class="btn btn-primary" value="Sign In">
			</div>
		</div>
	</form>
	<div class="modal hide fade" id="logout">
		<div class="modal-header">
			<button type="button" class="close" data-dismiss="modal">×</button>
			<h3>Sign Out</h3>
		</div>
		<div class="modal-body">
			<center><h3>Are you sure you want to sign out?</h3><br>
			<a href="/forums/login.php?do=logout&logouthash=1346526146-7eb0a38c3cabbc2edb9f80fc49ce7a7c2f51487f" class="btn btn-large btn-success">Yes</a> or <a href="/index2.php#" data-dismiss="modal" class="btn btn-large btn-danger">No</a></center>
		</div>
	</div>
	<div class="modal hide fade" id="toplist">
		<div class="modal-header">
			<button type="button" class="close" data-dismiss="modal">×</button>
			<h3>Choose Toplist</h3>
		</div>
		<div class="modal-body">
			<script>
			function webclient() {
				document.getElementById("webclientthumb").setAttribute("style", "filter:alpha(opacity=100); opacity:1;");
				document.getElementById("downloadclientthumb").setAttribute("style", "filter:alpha(opacity=50); opacity:0.5;");
				document.getElementById("playweb").setAttribute("style", "display: block;");
				document.getElementById("playweb2").setAttribute("style", "display: block;");
				document.getElementById("playdl1").setAttribute("style", "display: none;");
				document.getElementById("playdl2").setAttribute("style", "display: none;");
			}
			function downloadclient() {
				document.getElementById("downloadclientthumb").setAttribute("style", "filter:alpha(opacity=100); opacity:1;");
				document.getElementById("webclientthumb").setAttribute("style", "filter:alpha(opacity=50); opacity:0.5;");
				document.getElementById("playdl1").setAttribute("style", "display: block;");
				document.getElementById("playdl2").setAttribute("style", "display: block;");
				document.getElementById("playweb").setAttribute("style", "display: none;");
				document.getElementById("playweb2").setAttribute("style", "display: none;");
			}
			</script>
			<center>
			<table>
			<tbody><tr>
			<td>
			<ul class="thumbnails">
				<li class="span3">
					<div onclick="webclient();" id="webclientthumb" class="thumbnail" style="filter:alpha(opacity=50); opacity:0.5;">
						<img src="./zaptor_files/zaptorclient.png" alt="">
						<div class="caption">
							<h5>Toplist</h5>
							<p>Check here the toplist of the maded Webclients.</p>
							<a id="playweb" style="display: none;" class="btn btn-primary" href="/toplist/">Toplist</a>
							<div style="height: 3px;"></div>
						</div>
					</div>
				</li>
			</ul>
			</td>
			<td><div style="width: 30px;"></div></td>
			<td>
			<ul class="thumbnails">
				<li class="span3">
					<div onclick="downloadclient();" id="downloadclientthumb" class="thumbnail" style="filter:alpha(opacity=50); opacity:0.5;">
						<img src="./zaptor_files/zaptorclient.png" alt="">
						<div class="caption">
							<h5>Hamachi Toplist</h5>
							<p>Check here the toplist of the created Hamachi servers.</p>
							<a id="playdl1" style="display: none;" target="_blank" class="btn btn-primary" href="/toplist2/">Hamachi Toplist</a>
							<div style="height: 3px;"></div>
						</div>
					</div>
				</li>
			</ul>
			</td>
			</tr>
			</tbody></table></center>
		</div>
	</div>				
[/code] http://pastebin.com/NS0mTdjY

idk why i can’t edit my post so ima post more errors here

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/a1887675/public_html/create.php on line 72

http://pastebin.com/sMEg4TAW


Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/a1887675/public_html/login.php on line 78

http://pastebin.com/jRJ3mJGy

i think ur query is not going thruu

try to replace the following line

[php]
$result = mysql_query($SQL);
[/php]

with

[php]
$result = mysql_query($SQL) or die(mysql_error());
[/php]

now if you get an error saying SQL SYNTAX add tics around server and votes ike this

$SQL = "SELECT * FROM `server` ORDER BY `votes` DESC";

another idea altogether is instead of
[php]
$SQL = “SELECT * FROM server ORDER BY votes DESC”;
$result = mysql_query($SQL);
[/php]
do this
[php]
$result = mysql_query(“SELECT * FROM server ORDER BY votes DESC”) or die(mysql_error);
[/php]

no need for the extra variable!!!

Sponsor our Newsletter | Privacy Policy | Terms of Service