Jump to content

Zane

Administrators
  • Posts

    4,362
  • Joined

  • Last visited

  • Days Won

    11

Everything posted by Zane

  1. instead of saying if($_POST['whatever']) do this if(isset($_POST['whatever']) && !empty($_POST['whatever'])) and yes...as mentioned earlier.. you are missing an opening bracket directly after else
  2. take a look at glob
  3. you've told us the problem pretty well...but what's your question. yes I see the 36 and 37..what is odd about it.
  4. perhaps a cookie?
  5. αΊ½ http://www.fileformat.info/info/unicode/char/1ebd/index.htm
  6. ONE I would have a table for all the services offered...by vendors - service_id - vendor_id - zone_id TWO I would have the actual services table - service_id - service_name And the zones table - zone_id - zipcode //I would use the zipcode to create a mile range..for example Zone 3 could be 90210 .. Beverly Hills and anything 5 miles from that center point. And of course the vendor table - vendor_id - vendor_name
  7. classic "under your nose" solution
  8. straight from the manual Guess I was kinda off on the curly brackets thing
  9. why don't your try it and find out. also..it isn't brackets that you put in the declaration....it's curly braces. When you use brackets it assumes you are calling an array. Example: $blahblah = 'some bunch of text that immediately popped into my mind'; echo $blahblah{8} //should return n
  10. That is odd... Try this test.. instead of ShutdownApplication() create a dummy function that does something like set a variable to 1 so you'd have function dummY() { $i = 0; } $this->Reset(); dummY(); header('Location: timeoutpagegoeshere"); now if that does work then I really am confused... but if you have the same...not working... problem...then I'd go through one at a time and figure out which statement in ShutdownApplication() is causing you trouble.
  11. that jargon is called regex... this particular flavor is PCRE...the other is called POSIX In short...all the script does is take an input of YYYY-MM-DD and output it as MM/DD/YYYY this can easily be done a simpler way..such as $startDate = '2008-03-24'; $startDate = date('n/j/Y',strtotime($startDate)); echo $startDate;
  12. while($row = mysql_fetch_array($query)) { $data[$row['id']] = $row['name'] }
  13. never tried this but it would seem like a feasible solution send the entire comma separated list of emails as a blind carbon copy. so instead of making the string say To: have it say Bcc:
  14. short_tags http://www.bin-co.com/php/articles/using_php_short_tags.php
  15. I don't exactly understand your problem but I can tell you that switch($_GET['sa']){ or any other call to a $_GET variable will not work...when you are not sending variables to it. $_POST will work just fine because you are POSTing it.. now if it said this it would work
  16. show us all the code...meaning...show the query and connection and such along with it
  17. $i = 0; while($i echo $array1[$i]; echo $array2[$i]; $i++; }
  18. indeed...sort of like a captcha system...that's tests IQ
  19. Or instead of guessing these phrases...the forum db could be queried (1 time....or 1 time a month) to find the top 10,20,etc posts that have duplicate names so that before the post is posted..the user can be penalized with an error message..like...
  20. now that I think about it...yeah mental note: don't post stoned.
  21. hell yeah...cool emoticons [attachment deleted by admin]
  22. even better for an idea would be something that query's the post name before they post to see if it exists already. That could eliminate a lot of "help now please" threads. As they type (or everytime they hit space) have it do a query through AJAX to check all the post names for the current word. Then again, that seems like it would cause quite a server bog-down. ~15 users an hour, typing up their new threads (~144/day = ~6/hour)....hmm that doesn't look so bad. Weird but wouldn't that be a cool idea. I see people all the time clickin those things (the suggestions)...well the ones who can type without looking at every single key. Which I'd assume would be a tleast a good percentage of 80,000+
×
×
  • 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.