Jump to content

mrgrim333

Members
  • Posts

    12
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

mrgrim333's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. So I have a list of shows for a band, and they don't really keep tabs on their website show listing. I don't have time either. Is there any way to delete a post after the date has passed? (ex. 12/01/09 is deleted 12/02/09) The script should run on the page that displays the shows, so if anyone looks at it, the shows will self manage, no need for timed scripts.
  2. ... I didn't know the query could handle that! You sir are dead sexy... Have my babies?
  3. So this is what I've got so far. $getnews = mysql_query("SELECT MAX(id) FROM posts"); if (!$getnews) { die('Could not connect: ' . mysql_error()); } for($i = 0;$i<5;$i++) { $row = mysql_fetch_assoc($getnews); $id = $row['id']; $title = $row['title']; $body = $row['body']; $date = $row['date']; $name = $row['name']; echo "<table width=500> <tr><td bgcolor=#FFFFFF colspan=2> <b><center>$title</b></center></td></tr> <tr><td colspan=2 bgcolor=222222> <div align=left><font color=#FFFFFF><b> $name</b> posted this $date</font></div> </td></tr> <tr><td valign=top align=left width=75><img src=images/seth.jpg><br></td><td align=left valign=top >"; echo nl2br($body); echo "<BR><BR></td></tr></table>"; } It's not working
  4. Damn it. You're right. I just checked out the source. Thanks for ending my suffering lol.
  5. So I'm using shoutbox (http://www.gerd-tentler.de/tools/shoutbox/) And when I do include("shoutbox.inc.php"); i get the error Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) But if I used iframes (which are ugly and annoying) it works. Any ideas?
  6. I've been looking high and low to find a news system that is like this: 1 - I want 5 people to be able to post (it's a band, have a login for each on an admin page) 2 -I want avatars that go with the post ( each member has a different av) Anyone know where I can get code like this?
  7. Ok, so after a pretty uncalled for epic battle, I got a value from mysql->php->flash text feild. Here's the code: coins.php: <?php $myVar = "THIS IS A MESSAGE!"; $myVar = utf8_encode ($myVar); print ("&myVar=$myVar&"); ?> flash: var here = this; varReceiver = new LoadVars(); varReceiver.load("coins.php"); varReceiver.onLoad = function() { moo.text = this.myVar; }; How the hell would I get this thing to refresh?!? I tried putting all that in a function and calling it, no dice. I update the mysql value and run the coins.php by it's self and it shows it's updated... but flash doesn't want to refresh the value. HELP!?! ???
  8. The host I'm with doesn't allow cron Is there any work around?
  9. Ok, found a working model lol I just left the user data unencrypted so I can modify it as needed. Thanks
  10. So I have a game that I want to limit people's turns per day. They will have 5 coins per day. If they hit zero, they're cut off. If they don't use their 5, it doesn't accumulate, just resets. I want the value to reset every day at 12am. How the hell can I do this? ???
  11. I was wondering if anyone could point me in the direction of a tutorial for a login system? Would it be possible too, being able to access the login information? Like usernames and passwords? ???
×
×
  • 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.