Jump to content

Drummin

Members
  • Posts

    1,004
  • Joined

  • Last visited

Everything posted by Drummin

  1. As GuiltyGear said. Here's parts of what I'm using that applies the change with GET. In the head <SCRIPT language=JavaScript type="text/javascript"> function reload(form) { var val=form.cat.options[form.cat.options.selectedIndex].value; self.location='pagename.php?cat=' + val ; } </script> Add the "onchange to the SELECT of the Form <SELECT NAME=cat onchange="reload(this.form)">
  2. And what happens the next time the user logs in? Won't it then show the message as not have read? That's my point on the session going away, not regarding a logged in user session.
  3. I think adding a small INT row to the message table called "read" with the default setting of "0" and updating it to "1" when viewed will give you better results as sessions will go away and then show as the message as not have been read, which could be frustrating to people. This doesn't have to be updated if the value is already "1" or the message has been read. Just call the value['read'] along with content of the message and using an IF statement, if the read value is 0 make the update. You could also make it a readcount that adds 1 to the number each time it's read. This information could be used to tell the author that their message has been read and how many times. Hey, just a thought.
  4. Oh man how did I miss that. Worked great! Thanks for your help!
  5. Can't you just change the target? $target = "../pics/"; OR $target = "../images/";
  6. Seems like you could just use a "$showform" variable that's is changed if processing doesn't validate. For example. IF ($_POST['Submit']=='Submit){ $showform=false; IF (!empty($_POST['name'])){ $ckname=('good'); } Else{ $ckname=('bad'); $showform=true; } //ect through the rest of the processing IF anything doesn't pass, $showform will be true and you can use this to show the form. Hey, just an idea.
  7. ...And you can add the variables as well. IF ($_GET['ln']=='d'){//Last Name DESC $orderby=" ORDER BY lastname DESC"; } [code]IF ($_GET['ln']=='a'){//Last Name ASC $orderby=" ORDER BY lastname ASC"; }
  8. That extra space might be giving you problems. '$tier_two' ,
  9. Just add the $orderby where you would normally write it in and send the GET info by form or link. Change as needed. IF ($_GET['ln']){//Last Name $orderby=" ORDER BY lastname DESC"; } IF ($_GET['t']){//Title $orderby=" ORDER BY title DESC"; }
  10. Hey I'm no expert but it would seem to me that you could just back out of the Admin section with something like this. Sorry if that doesn't help.
  11. Hello, I'm going to be sending emails to users from a community calendar showing events for the day or a time frame specified elsewhere. The problem I'm having is turning results of DB query into a string when there are multiple results for the day. It works just fine with single results. I understand why it doesn't work but can't figure out how to solve the problem. Don't worry about the $eventdate as that comes from the same array as the $event_id used to call the array shown below. I tried foreach and implode but couldn't get it working so I'm starting over and asking for your guidance on how is the best way to pull this off. Thanks for your help. $getevent = mysql_query("SELECT title, description from ".$conf['tbl']['events']." WHERE event_id=$event_id AND private=0"); WHILE ($gtevent = mysql_fetch_array($getevent)) { $event_title=$gtevent['title']; $event_description=$gtevent['description']; $message="<p><span style=\"font-size:24px\">$event_title</span><br />$eventdate</p><p>$event_description</p>"; }
×
×
  • 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.