Jump to content

zac_exuro

New Members
  • Posts

    8
  • Joined

  • Last visited

    Never

Everything posted by zac_exuro

  1. hey, so i have a table that contains mesages and a clock.. i need 2 of the 4 the message types to check for new messages every x seconds and the clock to reload every 1sec.. i was going to try a reload div but i was thinking that might be a little bit of overkill.. even though it might be the easiest for me since i am a complete noob and trying to learn all this stuff with no outside help.. any help or point in the right direction is appreciated sorry if there is alot of mess to sort out, like i said im the new guy <table id="center" width="393" height="104" align="center" border="0" cellpadding="0" cellspacing="0"> <tr> <td colspan="5"> <img src="images/center_01.gif" width="393" height="13" alt=""></td> </tr> <tr> <td rowspan="6"> <img src="images/center_02.gif" width="10" height="91" alt=""></td> <td width="372" height="28" colspan="3" align="center" bgcolor="#000000" alt="round time">round ends in: <? echo $dleft?> days, <? echo $hleft?> hours, <? echo $mleft?> minutes, <? echo $sleft?> seconds</td> <td rowspan="6"> <img src="images/center_04.gif" width="11" height="91" alt=""></td> </tr> <tr> <td colspan="3"> <img src="images/center_05.gif" width="372" height="8" alt=""></td> </tr> <tr> <td width="152" height="23" align="center" bgcolor="#000000" alt="messages"><a href="messages.php?uid=<? echo $uid ?>&secid=<? echo $secid ?>&type=1">messages</a> (<? echo $mmyrow[0] ; ?>)</td> <td rowspan="3"> <img src="images/center_07.gif" width="68" height="49" alt=""></td> <td width="152" height="23" align="center" bgcolor="#000000" alt="cartel messages"><a href="view.cartel.messages.php?uid=<? echo $uid ?>&secid=<? echo $secid ?>&type=1">cartel messages</a></td> </tr> <tr> <td> <img src="images/center_09.gif" width="152" height="4" alt=""></td> <td> <img src="images/center_10.gif" width="152" height="4" alt=""></td> </tr> <tr> <td width="152" height="22" align="center" bgcolor="#000000" alt="message board"><a href="cafe.messages.php?uid=<? echo $uid ?>&secid=<? echo $secid ?>&type=1">message board</a></td> <td width="152" height="22" align="center" bgcolor="#000000" alt="attacks"><a href="messages.php?uid=<? echo $uid ?>&secid=<? echo $secid ?>&type=2">attacks</a> (<? echo $mmyrow1[0] ; ?>)</td> </tr> <tr> <td colspan="3"> <img src="images/center_13.gif" width="372" height="6" alt=""></td> </tr> </table>
  2. this forum is super.. non-helpful.. thanks to the couple who have tried.. i will browse around for a better community though.. later
  3. this is the code as is right now.. i dont know why this was moved to php when im needing javascript so messages alerts show in real time.. but im a noob too so you guys probably know why.. <div align="center"> <? if ($msg_type == "") { $msid = $myrow[id]; $msql = "SELECT count(*) from og_messages where toid=$msid AND checked=0 AND type like '1%' order by id DESC"; $mresult = @mysql_query($msql); $mmyrow = @mysql_fetch_array($mresult); $msql1 = "SELECT count(*) from og_messages where toid=$msid AND checked=0 AND type like '2%' order by id DESC"; $mresult1 = @mysql_query($msql1); $mmyrow1 = @mysql_fetch_array($mresult1); $msql2 = "SELECT count(*) from og_messages where toid=$msid AND checked=0 AND type like '3%' order by id DESC"; $mresult2 = @mysql_query($msql2); $mmyrow2 = @mysql_fetch_array($mresult2); $sqlpl = "SELECT * from og_userinfo where uid='$uid'"; $resultpl = @mysql_query($sqlpl); $myrowpl1 = @mysql_fetch_array($resultpl); if ($mmyrow[0] > 0) { ?> </p> </div>
  4. i dont know if this will help or not but this is what the message table looks like.. (still under construction obviously) lol
  5. thanks for your input.. i have this already in database.. and members get alerted when they have a new message but page has to be refreshed in order to see the alert because it is not javascript.. i dont know where to start.. i was looking for a script on google i can modify and make work for me but i cannot find any.. if someone could point me in the right direction..............
  6. im trying to get new user messages to show up on my site.. i have looked around on google but can only find info on popup alerts.. i just need a simple javscript code that will display the number of new messages next to the link that takes them to their inbox.. if someone could point me to a site or if they have the code handy i would appreciate it more than you know.. thank you
  7. is my post incorrect or is it no one knows how to help? or am i absent right info?
  8. this is my first post (besides introduction and a comment in introduction) so im not 100% sure what all i am suppose to post for you guys so i will give it my best shot.. i have read 90% of rules though so i know what NOT to post lol here it goes: i am trying to get new messages to appear on header of my site but the alert (number) is not showing up.. this is in the <head> <? include('inc.settings.php'); include('inc.networth.php'); @mysql_connect($dbhost, $dbuser, $dbpass); @mysql_select_db($dbname) or die("Error opening database"); $sqld = "SELECT * from og_userinfo where id=$userid"; $resultd = @mysql_query($sqld); $myrowd = @mysql_fetch_array($resultd); $networthck = $myrowd[networth]; $sqlornk = "SELECT count(*) from og_userinfo where networth > $networthck"; $resultornk = @mysql_query($sqlornk); $myrowornk = @mysql_fetch_array($resultornk); $orank = $myrowornk[0] + 1; $netstate = $myrowd[state]; $sqlornk2 = "SELECT count(*) from og_userinfo where networth > $networthck AND state=$netstate"; $resultornk2 = @mysql_query($sqlornk2); $myrowornk2 = @mysql_fetch_array($resultornk2); $orank2 = $myrowornk2[0] + 1; $pc_rank = $orank2 - 1; $pchk_rank = floor($pc_rank / 20); $plimit = $pchk_rank * 20; ?> --this is in the body-- <table id="center" width="393" height="104" align="center" border="0" cellpadding="0" cellspacing="0"> <tr> <td colspan="5"> <img src="images/center_01.gif" width="393" height="13" alt=""></td> </tr> <tr> <td rowspan="6"> <img src="images/center_02.gif" width="10" height="91" alt=""></td> <td width="372" height="28" colspan="3" align="center" bgcolor="#000000" alt="round time">round ends in: <? echo $dleft?> days, <? echo $hleft?> hours, <? echo $mleft?> minutes, <? echo $sleft?> seconds</td> <td rowspan="6"> <img src="images/center_04.gif" width="11" height="91" alt=""></td> </tr> <tr> <td colspan="3"> <img src="images/center_05.gif" width="372" height="8" alt=""></td> </tr> <tr> <td width="152" height="23" align="center" bgcolor="#000000" alt="messages"><a href="messages.php?uid=<? echo $uid ?>&secid=<? echo $secid ?>&type=1">messages</a> (<? echo $mmyrow[0] ; ?>)</td> <td rowspan="3"> <img src="images/center_07.gif" width="68" height="49" alt=""></td> <td width="152" height="23" align="center" bgcolor="#000000" alt="cartel messages"><a href="view.cartel.messages.php?uid=<? echo $uid ?>&secid=<? echo $secid ?>&type=1">cartel messages</a> (x)</td> </tr> <tr> <td> <img src="images/center_09.gif" width="152" height="4" alt=""></td> <td> <img src="images/center_10.gif" width="152" height="4" alt=""></td> </tr> <tr> <td width="152" height="22" align="center" bgcolor="#000000" alt="message board"><a href="cafe.messages.php?uid=<? echo $uid ?>&secid=<? echo $secid ?>&type=1">message board</a></td> <td width="152" height="22" align="center" bgcolor="#000000" alt="attacks"><a href="messages.php?uid=<? echo $uid ?>&secid=<? echo $secid ?>&type=2">attacks</a> (<? echo $mmyrow1[0] ; ?>)</td> </tr> <tr> <td colspan="3"> <img src="images/center_13.gif" width="372" height="6" alt=""></td> </tr> </table> i would really like the new messages to be in javascript so they show in real time instead of refreshing page but i know even less about that and all i can find info on on google is popup alerts which i dont want this is an image of the look im going for:
  9. i have been trying to log in for a few days now.. i thought i had an account already made so i tried them.. got banned.. next day i registered and tried activating via the link they sent to my email, i didnt work so i tried entering user info.. got banned.. today though i finally got in!!
  10. this is the first forum involving web production (?) i have been a member of and i am a no0b, so dont get mad at me lol.. i hope this place is as helpful as the other forums i am a member of.. the reason i am here is to get some sort of help on the browser based mmorpg text game i have gotten my hands on.. i consider myself a fairly intelligent human being so i can look at most of the script i have and adjust things and make it look the way i want it.. but i have a couple problems and questions id like to get answered and i dont know ANYONE that can help.. i have a feeling i will be a frequent user of this forum as long as people dont yell at me lol.. please follow my posts and i hope this becomes a bookmarked 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.