Database Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsOther TechnologiesDatabase Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
  #1  
Old December 16th, 2003, 03:37 PM
kid0100 kid0100 is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 2 kid0100 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Help Urgent!!!!

Problem wiht my databse I think. My site is http://www.herosofrome.com and if you check it out it has errors at the top!

Here is the same script at a lycos site:
http://www.members.lycos.co.uk/braveheartgame/

no errors. I am certain the password and db is all right. What is wrong and how do I fix it?

Reply With Quote
  #2  
Old December 16th, 2003, 03:49 PM
CodeKadiya CodeKadiya is offline
Codewalkers Regular (2000 - 2499 posts)
 
Join Date: Apr 2007
Location: Colombo,Sri Lanka
Posts: 2,313 CodeKadiya User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 4
Send a message via Yahoo to CodeKadiya
RE: Help Urgent!!!!

Can you post the code which is on http://www.herosofrome.com homepage?

Reply With Quote
  #3  
Old December 16th, 2003, 03:54 PM
kid0100 kid0100 is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 2 kid0100 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
RE: Help Urgent!!!!

Here
php Code:
Original - php Code
  1. <? ob_start("ob_gzhandler"); ?>
  2. <html>
  3. </html>
  4. <head>
  5. <title>Login</title>
  6. <?php
  7. include("gameconfig.php");
  8. include("style.css");
  9. ?>
  10. <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
  11. <script language="JavaScript" type="text/JavaScript">
  12. <!--
  13. function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  14.   if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
  15.     document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  16.   else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
  17. }
  18. MM_reloadPage(true);
  19. //-->
  20. </script>
  21. </head>
  22. <body>
  23. <div id="Layer1" style="position:absolute; left:396px; top:31px; width:308px; height:194px; z-index:1"><form action="check.php" method="post">
  24.     <p>&nbsp;</p>
  25.     <table width="246" border="0" align="center" cellpadding="0" cellspacing="0">
  26.       <!--DWLayoutTable-->
  27.       <tr>
  28.         <td width="100"><div align="right"><strong><font color="#000000">E-Mail
  29.             :</font></strong> </div></td>
  30.         <td width="145"><input type="text" name="email" style="border: 2px solid white; background-color: transparent; color: white; font-weight:bold"></td>
  31.         <td width="1"></td>
  32.       </tr>
  33.       <tr>
  34.         <td><div align="right"><strong><font color="#000000">Password :</font></strong>
  35.           </div></td>
  36.         <td><input type="password" name="password" style="border: 2px solid white; background-color: transparent; color: white; font-weight:bold"></td>
  37.         <td></td>
  38.       </tr>
  39.     </table>
  40.     <p align="center">
  41.       <input type="submit" name="Submit" value="Login" style="border: 1px solid Black; background-color: transparent; color: Black">
  42.       <br>
  43.     </p>
  44.   </form></div>
  45. <div align="left">
  46.   <p><img src="images/index_07.jpg" width=200" height="200"><img src="images/index_06.jpg" width=160" height="1"><img src="images/index_08.jpg" width="298" height="404">
  47.   </p>
  48.  
  49. <p align="left"><a href=signup.php>Create</a> | <a href=signup.php?action=verify>Verify
  50.   Account</a> | <a href=about.php>About Us</a> | <a href=help.php>Help Files</a>
  51.   | <a href=.php>Advertise</a> | <a href=update.php>Updates</a> | <a href=contact.php>Contact Us</a><br>
  52.   <br>
  53. <b>hero</b>  ( P )  Pronunciation Key  (hîr)<br>
  54. <i>n. pl.</i><br>
  55. In mythology and legend, a man, often of divine ancestry, who is endowed with great courage and strength, celebrated for his bold exploits, and favored by the gods.
  56. A person noted for feats of courage or nobility of purpose, especially one who has risked or sacrificed his or her life:
  57. <?php
  58.  
  59. //the start of the players logged in thing
  60.  
  61. $mem = mysql_query("select * from userdb");
  62.  
  63. $people_signed_up = mysql_num_rows($mem);
  64.  
  65. echo "<p><B>$people_signed_up</B> Total Citizens.";
  66.  
  67. $timestamp = time();
  68.  
  69. $bleh = $timestamp - 240;
  70.  
  71. $foo = mysql_query("select * from usersonline where timeon >= '$1'");
  72.  
  73. $this_many_players = mysql_num_rows($foo);
  74.  
  75. echo "<BR><b>$this_many_players</b> Citizens online.";
  76. ?>
  77. </body>
  78.  
  79. </html>
  80.  
  81.  
  82. <? ob_end_flush(); ?>
  83. </div>
  84. </body>
  85. </html>

Reply With Quote
  #4  
Old December 16th, 2003, 04:04 PM
CodeKadiya CodeKadiya is offline
Codewalkers Regular (2000 - 2499 posts)
 
Join Date: Apr 2007
Location: Colombo,Sri Lanka
Posts: 2,313 CodeKadiya User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 4
Send a message via Yahoo to CodeKadiya
RE: Help Urgent!!!!

oh! I can be something with connecting to the database. The query is not executed. You could see the bug with die() function.

Reply With Quote
  #5  
Old December 16th, 2003, 08:44 PM
Blindeddie Blindeddie is offline
Codewalkers Regular (2000 - 2499 posts)
 
Join Date: Apr 2007
Location: NJ - USA
Posts: 2,152 Blindeddie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 4
RE: Help Urgent!!!!

I don't see any error on the page you posted, have you corrected the problem?

Reply With Quote
Reply

Viewing: Codewalkers ForumsOther TechnologiesDatabase Help > Help Urgent!!!!


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway
Stay green...Green IT