Jump to content

Pi_Mastuh

Members
  • Posts

    233
  • Joined

  • Last visited

    Never

Everything posted by Pi_Mastuh

  1. I'm not sure how to get it to check all of those conditions though. I tried using parentheses inside of parenthesis and it didn't work.
  2. I am trying to run a rather complex query, and am getting the error: "Every derived table must have its own alias." I haven't done this kind of complex SQL before, could somebody tell me what I'm missing here? Thanks! $SQL2 = "SELECT * FROM shiftsIn WHERE date='$day' AND month='$month' AND year='$year' AND busID='$userBusID'"; $SQL = "SELECT * FROM ($SQL2) WHERE (startTime<='$startTime2' AND endTime>='$endTime2') OR (startTime IS NULL AND endTime IS NULL)"; $resultShifts = mysql_query($SQL,$connection) or die(mysql_error()); $numShifts = mysql_num_rows($resultShifts);
  3. I am trying to run a select query, and am not sure why I'm getting a syntax error. $SQL2 = "SELECT * FROM messages WHERE to='$username' OR (to='ALL' AND busID='$busID')"; $result = mysql_query($SQL2,$connection) or die(mysql_error()); "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'to='lynsey93' OR (to='ALL' AND busID='1')' at line 1" Could anybody shed some light on the situation?
  4. Here's my code, is there something wrong in it?: <? session_start(); $session=session_id( ); include ("secure/config.php"); //WHEN YOU PUT THIS ON THE PAGES ADD A secure/ BEFORE CONFIG.PHP! ?> <script language="JavaScript" type="text/JavaScript"> <!-- function MM_reloadPage(init) { //reloads the window if Nav4 resized if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) { document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }} else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload(); } MM_reloadPage(true); //--> </script> <META NAME="Description" CONTENT="Net-Petz is the newest virtual pet site on the internet. It has fun games, lots of cool petz to adopt, and tons of awesome items! It's completely free!"> <META NAME="Keywords" CONTENT="petz, net, virtual, pets, pet, fun, games, game, "> </head> <body> <? if ($preuserID == 0) { include ("../oops.htm"); die; } ?> <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="1155" id="AutoNumber1" height="802"> <tr><td width="1483" height="138" valign="top" align="right" <? $rand = rand (1,10); if ($rand == 1) { echo "background=SB1_anubis.png"; } elseif ($rand == 2) { echo "background=SB1_bromaro.png"; } elseif ($rand == 3) { echo "background=SB1_fang.png"; } elseif ($rand == 4) { echo "background=SB1_kitachia.png"; } elseif ($rand == 5) { echo "background=SB1_coarattla.png"; } elseif ($rand == 6) { echo "background=SB1_dragonous.png"; } elseif ($rand == 7) { echo "background=SB1_fizz.png"; } elseif ($rand == { echo "background=SB1_woofosa.png"; } elseif ($rand == 9) { echo "background=SB1_worfoli.png"; } elseif ($rand == 10) { echo "background=SB1_lionaya.png"; } ?> colspan="2"> <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber3" height="113"> <tr> <td width="15%" height="104" colspan="3" rowspan="3"> </td> <td width="31%" height="40"> </td> <td width="54%" height="104" rowspan="3"> </td> </tr> <tr> <td width="31%" height="23"> <p align="center"><b> <font color="#FFFFFF" face="Arial" style="font-size: 11pt"><? if ($preuserID != 0){ print "<a href=http://www.net-petz.com/reg/lookup.php?Name=$preuserName><font color=#FFFFFF>$preuserName</a>"; } else { print "Guest"; } ?> - <? if ($preuserID != 0){ print "<a href=http://www.net-petz.com/reg/bank.php><font color=#FFFFFF>$points NPz</a>"; } else { print "0 NPz"; } ?> - <? if ($preuserID != 0 AND $activePetID == 0) { print "No Active Pet"; } elseif ($preuserID != 0){ print "<a href=http://www.net-petz.com/reg/petDetails2.php?monopetID=$activePetID><font color=#FFFFFF>$activePetName</a> is Active"; } else { print "No Active Pet"; } ?></font></b></td> </tr> </table> </td> </tr><tr><td> <div style="background-image:url("SB3.png"); height:600px; height:100px; padding: 10px; text-align:center"><b> .: Main :.<br> </b> <? if ($preuserID != 0){ echo "<font color=#FFFFFF face=Arial><a href=http://www.net-petz.com/reg/home.php><font color=#FFFFFF>Home</a>"; } else { echo "<font color=#FFFFFF face=Arial><a href=http://www.net-petz.com><font color=#FFFFFF>Home</a>"; } ?><br></font> <a href="http://www.net-petz.com/reg/mypets.php"><font color="#FFFFFF">My Petz</font></a><br> <a href="http://www.net-petz.com/reg/myitems.php"><font color="#FFFFFF">Inventory</font></a><br> <? if ($preuserID != 0){ echo "<a href=http://www.net-petz.com/reg/logout.php><font color=#FFFFFF><- Logout</font></a><br>"; } else { echo "<a href=http://www.net-petz.com/login.php><font color=#FFFFFF>Login -></font></a><br>"; } ?><br> <b>.:Explore:.</b><br> <a href="http://www.net-petz.com/reg/netlandia.php"> <font color="#FFFFFF">Netlandia</font></a><br> <a href="http://www.net-petz.com/reg/city.php"><font color="#FFFFFF">Net-City</font></a><br><br> <b>.:Interact:.</b><br> <a href="http://www.net-petz.com/reg/messageboard.php"> <font color="#FFFFFF">Net-Boards</font></a><br> <a href="http://www.net-petz.com/reg/inbox.php"><font color="#FFFFFF">Net-Mail</font></a><br> <a href="http://www.net-petz.com/reg/lookups.php"><font color="#FFFFFF">Lookups</font></a><br> <a href="http://www.net-petz.com/reg/ushops.php"><font color="#FFFFFF">User Shops</font></a><br><br> <b>.:Fun:.</b><br> <a href="http://www.net-petz.com/reg/games.php"><font color="#FFFFFF">Game Room</font></a><br> <a href="http://www.net-petz.com/reg/stuff.php"><font color="#FFFFFF">Fun Stuff</font></a><br><br> <b>.:Options:.</b><br> <a href="http://www.net-petz.com/reg/userInfo.php"> <font color="#FFFFFF">User Options</font></a><br> <a href="http://www.net-petz.com/reg/luedit.php"><font color="#FFFFFF">Lookup Options</font></a><br> <a href="http://www.net-petz.com/reg/boardpreff.php"> <font color="#FFFFFF">Board Options</font></a><br><br> <b>.:More:.</b><br> <? if ($preuserID != 0){ echo "<font color=#FFFFFF face=Arial><a href=http://www.net-petz.com/reg/help.php><font color=#FFFFFF>About Us</a>"; } else { echo "<font color=#FFFFFF face=Arial><a href=http://www.net-petz.com/help.php><font color=#FFFFFF>About Us</a>"; } ?><br> <? if ($preuserID != 0){ echo "<font color=#FFFFFF face=Arial><a href=http://www.net-petz.com/reg/contact.php><font color=#FFFFFF>Contact Us</a>"; } else { echo "<font color=#FFFFFF face=Arial><a href=http://www.net-petz.com/contact.php><font color=#FFFFFF>Contact Us</a>"; } ?></td> </div> </tr> </table> </td> <td width="1213" height="1002" valign="top" align="center" rowspan="2"> <? include ("secure/randoms.php"); ?> <? //PAGE CONTENT ?> <? //END PAGE CONTENT ?> </td> </tr> <tr> <td width="270" height="415" valign="top" align="right"> </td> </tr> </table> </body> </html>
  5. I got this: http://i98.photobucket.com/albums/l247/Thomalor/sc3.jpg
  6. How do I do that? Here's the code I'm using: <? session_start(); $session=session_id( ); include ("secure/config.php"); //WHEN YOU PUT THIS ON THE PAGES ADD A secure/ BEFORE CONFIG.PHP! ?> <script language="JavaScript" type="text/JavaScript"> <!-- function MM_reloadPage(init) { //reloads the window if Nav4 resized if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) { document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }} else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload(); } MM_reloadPage(true); //--> </script> <META NAME="Description" CONTENT="Net-Petz is the newest virtual pet site on the internet. It has fun games, lots of cool petz to adopt, and tons of awesome items! It's completely free!"> <META NAME="Keywords" CONTENT="petz, net, virtual, pets, pet, fun, games, game, "> </head> <body> <? if ($preuserID == 0) { include ("../oops.htm"); die; } ?> <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="1155" id="AutoNumber1" height="802"> <tr><td width="1483" height="138" valign="top" align="right" <? $rand = rand (1,10); if ($rand == 1) { echo "background=SB1_anubis.png"; } elseif ($rand == 2) { echo "background=SB1_bromaro.png"; } elseif ($rand == 3) { echo "background=SB1_fang.png"; } elseif ($rand == 4) { echo "background=SB1_kitachia.png"; } elseif ($rand == 5) { echo "background=SB1_coarattla.png"; } elseif ($rand == 6) { echo "background=SB1_dragonous.png"; } elseif ($rand == 7) { echo "background=SB1_fizz.png"; } elseif ($rand == { echo "background=SB1_woofosa.png"; } elseif ($rand == 9) { echo "background=SB1_worfoli.png"; } elseif ($rand == 10) { echo "background=SB1_lionaya.png"; } ?> colspan="2"> <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber3" height="113"> <tr> <td width="15%" height="104" colspan="3" rowspan="3"> </td> <td width="31%" height="40"> </td> <td width="54%" height="104" rowspan="3"> </td> </tr> <tr> <td width="31%" height="23"> <p align="center"><b> <font color="#FFFFFF" face="Arial" style="font-size: 11pt"><? if ($preuserID != 0){ print "<a href=http://www.net-petz.com/reg/lookup.php?Name=$preuserName><font color=#FFFFFF>$preuserName</a>"; } else { print "Guest"; } ?> - <? if ($preuserID != 0){ print "<a href=http://www.net-petz.com/reg/bank.php><font color=#FFFFFF>$points NPz</a>"; } else { print "0 NPz"; } ?> - <? if ($preuserID != 0 AND $activePetID == 0) { print "No Active Pet"; } elseif ($preuserID != 0){ print "<a href=http://www.net-petz.com/reg/petDetails2.php?monopetID=$activePetID><font color=#FFFFFF>$activePetName</a> is Active"; } else { print "No Active Pet"; } ?></font></b></td> </tr> </table> </td> </tr> <tr> <td width="325" height="657" valign="top" align="right" background="SB3.png"> <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="103%" id="AutoNumber4" height="42"> <tr> <td width="7%" height="27" align="center"> </td> <td width="51%" height="27" align="center" valign="top"> </td> <td width="92%" height="27"> </td> </tr> <tr> <td width="7%" height="536" align="center"> </td> <td width="51%" height="536" align="center" valign="top"> <font color="#FFFFFF" face="Arial"> <font color="#FFFFFF" face="Arial"><b>.:Main:.<br> </b> <? if ($preuserID != 0){ echo "<font color=#FFFFFF face=Arial><a href=http://www.net-petz.com/reg/home.php><font color=#FFFFFF>Home</a>"; } else { echo "<font color=#FFFFFF face=Arial><a href=http://www.net-petz.com><font color=#FFFFFF>Home</a>"; } ?><br></font> <a href="http://www.net-petz.com/reg/mypets.php"><font color="#FFFFFF">My Petz</font></a><br> <a href="http://www.net-petz.com/reg/myitems.php"><font color="#FFFFFF">Inventory</font></a><br> <? if ($preuserID != 0){ echo "<a href=http://www.net-petz.com/reg/logout.php><font color=#FFFFFF><- Logout</font></a><br>"; } else { echo "<a href=http://www.net-petz.com/login.php><font color=#FFFFFF>Login -></font></a><br>"; } ?><br> <b>.:Explore:.</b><br> <a href="http://www.net-petz.com/reg/netlandia.php"> <font color="#FFFFFF">Netlandia</font></a><br> <a href="http://www.net-petz.com/reg/city.php"><font color="#FFFFFF">Net-City</font></a><br><br> <b>.:Interact:.</b><br> <a href="http://www.net-petz.com/reg/messageboard.php"> <font color="#FFFFFF">Net-Boards</font></a><br> <a href="http://www.net-petz.com/reg/inbox.php"><font color="#FFFFFF">Net-Mail</font></a><br> <a href="http://www.net-petz.com/reg/lookups.php"><font color="#FFFFFF">Lookups</font></a><br> <a href="http://www.net-petz.com/reg/ushops.php"><font color="#FFFFFF">User Shops</font></a><br><br> <b>.:Fun:.</b><br> <a href="http://www.net-petz.com/reg/games.php"><font color="#FFFFFF">Game Room</font></a><br> <a href="http://www.net-petz.com/reg/stuff.php"><font color="#FFFFFF">Fun Stuff</font></a><br><br> <b>.:Options:.</b><br> <a href="http://www.net-petz.com/reg/userInfo.php"> <font color="#FFFFFF">User Options</font></a><br> <a href="http://www.net-petz.com/reg/luedit.php"><font color="#FFFFFF">Lookup Options</font></a><br> <a href="http://www.net-petz.com/reg/boardpreff.php"> <font color="#FFFFFF">Board Options</font></a><br><br> <b>.:More:.</b><br> <? if ($preuserID != 0){ echo "<font color=#FFFFFF face=Arial><a href=http://www.net-petz.com/reg/help.php><font color=#FFFFFF>About Us</a>"; } else { echo "<font color=#FFFFFF face=Arial><a href=http://www.net-petz.com/help.php><font color=#FFFFFF>About Us</a>"; } ?><br> <? if ($preuserID != 0){ echo "<font color=#FFFFFF face=Arial><a href=http://www.net-petz.com/reg/contact.php><font color=#FFFFFF>Contact Us</a>"; } else { echo "<font color=#FFFFFF face=Arial><a href=http://www.net-petz.com/contact.php><font color=#FFFFFF>Contact Us</a>"; } ?></td> <td width="92%" height="536"> </td> </tr> </table> </td> <td width="1213" height="1002" valign="top" align="center" rowspan="2"> <? include ("secure/randoms.php"); ?> <? //PAGE CONTENT ?> <? //END PAGE CONTENT ?> </td> </tr> <tr> <td width="270" height="415" valign="top" align="right"> </td> </tr> </table> </body> </html>
  7. I have a sidebar made using tables and the image as the background, but when there's content in the main table to pushes on the sidebar tables thus misaligning the text. I have some images: http://i98.photobucket.com/albums/l247/Thomalor/sc1.jpg http://i98.photobucket.com/albums/l247/Thomalor/sc2.jpg
  8. Oh! That shouldn't be on this one, it's the script that tells it to say "you're not logged in" if you're not, but you shouldn't be logged in on the login page
  9. When I go to this page it's just a blank screen. Would anyone be able to tell me what's wrong? <? session_start(); $session=session_id( ); include ("secure/config.php"); //WHEN YOU PUT THIS ON THE PAGES ADD A secure/ BEFORE CONFIG.PHP! ?> <script language="JavaScript" type="text/JavaScript"> <!-- function MM_reloadPage(init) { //reloads the window if Nav4 resized if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) { document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }} else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload(); } MM_reloadPage(true); //--> </script> <META NAME="Description" CONTENT="Net-Petz is the newest virtual pet site on the internet. It has fun games, lots of cool petz to adopt, and tons of awesome items! It's completely free!"> <META NAME="Keywords" CONTENT="petz, net, virtual, pets, pet, fun, games, game, "> </head> <body> <? if ($preuserID == 0) { include ("../oops.htm"); die; } ?> <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="1155" id="AutoNumber1" height="802"> <tr> <td width="1483" height="138" valign="top" align="right" <?php $imgs = ('anubis','bromaro','fang','kitachia','coarattla','dragonous','fizz','woofosa','worfoli','lionaya'); $rand = rand (0,9); echo ' background="SB1_' . $imgs[$i] . '"'; ?> colspan="2"> <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber3" height="113"> <tr> <td width="15%" height="104" colspan="3" rowspan="3"> </td> <td width="31%" height="40"> </td> <td width="54%" height="104" rowspan="3"> </td> </tr> <tr> <td width="31%" height="23"> <p align="center"><b> <font color="#FFFFFF" face="Arial" style="font-size: 11pt"><? if ($preuserID != 0){ print "<a href=http://www.net-petz.com/reg/lookup.php?Name=$preuserName><font color=#FFFFFF>$preuserName</a>"; } else { print "Guest"; } ?> - <? if ($preuserID != 0){ print "<a href=http://www.net-petz.com/reg/bank.php><font color=#FFFFFF>$points NPz</a>"; } else { print "0 NPz"; } ?> - <? if ($preuserID != 0 AND $activePetID == 0) { print "No Active Pet"; } elseif ($preuserID != 0){ print "<a href=http://www.net-petz.com/reg/petDetails2.php?monopetID=$activePetID><font color=#FFFFFF>$activePetName</a> is Active"; } else { print "No Active Pet"; } ?></font></b></td> </tr> </table> </td> </tr> <tr> <td width="325" height="657" valign="top" align="right" background="SB3.png"> <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="103%" id="AutoNumber4" height="42"> <tr> <td width="7%" height="27" align="center"> </td> <td width="51%" height="27" align="center" valign="top"> </td> <td width="92%" height="27"> </td> </tr> <tr> <td width="7%" height="536" align="center"> </td> <td width="51%" height="536" align="center" valign="top"> <font color="#FFFFFF" face="Arial"> <font color="#FFFFFF" face="Arial"><b>.:Main:.<br> </b> <? if ($preuserID != 0){ echo "<font color=#FFFFFF face=Arial><a href=http://www.net-petz.com/reg/home.php><font color=#FFFFFF>Home</a>"; } else { echo "<font color=#FFFFFF face=Arial><a href=http://www.net-petz.com><font color=#FFFFFF>Home</a>"; } ?><br></font> <a href="http://www.net-petz.com/reg/mypets.php"><font color="#FFFFFF">My Petz</font></a><br> <a href="http://www.net-petz.com/reg/myitems.php"><font color="#FFFFFF">Inventory</font></a><br> <? if ($preuserID != 0){ echo "<a href=http://www.net-petz.com/reg/logout.php><font color=#FFFFFF><- Logout</font></a><br>"; } else { echo "<a href=http://www.net-petz.com/login.php><font color=#FFFFFF>Login -></font></a><br>"; } ?><br> <b>.:Explore:.</b><br> <a href="http://www.net-petz.com/reg/netlandia.php"> <font color="#FFFFFF">Netlandia</font></a><br> <a href="http://www.net-petz.com/reg/city.php"><font color="#FFFFFF">Net-City</font></a><br><br> <b>.:Interact:.</b><br> <a href="http://www.net-petz.com/reg/messageboard.php"> <font color="#FFFFFF">Net-Boards</font></a><br> <a href="http://www.net-petz.com/reg/inbox.php"><font color="#FFFFFF">Net-Mail</font></a><br> <a href="http://www.net-petz.com/reg/lookups.php"><font color="#FFFFFF">Lookups</font></a><br> <a href="http://www.net-petz.com/reg/ushops.php"><font color="#FFFFFF">User Shops</font></a><br><br> <b>.:Fun:.</b><br> <a href="http://www.net-petz.com/reg/games.php"><font color="#FFFFFF">Game Room</font></a><br> <a href="http://www.net-petz.com/reg/stuff.php"><font color="#FFFFFF">Fun Stuff</font></a><br><br> <b>.:Options:.</b><br> <a href="http://www.net-petz.com/reg/userInfo.php"> <font color="#FFFFFF">User Options</font></a><br> <a href="http://www.net-petz.com/reg/luedit.php"><font color="#FFFFFF">Lookup Options</font></a><br> <a href="http://www.net-petz.com/reg/boardpreff.php"> <font color="#FFFFFF">Board Options</font></a><br><br> <b>.:More:.</b><br> <? if ($preuserID != 0){ echo "<font color=#FFFFFF face=Arial><a href=http://www.net-petz.com/reg/help.php><font color=#FFFFFF>About Us</a>"; } else { echo "<font color=#FFFFFF face=Arial><a href=http://www.net-petz.com/help.php><font color=#FFFFFF>About Us</a>"; } ?><br> <? if ($preuserID != 0){ echo "<font color=#FFFFFF face=Arial><a href=http://www.net-petz.com/reg/contact.php><font color=#FFFFFF>Contact Us</a>"; } else { echo "<font color=#FFFFFF face=Arial><a href=http://www.net-petz.com/contact.php><font color=#FFFFFF>Contact Us</a>"; } ?></td> <td width="92%" height="536"> </td> </tr> </table> </td> <td width="1213" height="1002" valign="top" align="center" rowspan="2"> <? include ("secure/randoms.php"); ?> <? //PAGE CONTENT ?> <font color="#CEE7FF" size="2" face="Arial, Helvetica, sans-serif"><strong> Login</strong></font></div></td> </tr> <tr> <td bgcolor="#CEE7FF"> <div align="center"> <form method="POST" action="reg/secure/index.php"> <table width="300" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="219"> <p align="left"><font face="Arial, Helvetica, sans-serif" size="2"> <b> User Name: </b></font></td> <td width="181"><font face="Arial, Helvetica, sans-serif" size="2"> <input type="text" name="preuserName" size="20"> </font></td> </tr> <tr> <td width="219"><font face="Arial, Helvetica, sans-serif" size="2"> <b>Password:</b></font></td> <td width="181"><font face="Arial, Helvetica, sans-serif" size="2"> <input type="password" name="preuserPassword" size="20"> </font></td> </tr> <tr> <td colspan="2" height="2"> <div align="center"><font face="Arial, Helvetica, sans-serif" size="2"> </font></div></td> </tr> <tr> <td colspan="2" height="2"> <div align="center"><font face="Arial, Helvetica, sans-serif" size="2"> <input type=submit name="Submit" value="Submit"> </font></div></td> </tr> </table> </form> <? //END PAGE CONTENT ?> </td> </tr> <tr> <td width="270" height="415" valign="top" align="right"> </td> </tr> </table> </body> </html>
  10. No, it's echoing the thing for the background image.
  11. I have a table and another table inside the cell.
  12. No, I have it randomizing from 10 different images for the background.
  13. I want a table in a table.
  14. Oh shoot. Thanks. Another error I'm getting is that this page is showing up blank: <? session_start(); $session=session_id( ); include ("secure/config.php"); //WHEN YOU PUT THIS ON THE PAGES ADD A secure/ BEFORE CONFIG.PHP! ?> <script language="JavaScript" type="text/JavaScript"> <!-- function MM_reloadPage(init) { //reloads the window if Nav4 resized if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) { document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }} else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload(); } MM_reloadPage(true); //--> </script> <META NAME="Description" CONTENT="Net-Petz is the newest virtual pet site on the internet. It has fun games, lots of cool petz to adopt, and tons of awesome items! It's completely free!"> <META NAME="Keywords" CONTENT="petz, net, virtual, pets, pet, fun, games, game, "> </head> <body> <? if ($preuserID == 0) { include ("../oops.htm"); die; } ?> <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="1155" id="AutoNumber1" height="802"> <tr> <td width="1483" height="138" valign="top" align="right" <? $rand = rand (1,10); if ($rand == 1) { echo "background=SB1_anubis.png"; } elseif ($rand == 2) { echo "background=SB1_bromaro.png"; } elseif ($rand == 3) { echo "background=SB1_fang.png"; } elseif ($rand == 4) { echo "background=SB1_kitachia.png"; } elseif ($rand == 5) { echo "background=SB1_coarattla.png"; } elseif ($rand == 6) { echo "background=SB1_dragonous.png"; } elseif ($rand == 7) { echo "background=SB1_fizz.png"; } elseif ($rand == { echo "background=SB1_woofosa.png"; } elseif ($rand == 9) { echo "background=SB1_worfoli.png"; } elseif ($rand == 10) { echo "background=SB1_lionaya.png"; } ?> colspan="2"> <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber3" height="113"> <tr> <td width="15%" height="104" colspan="3" rowspan="3"> </td> <td width="31%" height="40"> </td> <td width="54%" height="104" rowspan="3"> </td> </tr> <tr> <td width="31%" height="23"> <p align="center"><b> <font color="#FFFFFF" face="Arial" style="font-size: 11pt"><? if ($preuserID != 0){ print "<a href=http://www.net-petz.com/reg/lookup.php?Name=$preuserName><font color=#FFFFFF>$preuserName</a>"; } else { print "Guest"; } ?> - <? if ($preuserID != 0){ print "<a href=http://www.net-petz.com/reg/bank.php><font color=#FFFFFF>$points NPz</a>"; } else { print "0 NPz"; } ?> - <? if ($preuserID != 0 AND $activePetID == 0) { print "No Active Pet"; } elseif ($preuserID != 0){ print "<a href=http://www.net-petz.com/reg/petDetails2.php?monopetID=$activePetID><font color=#FFFFFF>$activePetName</a> is Active"; } else { print "No Active Pet"; } ?></font></b></td> </tr> </table> </td> </tr> <tr> <td width="325" height="657" valign="top" align="right" background="SB3.png"> <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="103%" id="AutoNumber4" height="42"> <tr> <td width="7%" height="27" align="center"> </td> <td width="51%" height="27" align="center" valign="top"> </td> <td width="92%" height="27"> </td> </tr> <tr> <td width="7%" height="536" align="center"> </td> <td width="51%" height="536" align="center" valign="top"> <font color="#FFFFFF" face="Arial"> <font color="#FFFFFF" face="Arial"><b>.:Main:.<br> </b> <? if ($preuserID != 0){ echo "<font color=#FFFFFF face=Arial><a href=http://www.net-petz.com/reg/home.php><font color=#FFFFFF>Home</a>"; } else { echo "<font color=#FFFFFF face=Arial><a href=http://www.net-petz.com><font color=#FFFFFF>Home</a>"; } ?><br></font> <a href="http://www.net-petz.com/reg/mypets.php"><font color="#FFFFFF">My Petz</font></a><br> <a href="http://www.net-petz.com/reg/myitems.php"><font color="#FFFFFF">Inventory</font></a><br> <? if ($preuserID != 0){ echo "<a href=http://www.net-petz.com/reg/logout.php><font color=#FFFFFF><- Logout</font></a><br>"; } else { echo "<a href=http://www.net-petz.com/login.php><font color=#FFFFFF>Login -></font></a><br>"; } ?><br> <b>.:Explore:.</b><br> <a href="http://www.net-petz.com/reg/netlandia.php"> <font color="#FFFFFF">Netlandia</font></a><br> <a href="http://www.net-petz.com/reg/city.php"><font color="#FFFFFF">Net-City</font></a><br><br> <b>.:Interact:.</b><br> <a href="http://www.net-petz.com/reg/messageboard.php"> <font color="#FFFFFF">Net-Boards</font></a><br> <a href="http://www.net-petz.com/reg/inbox.php"><font color="#FFFFFF">Net-Mail</font></a><br> <a href="http://www.net-petz.com/reg/lookups.php"><font color="#FFFFFF">Lookups</font></a><br> <a href="http://www.net-petz.com/reg/ushops.php"><font color="#FFFFFF">User Shops</font></a><br><br> <b>.:Fun:.</b><br> <a href="http://www.net-petz.com/reg/games.php"><font color="#FFFFFF">Game Room</font></a><br> <a href="http://www.net-petz.com/reg/stuff.php"><font color="#FFFFFF">Fun Stuff</font></a><br><br> <b>.:Options:.</b><br> <a href="http://www.net-petz.com/reg/userInfo.php"> <font color="#FFFFFF">User Options</font></a><br> <a href="http://www.net-petz.com/reg/luedit.php"><font color="#FFFFFF">Lookup Options</font></a><br> <a href="http://www.net-petz.com/reg/boardpreff.php"> <font color="#FFFFFF">Board Options</font></a><br><br> <b>.:More:.</b><br> <? if ($preuserID != 0){ echo "<font color=#FFFFFF face=Arial><a href=http://www.net-petz.com/reg/help.php><font color=#FFFFFF>About Us</a>"; } else { echo "<font color=#FFFFFF face=Arial><a href=http://www.net-petz.com/help.php><font color=#FFFFFF>About Us</a>"; } ?><br> <? if ($preuserID != 0){ echo "<font color=#FFFFFF face=Arial><a href=http://www.net-petz.com/reg/contact.php><font color=#FFFFFF>Contact Us</a>"; } else { echo "<font color=#FFFFFF face=Arial><a href=http://www.net-petz.com/contact.php><font color=#FFFFFF>Contact Us</a>"; } ?></td> <td width="92%" height="536"> </td> </tr> </table> </td> <td width="1213" height="1002" valign="top" align="center" rowspan="2"> <? include ("secure/randoms.php"); ?> <? //PAGE CONTENT ?> <font color="#CEE7FF" size="2" face="Arial, Helvetica, sans-serif"><strong> Login</strong></font></div></td> </tr> <tr> <td bgcolor="#CEE7FF"> <div align="center"> <form method="POST" action="reg/secure/index.php"> <table width="300" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="219"> <p align="left"><font face="Arial, Helvetica, sans-serif" size="2"> <b> User Name: </b></font></td> <td width="181"><font face="Arial, Helvetica, sans-serif" size="2"> <input type="text" name="preuserName" size="20"> </font></td> </tr> <tr> <td width="219"><font face="Arial, Helvetica, sans-serif" size="2"> <b>Password:</b></font></td> <td width="181"><font face="Arial, Helvetica, sans-serif" size="2"> <input type="password" name="preuserPassword" size="20"> </font></td> </tr> <tr> <td colspan="2" height="2"> <div align="center"><font face="Arial, Helvetica, sans-serif" size="2"> </font></div></td> </tr> <tr> <td colspan="2" height="2"> <div align="center"><font face="Arial, Helvetica, sans-serif" size="2"> <input type=submit name="Submit" value="Submit"> </font></div></td> </tr> </table> </form> <? //END PAGE CONTENT ?> </td> </tr> <tr> <td width="270" height="415" valign="top" align="right"> </td> </tr> </table> </body> </html>
  15. 190 is the very last one.
  16. I'm getting Parse error: parse error, unexpected $ in /homepages/20/d175171605/htdocs/index.php on line 190 but there's no $ on line 190. What's wrong? ??? <?php if(isset($_COOKIE['NetPetzpreuserID']) && isset($_COOKIE['NetPetzpreuserName'])){ session_start(); session_register('preuserName'); session_register('preuserID'); session_register('cimage'); session_register('preuserAge'); session_register('userstatus'); $_SESSION['preuserID'] = $_COOKIE['NetPetzpreuserID']; $_SESSION['preuserName'] = $_COOKIE['NetPetzpreuserName']; $session=session_id(); header("Location: ../reg/home.php"); } else { ?> <? session_start(); $session=session_id( ); include ("secure/config.php"); //WHEN YOU PUT THIS ON THE PAGES ADD A secure/ BEFORE CONFIG.PHP! ?> <script language="JavaScript" type="text/JavaScript"> <!-- function MM_reloadPage(init) { //reloads the window if Nav4 resized if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) { document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }} else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload(); } MM_reloadPage(true); //--> </script> <META NAME="Description" CONTENT="Net-Petz is the newest virtual pet site on the internet. It has fun games, lots of cool petz to adopt, and tons of awesome items! It's completely free!"> <META NAME="Keywords" CONTENT="petz, net, virtual, pets, pet, fun, games, game, "> </head> <body> <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="1155" id="AutoNumber1" height="802"> <tr> <td width="1483" height="138" valign="top" align="right" <? $rand = rand (1,10); if ($rand == 1) { echo "background=SB1_anubis.png"; } elseif ($rand == 2) { echo "background=SB1_bromaro.png"; } elseif ($rand == 3) { echo "background=SB1_fang.png"; } elseif ($rand == 4) { echo "background=SB1_kitachia.png"; } elseif ($rand == 5) { echo "background=SB1_coarattla.png"; } elseif ($rand == 6) { echo "background=SB1_dragonous.png"; } elseif ($rand == 7) { echo "background=SB1_fizz.png"; } elseif ($rand == { echo "background=SB1_woofosa.png"; } elseif ($rand == 9) { echo "background=SB1_worfoli.png"; } elseif ($rand == 10) { echo "background=SB1_lionaya.png"; } ?> colspan="2"> <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber3" height="113"> <tr> <td width="15%" height="104" colspan="3" rowspan="3"> </td> <td width="31%" height="40"> </td> <td width="54%" height="104" rowspan="3"> </td> </tr> <tr> <td width="31%" height="23"> <p align="center"><b> <font color="#FFFFFF" face="Arial" style="font-size: 11pt"><? if ($preuserID != 0){ print "<a href=http://www.net-petz.com/reg/lookup.php?Name=$preuserName><font color=#FFFFFF>$preuserName</a>"; } else { print "Guest"; } ?> - <? if ($preuserID != 0){ print "<a href=http://www.net-petz.com/reg/bank.php><font color=#FFFFFF>$points NPz</a>"; } else { print "0 NPz"; } ?> - <? if ($preuserID != 0 AND $activePetID == 0) { print "No Active Pet"; } elseif ($preuserID != 0){ print "<a href=http://www.net-petz.com/reg/petDetails2.php?monopetID=$activePetID><font color=#FFFFFF>$activePetName</a> is Active"; } else { print "No Active Pet"; } ?></font></b></td> </tr> </table> </td> </tr> <tr> <td width="325" height="657" valign="top" align="right" background="SB3.png"> <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="103%" id="AutoNumber4" height="42"> <tr> <td width="7%" height="27" align="center"> </td> <td width="51%" height="27" align="center" valign="top"> </td> <td width="92%" height="27"> </td> </tr> <tr> <td width="7%" height="536" align="center"> </td> <td width="51%" height="536" align="center" valign="top"> <font color="#FFFFFF" face="Arial"> <font color="#FFFFFF" face="Arial"><b>.:Main:.<br> </b> <? if ($preuserID != 0){ echo "<font color=#FFFFFF face=Arial><a href=http://www.net-petz.com/reg/home.php><font color=#FFFFFF>Home</a>"; } else { echo "<font color=#FFFFFF face=Arial><a href=http://www.net-petz.com><font color=#FFFFFF>Home</a>"; } ?><br></font> <a href="http://www.net-petz.com/reg/mypets.php"><font color="#FFFFFF">My Petz</font></a><br> <a href="http://www.net-petz.com/reg/myitems.php"><font color="#FFFFFF">Inventory</font></a><br> <? if ($preuserID != 0){ echo "<a href=http://www.net-petz.com/reg/logout.php><font color=#FFFFFF><- Logout</font></a><br>"; } else { echo "<a href=http://www.net-petz.com/login.php><font color=#FFFFFF>Login -></font></a><br>"; } ?><br> <b>.:Explore:.</b><br> <a href="http://www.net-petz.com/reg/netlandia.php"> <font color="#FFFFFF">Netlandia</font></a><br> <a href="http://www.net-petz.com/reg/city.php"><font color="#FFFFFF">Net-City</font></a><br><br> <b>.:Interact:.</b><br> <a href="http://www.net-petz.com/reg/messageboard.php"> <font color="#FFFFFF">Net-Boards</font></a><br> <a href="http://www.net-petz.com/reg/inbox.php"><font color="#FFFFFF">Net-Mail</font></a><br> <a href="http://www.net-petz.com/reg/lookups.php"><font color="#FFFFFF">Lookups</font></a><br> <a href="http://www.net-petz.com/reg/ushops.php"><font color="#FFFFFF">User Shops</font></a><br><br> <b>.:Fun:.</b><br> <a href="http://www.net-petz.com/reg/games.php"><font color="#FFFFFF">Game Room</font></a><br> <a href="http://www.net-petz.com/reg/stuff.php"><font color="#FFFFFF">Fun Stuff</font></a><br><br> <b>.:Options:.</b><br> <a href="http://www.net-petz.com/reg/userInfo.php"> <font color="#FFFFFF">User Options</font></a><br> <a href="http://www.net-petz.com/reg/luedit.php"><font color="#FFFFFF">Lookup Options</font></a><br> <a href="http://www.net-petz.com/reg/boardpreff.php"> <font color="#FFFFFF">Board Options</font></a><br><br> <b>.:More:.</b><br> <? if ($preuserID != 0){ echo "<font color=#FFFFFF face=Arial><a href=http://www.net-petz.com/reg/help.php><font color=#FFFFFF>About Us</a>"; } else { echo "<font color=#FFFFFF face=Arial><a href=http://www.net-petz.com/help.php><font color=#FFFFFF>About Us</a>"; } ?><br> <? if ($preuserID != 0){ echo "<font color=#FFFFFF face=Arial><a href=http://www.net-petz.com/reg/contact.php><font color=#FFFFFF>Contact Us</a>"; } else { echo "<font color=#FFFFFF face=Arial><a href=http://www.net-petz.com/contact.php><font color=#FFFFFF>Contact Us</a>"; } ?></td> <td width="92%" height="536"> </td> </tr> </table> </td> <td width="1213" height="1002" valign="top" align="center" rowspan="2"> <? //PAGE CONTENT ?> <table border="4" cellspacing="1" width="67%" id="AutoNumber3" bordercolorlight="#000099" bordercolordark="#000099"> <tr> <td width="100%" bordercolorlight="#000099" bordercolordark="#000099"> <img border="0" src="Welcome%20logo.gif" width="618" height="44"></td> </tr> </table> <p>Net-Petz is the newest virtual pet site on the internet. It's filled with cool petz, fun games, exciting places, and much more. It's free to sign up so what are you waiting for? <a style="text-decoration: none" dynamicanimation="fpAnimformatRolloverFP1" fprolloverstyle="color: #FF0000; text-decoration: overline underline; font-weight: bold" onMouseOver="rollIn(this)" onMouseOut="rollOut(this)" language="Javascript1.2" href="register.php"> Click Here</a> to Sign Up. Already a member? Then <a href="login.php" style="text-decoration: none" dynamicanimation="fpAnimformatRolloverFP1" fprolloverstyle="text-decoration: overline underline; color: #FF0000; font-weight: bold" onMouseOver="rollIn(this)" onMouseOut="rollOut(this)" language="Javascript1.2"> Click Here</a> to login.</p> <p><b>Net-Petz is best viewed in Internet Explorer and looks bad on Firefox. I'm trying to fix it but I'm new at Firefox. It's best to use Internet Explorer. We have a really cool layout that doesn't work in FF ;_;.</b><br> </p> <table border="4" cellspacing="1" width="706" id="AutoNumber4" height="1" bordercolorlight="#000099" bordercolordark="#000099"> <tr> <td bordercolorlight="#000099" bordercolordark="#000099" align="left" valign="top" width="697" height="5" colspan="2"> <p align="center"><font size="5" face="Comic Sans MS" color="#000099"> News</font></td> </tr> <tr> <td bordercolorlight="#000099" bordercolordark="#000099" align="left" valign="top" width="358" height="91"> <p align="center"><u><b>14th in Month of the Fizz: A few things</b></u></p> <p align="center">First off I'd like to say happy Easter! Now down to business. We appologize for the delay of the Easter Petz, I've been out of town. We also won't be able to do much this next week due to standardized tests . The good news, however, is that we're working on a HUGE update that should be done either this or next month. </p> <p align="center">PS Remember, if you find bugs on the site please email bugs@net-pets.com or team@net-petz.com so we can fix them.</p> <p align="center">~Lynsey </p></td> <td bordercolorlight="#000099" bordercolordark="#000099" align="center" width="339" height="91"> <img border="0" src="welcome.jpg" width="300" height="300"> <? //END PAGE CONTENT ?> </td> </tr> <tr> <td width="270" height="415" valign="top" align="right"> </td> </tr> </table> </body> </html>
  17. How do you send a variable to another page when you're going through a text link?
  18. I went to my site today and logged in, and when it went to the homepage I got the Error you must be logged in to be here. It all of a sudden won't log users in and I can't figure out why. When the user puts in the user name and password it goes to this page: <? include ("config2.php"); if ((!$preuserName) || (!$preuserPassword)) { header("Location:http://www.$domain/demo/login.php"); exit; } else { $db = mysql_select_db($db_name, $connection) or die("Couldn't select database2."); $sql = "SELECT * FROM chibifriends WHERE preuserName =\"$preuserName\" AND preuserPassword = \"$preuserPassword\" "; $result = mysql_query($sql,$connection) or die("Couldn't execute query."); $query_data = mysql_fetch_array($result); $preuserID = $query_data['preuserID']; $preuserAge = $query_data['preuserAge']; $cimage = $query_data['image']; $userstatus = $query_data['userstatus']; $num = mysql_num_rows($result); if ($num != 0) { session_start(); session_register('preuserName'); session_register('preuserID'); session_register('cimage'); session_register('preuserAge'); session_register('userstatus'); $session=session_id(); setcookie("NetPetzpreuserID", "$preuserID", time()+60*60*24*100, "/"); setcookie("NetPetzpreuserName", "$preuserName", time()+60*60*24*100, "/"); $domain = GetHostByName($REMOTE_ADDR); header("Location: ../home.php"); exit; } } ?> Then it redirects to this page: <html> <head> <meta http-equiv="Content-Language" content="en-us"> <TITLE>Welcome to Net-Petz! ~ Home</TITLE> <script language="JavaScript" fptype="dynamicanimation"> <!-- function dynAnimation() {} function clickSwapImg() {} //--> </script> <script language="JavaScript1.2" fptype="dynamicanimation" src="animate.js"> </script></head> <? if ($preuserID == 0) { print"<p align=center>You need to login again. Please <a href=../login.php>click here</a>."; die; } ?> <body onLoad="dynAnimation()"> <div align="center"> <table border="0" cellspacing="1" bordercolor="#000000" width="34%" id="AutoNumber1" height="100" align="left"> <tr> <td width="100%" height="90" colspan="2" align="center" valign="top" bordercolor="#FFFFFF" bordercolorlight="#FFFFFF" bordercolordark="#FFFFFF"> <p> <img border="0" src="../sidebarr.jpg" width="1024" height="91"></td> </tr> <tr> <td width="12%" height="747" align="center" valign="top" bordercolor="#FFFFFF"> <p> <img border="0" src="titleexplore.jpg" width="130" height="22"><br> <a onMouseOver="document['fpAnimswapImgFP21'].imgRolln=document['fpAnimswapImgFP21'].src;document['fpAnimswapImgFP21'].src=document['fpAnimswapImgFP21'].lowsrc;" onMouseOut="document['fpAnimswapImgFP21'].src=document['fpAnimswapImgFP21'].imgRolln" href="netlandia.php"> <img border="0" src="world1.jpg" id="fpAnimswapImgFP21" name="fpAnimswapImgFP21" dynamicanimation="fpAnimswapImgFP21" lowsrc="world2.jpg" width="130" height="22"></a><br> <a onMouseOver="document['fpAnimswapImgFP22'].imgRolln=document['fpAnimswapImgFP22'].src;document['fpAnimswapImgFP22'].src=document['fpAnimswapImgFP22'].lowsrc;" onMouseOut="document['fpAnimswapImgFP22'].src=document['fpAnimswapImgFP22'].imgRolln" href="city.php"> <img border="0" src="market1.jpg" id="fpAnimswapImgFP22" name="fpAnimswapImgFP22" dynamicanimation="fpAnimswapImgFP22" lowsrc="market2.jpg" width="130" height="22"></a><br> <img border="0" src="titlefun.jpg" width="130" height="22"><br> <a onMouseOver="document['fpAnimswapImgFP23'].imgRolln=document['fpAnimswapImgFP23'].src;document['fpAnimswapImgFP23'].src=document['fpAnimswapImgFP23'].lowsrc;" onMouseOut="document['fpAnimswapImgFP23'].src=document['fpAnimswapImgFP23'].imgRolln" href="games.php"> <img border="0" src="games1.jpg" id="fpAnimswapImgFP23" name="fpAnimswapImgFP23" dynamicanimation="fpAnimswapImgFP23" lowsrc="games2.jpg" width="130" height="22"></a><br> <a onMouseOver="document['fpAnimswapImgFP24'].imgRolln=document['fpAnimswapImgFP24'].src;document['fpAnimswapImgFP24'].src=document['fpAnimswapImgFP24'].lowsrc;" onMouseOut="document['fpAnimswapImgFP24'].src=document['fpAnimswapImgFP24'].imgRolln" href="messageboard.php"> <img border="0" src="boards1.jpg" id="fpAnimswapImgFP24" name="fpAnimswapImgFP24" dynamicanimation="fpAnimswapImgFP24" lowsrc="boards2.jpg" width="130" height="22"></a><br> <a onMouseOver="document['fpAnimswapImgFP25'].imgRolln=document['fpAnimswapImgFP25'].src;document['fpAnimswapImgFP25'].src=document['fpAnimswapImgFP25'].lowsrc;" onMouseOut="document['fpAnimswapImgFP25'].src=document['fpAnimswapImgFP25'].imgRolln" href="inbox.php"> <img border="0" src="../images/Sidebar%20&%20Layout/mail1.jpg" id="fpAnimswapImgFP25" name="fpAnimswapImgFP25" dynamicanimation="fpAnimswapImgFP25" lowsrc="../images/Sidebar%20&%20Layout/mail2.jpg" width="130" height="22"></a><br> <a onMouseOver="document['fpAnimswapImgFP26'].imgRolln=document['fpAnimswapImgFP26'].src;document['fpAnimswapImgFP26'].src=document['fpAnimswapImgFP26'].lowsrc;" onMouseOut="document['fpAnimswapImgFP26'].src=document['fpAnimswapImgFP26'].imgRolln" href="stuff.php"> <img border="0" src="stuff1.jpg" id="fpAnimswapImgFP26" name="fpAnimswapImgFP26" dynamicanimation="fpAnimswapImgFP26" lowsrc="stuff2.jpg" width="130" height="22"></a><br> <img border="0" src="titlemisc.jpg" width="130" height="22"><br> <a onMouseOver="document['fpAnimswapImgFP27'].imgRolln=document['fpAnimswapImgFP27'].src;document['fpAnimswapImgFP27'].src=document['fpAnimswapImgFP27'].lowsrc;" onMouseOut="document['fpAnimswapImgFP27'].src=document['fpAnimswapImgFP27'].imgRolln" href="login.php"> <img border="0" src="in1.jpg" id="fpAnimswapImgFP27" name="fpAnimswapImgFP27" dynamicanimation="fpAnimswapImgFP27" lowsrc="in2.jpg" width="130" height="22"></a><br> <a onMouseOver="document['fpAnimswapImgFP28'].imgRolln=document['fpAnimswapImgFP28'].src;document['fpAnimswapImgFP28'].src=document['fpAnimswapImgFP28'].lowsrc;" onMouseOut="document['fpAnimswapImgFP28'].src=document['fpAnimswapImgFP28'].imgRolln" href="logout.php"> <img border="0" src="out1.jpg" id="fpAnimswapImgFP28" name="fpAnimswapImgFP28" dynamicanimation="fpAnimswapImgFP28" lowsrc="out2.jpg" width="130" height="22"></a><br> <a onMouseOver="document['fpAnimswapImgFP29'].imgRolln=document['fpAnimswapImgFP29'].src;document['fpAnimswapImgFP29'].src=document['fpAnimswapImgFP29'].lowsrc;" onMouseOut="document['fpAnimswapImgFP29'].src=document['fpAnimswapImgFP29'].imgRolln" href="help.php"> <img border="0" src="help1.jpg" id="fpAnimswapImgFP29" name="fpAnimswapImgFP29" dynamicanimation="fpAnimswapImgFP29" lowsrc="help2.jpg" width="130" height="22"></a><br> <a onMouseOver="document['fpAnimswapImgFP30'].imgRolln=document['fpAnimswapImgFP30'].src;document['fpAnimswapImgFP30'].src=document['fpAnimswapImgFP30'].lowsrc;" onMouseOut="document['fpAnimswapImgFP30'].src=document['fpAnimswapImgFP30'].imgRolln" href="contact.php"> <img border="0" src="contact1.jpg" id="fpAnimswapImgFP30" name="fpAnimswapImgFP30" dynamicanimation="fpAnimswapImgFP30" lowsrc="contact2.jpg" width="130" height="22"></a></p> <div align="center" style="width: 130; height: 176"> <center> <table border="3" cellspacing="1" bordercolor="#000099" width="100%" id="AutoNumber2" height="253"> <tr> <td width="100%" height="126" align="center" bordercolor="#000099"> <font color="#000099"><? print "Hi $preuserName!"; ?></font></b><br> <b> <font color="#000099"><? print "$points Net-Pointz."; ?><? include ("secure/unread.php"); ?></font></td> </tr> <tr> <td width="100%" height="127" align="center" bordercolor="#000099"> <a href="mypets.php" style="text-decoration: none" dynamicanimation="fpAnimformatRolloverFP1" fprolloverstyle="color: #FF0000; text-decoration: overline underline; font-weight: bold" onMouseOver="rollIn(this)" onMouseOut="rollOut(this)" language="Javascript1.2">My Petz</a><br> <a href="myitems.php" style="text-decoration: none" dynamicanimation="fpAnimformatRolloverFP1" fprolloverstyle="color: #FF0000; text-decoration: overline underline; font-weight: bold" onMouseOver="rollIn(this)" onMouseOut="rollOut(this)" language="Javascript1.2">My Inventory</a></td> </tr> </table> </center> </div> <p><br> <p> <br> </td> <td width="88%" height="374" align="center" valign="top"> <table border="4" cellspacing="1" width="67%" id="AutoNumber3" bordercolorlight="#000099" bordercolordark="#000099"> <tr> <td width="100%" bordercolorlight="#000099" bordercolordark="#000099"> <img border="0" src="Welcome%20logo.gif" width="618" height="44"></td> </tr> </table><br><br> <table border="6" cellspacing="1" width="100%" id="AutoNumber4" height="383" bordercolor="#000099"> <tr> <td width="50%" height="1" valign="top" bordercolor="#000099"> <p align="center"><font size="5" face="Comic Sans MS" color="#000099"> Links</font></td> <td width="50%" height="12" rowspan="6"> <table border="4" cellspacing="1" width="100%" id="AutoNumber5" height="394" bordercolor="#000099"> <tr> <td width="100%" height="19"> <p align="center"><font size="5" face="Comic Sans MS" color="#000099"> News</font></td> </tr> <tr> <td width="100%"> <p align="center"><u><b>29th of the Month of the Worfoli ~ Lynsey's gone! </b></u></p> <p align="center">Hello, I'll be out of town for a week, that means no updates nor anything pretty much. Please everyone be good because I won't be here to freeze users or anything. </p> <p align="center">~Lynsey</p></td> </tr> </table> </td> </tr> <tr> <td width="50%" height="20" valign="top" bordercolor="#000099"> <p align="center"> <font face="Andy" size="4"> <a href="calendar.php" dynamicanimation="fpAnimformatRolloverFP1" fprolloverstyle="color: #FF0000; text-decoration: overline underline; font-weight: bold" onMouseOver="rollIn(this)" onMouseOut="rollOut(this)" language="Javascript1.2" style="text-decoration: none"> The Netlandian Calendar</a></font><br> <a href="lookups.php" style="text-decoration: none" dynamicanimation="fpAnimformatRolloverFP1" fprolloverstyle="color: #FF0000; text-decoration: overline underline; font-weight: bold" onMouseOver="rollIn(this)" onMouseOut="rollOut(this)" language="Javascript1.2"> <font size="4">Lookups</font></a></td> </tr> <tr> <td width="50%" height="11" valign="top" bordercolor="#000099"> <p align="center"><font face="Comic Sans MS" size="5" color="#000099"> Announcments</font></td> </tr> <tr> <td width="50%" height="79" valign="top" bordercolor="#000099"> <p align="center"> <strong> <? $sql = "SELECT count(*) as users FROM chibifriends"; $result1 = mysql_query($sql); $query_data = mysql_fetch_array($result1); $numusers = $query_data['users']; echo "<p align=center>Net-Petz Currently has ".$numusers." Users!"; ?></strong> <p align="center"><b>Net-Petz is best viewed in Internet Explorer and looks bad on Firefox. I'm trying to fix it but I'm new at Firefox. It's best to use Internet Explorer. We have a really cool layout that doesn't work in Firefox ;_;.</b> <p align="center"><a href="helpwanted.php"><img src="helpwanted.gif"></a><br></td> </tr> <tr> <td width="50%" height="13"> <p align="center"><font face="Comic Sans MS" size="5" color="#000099"> Info</font></td> </tr> <tr> <td width="50%" height="92" valign="top"> <p align="center"> <? include ("secure/userstuff.php"); ?> <br> </td> </tr> </table> <div align="left" style="width: 906; height: 734"> </div> <p> <br> </td> </tr> <tr> <td width="12%" height="9" align="center" valign="top" bordercolor="#FFFFFF"> </td> </tr> </table> </div> <? include ("secure/config.php"); include ("secure/dbinfo.php"); include ("secure/petDetails2.php"); $SQL = "SELECT * FROM chibifriendspets WHERE monopetID = '".$_POST['monopetID']."'"; $result = mysql_query($SQL, $connection) or die("Error: ".mysql_error().""); $query_data = mysql_fetch_array($result); $query = "SELECT * FROM chibifriendspets WHERE userID = '$preuserID'"; $result4 = mysql_query($query, $connection); $numberPETS = mysql_num_rows($result4); $query_data = mysql_fetch_array($result4); $monopetID = $query_data['monopetID']; $monopetName = $query_data['monopetName']; $monopetSpecies = $query_data['monopetSpecies']; $monopetDOB = $query_data['monopetDOB']; $i = 0; if ($numberPETS < 1) { print "<CENTER>You don't have any petz!</CENTER>"; } else { while ($numberPETS > $i) { //$monopetImage1 = mysql_result($result2,$i,"monopetImage1"); $monopetName = mysql_result($result4,$i,"monopetName"); $monopetSpecies = mysql_result($result4,$i,"monopetSpecies"); $monopetDOB = mysql_result($result4,$i,"monopetDOB"); $monopetID = mysql_result($result4,$i, "monopetID"); $query = "SELECT `lastDateFed` as lastDatefed FROM `chibifriendspets` WHERE `monopetID` = '$monopetID'"; $result = mysql_query($query ,$connection); $query_data = mysql_fetch_array($result); $lastDatefed = $query_data['lastDatefed']; $query = "SELECT `hunger` as hunger FROM `chibifriendspets` WHERE `monopetID` = '$monopetID'"; $result = mysql_query($query ,$connection); $query_data = mysql_fetch_array($result); $hunger = $query_data['hunger']; $query = "SELECT `happy` as happy FROM `chibifriendspets` WHERE `monopetID` = '$monopetID'"; $result = mysql_query($query ,$connection); $query_data = mysql_fetch_array($result); $happy = $query_data['happy']; $query = "SELECT `lastDateplay` as lastDateplay FROM `chibifriendspets` WHERE `monopetID` = '$monopetID'"; $result = mysql_query($query ,$connection); $query_data = mysql_fetch_array($result); $lastDateplay = $query_data['lastDateplay']; //The pet gets hungrier $then = strtotime($lastDatefed); $right_now = time(); $timesincefed = $right_now - $then; $dayssincefed = number_format($timesincefed/86400,2); $days = round($dayssincefed); if ($days == 0) { $hunger2 = $hunger; } elseif ($days > 9) { $hunger2 = 9; } else { $hunger2 = $days; } $query = "UPDATE chibifriendspets SET hunger = '$hunger2' WHERE monopetID = '$monopetID'"; $result = mysql_query($query ,$connection); //The pet gets Sadder $then2 = strtotime($lastDateplay); $right_now2 = time(); $timesinceplay = $right_now2 - $then2; $dayssinceplay = number_format($timesinceplay/86400,2); $days2 = round($dayssinceplay); if ($days2 == 0) { $happy2 = $happy; } elseif ($days2 > 9) { $happy2 = 9; } else { $happy2 = $days2; } $query = "UPDATE chibifriendspets SET happy = '$happy2' WHERE monopetID = '$monopetID'"; $result = mysql_query($query ,$connection); $i++; } } ?> </body> </html> I can't figure out what's wrong, could someone help?
  19. Ok, so when the user unlocks an avatar should I just insert into a table the user's ID and the avatar name/ID?
  20. My thinking is that with over 100 users and growing and if they've each unlocked 20 (and growing) avatars, it's going to use a lot of database space.
  21. I'm trying to make secret forum avatars that people have to unlock but if I have 20 entries per user it's going to clog up my database fast, so I was thinking I could use a 2nd database for avatar info. Is it possible to use multiple databases on a site? if so how? The 2nd database would only be accessed on 2 or 3 pages, but 2 would need to be accessed at once. :-\
  22. I just paste it exactly like that into the page?
  23. I'm not talking about just 1 cookie, I want it to delete every single cookie created by my site.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.