Jump to content
MakeWebGames

william7neace

Members
  • Posts

    40
  • Joined

  • Last visited

    Never

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

william7neace's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. I got this for you code Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/darkshad/public_html/missions.php on line 9
  2. ok i am getting this on my Missions link   Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/darkshad/public_html/missions.php on line 10   <?php session_start(); include "globals.php"; $ir['level']=(int)($ir['level']); //-- Missions V2 $error=("<b style='color:red;'>ERROR[/b]: "); print "<center><h3>Missions</h3> [b]You can start a mission now.[/b] </center>"; $q=mysql_query("SELECT * FROM missions",$c); if(mysql_num_rows($q)== 0) { die($error."There is no missions currently set up."); } $q2=mysql_query("SELECT * FROM missions WHERE level < ".$ir['level']."",$c); print "<table width=100% border=0><tr><th>Mission Name</th><th>Mission Description</th><th>Level Required</th><th>Location Needed</th><th>Links</th></tr>"; if(mysql_num_rows($q2)== 0) { print "<tr><td colspan=5>There are no missions currently available.</td></tr>"; } while($r2=mysql_fetch_array($q2)) { if($r2['location_on'] == 1) { $cnq=mysql_query("SELECT cityname FROM cities WHERE cityid=".$r2['location_value']."",$c); if($ir['location'] != $r2['location_value']) { $location="<font color=purple>[b]".mysql_result($cnq,0,0)."[/b]</font>"; $do="N/A"; } else { $location="<font color=red>[b]".mysql_result($cnq,0,0)."[/b]</font>"; $do="[url='startmission.php?ID=$r2[id]'][start][/url]"; } } else { $location="<font color=red>N/A</font>"; $do="[url='startmission.php?ID=$r2[id]'][start][/url]"; } $q3=mysql_query("SELECT * FROM missdone WHERE user=".$ir['userid']." AND mission=".$r2['id']."",$c); if(mysql_num_rows($q3)) { $do="[i]Done[/i]"; } print "<tr><td>{$r2['name']}</td><td>{$r2['description']}</td><td> {$r2['level']}</td><td>$location</td><td>$do</td></tr>"; } print "</table>"; $h->endpage(); ?>
  3. hey guys i am putting missions on my game and i get this when i go to the missions link on my game... Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/darkshad/public_html/missions.php on line 17 This is my Missions.php   <?phpsession_start();include "globals.php";$ir['level']=(int)($ir['level']);//-- Missions V2$error=("<b style='color:red;'>ERROR[/b]: ");print "<center><h3>Missions</h3>[b]You can start a mission now.[/b] </center>";$q=mysql_query("SELECT * FROM missions",$c);if(mysql_num_rows($q)== 0) { die($error."There is no missions currently set up."); }$q2=mysql_query("SELECT * FROM missions WHERE level < ".$ir['level']."",$c);print "<table width=100% border=0><tr><th>Mission Name</th><th>Mission Description</th><th>Level Required</th><th>Location Needed</th><th>Links</th></tr>";if(mysql_num_rows($q2)== 0){print "<tr><td colspan=5>There are no missions currently available.</td></tr>";}while($r2=mysql_fetch_array($q2)) { if($r2['location_on'] == 1) { $cnq=mysql_query("SELECT cityname FROM cities WHERE cityid=".$r2['location_value']."",$c);if($ir['location'] != $r2['location_value']) { $location="<font color=purple>[b]".mysql_result($cnq,0,0)."[/b]</font>"; $do="N/A"; } else { $location="<font color=red>[b]".mysql_result($cnq,0,0)."[/b]</font>"; $do="[url='startmission.php?ID=$r2[id]'][start][/url]"; } } else { $location="<font color=red>N/A</font>";$do="[url='startmission.php?ID=$r2[id]'][start][/url]"; }$q3=mysql_query("SELECT * FROM missdone WHERE user=".$ir['userid']." AND mission=".$r2['id']."",$c);if(mysql_num_rows($q3)) { $do="[i]Done[/i]"; }print "<tr><td>{$r2['name']}</td><td>{$r2['description']}</td><td>{$r2['level']}</td><td>$location</td><td>$do</td></tr>";}print "</table>";$h->endpage();?>
  4. Thx guys got the wsIrc Chat room alll set up :)
  5. Ok i got this code from the wsIrc website you were talking about Jordan <IFRAME SRC=http://www.wsirc.com/?username=wsirc_******&server=binary.ipocalypse.net%3A6667&channel=Dark%20Shadows&autojoin=false&color=%23000000&dark=true STYLE='width: 100%; height: 900;' WIDTH=100% HEIGHT=900 FRAMEBORDER=0 BORDER=0 SCROLLING=NO SCROLLBAR=NO></IFRAME> Now what do i put it in to???
  6. I did what you said and it fixed it... but i got this Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/darkshad/public_html/chatrooms.php on line 12 Then when i try to start a new Chatroom it says this   Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'root'@'localhost' (using password: YES) in /home/darkshad/public_html/mysql.php on line 2 Warning: mysql_select_db(): supplied argument is not a valid MySQL-Link resource in /home/darkshad/public_html/mysql.php on line 3 e Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in /home/darkshad/public_html/startroom.php on line 12 Access denied for user 'root'@'localhost' (using password: YES)
  7. No i only get it on my when i click on chat... Every other page is ok
  8. Ok guys i am having problems for some reason with a chat mod that i have... Have everything set up, but when i click my chat button i get this How can i fix this??   Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'root'@'localhost' (using password: YES) in /home/darkshad/public_html/mysql.php on line 2 Warning: mysql_select_db(): supplied argument is not a valid MySQL-Link resource in /home/darkshad/public_html/mysql.php on line 3 e Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in /home/darkshad/public_html/chatrooms.php on line 12 Access denied for user 'root'@'localhost' (using password: YES)
  9. Ok guys i have started my own game and i have the basics down on php coding.. i was wondering if someone would like to donate some of there time and help me code some stuff... like adding a chat and such to my game...
  10. Hey guys i have a pic i wanna put on my Menu bar on my Mccodes V2 game... How would i do this???
  11. I do not mean those kind of game templates meant like i template for my Mccodes V2
  12. How do i update my SQL so that i can do the mods for Mccodes V2???
  13. 1. Copied the files saved them as the names that they were told to save as.. 2. Did the layout installer 3. Uploaded the files after that 4. Tried to change the text color 5. IT DIDN'T WORK :(
  14. I followed all the steps and it will not let me change the text color or change the Center panel image.... What's going on???
  15. Hey everyone i just made my game ind it's way to plan... So i was wondering if someone would create me a theme for free??
×
×
  • Create New...