-
Posts
4,362 -
Joined
-
Last visited
-
Days Won
11
Everything posted by Zane
-
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
-
take a look at glob
-
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.
-
perhaps a cookie?
-
What's the first word of a newspaper article called? e.g. NEW YORK -
Zane replied to TheFilmGod's topic in Miscellaneous
Heading -
αΊ½ http://www.fileformat.info/info/unicode/char/1ebd/index.htm
-
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
-
[SOLVED] i fly my white flag in surrender
Zane replied to machiavelli1079's topic in PHP Coding Help
classic "under your nose" solution -
straight from the manual Guess I was kinda off on the curly brackets thing
-
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
-
[SOLVED] i fly my white flag in surrender
Zane replied to machiavelli1079's topic in PHP Coding Help
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. -
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;
-
[SOLVED] How to get carriage returns from textarea input
Zane replied to heldenbrau's topic in PHP Coding Help
nl2br -
while($row = mysql_fetch_array($query)) { $data[$row['id']] = $row['name'] }
-
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:
-
short_tags http://www.bin-co.com/php/articles/using_php_short_tags.php
-
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
-
An array generated by a form to update mysql database.
Zane replied to samtwilliams's topic in PHP Coding Help
show us all the code...meaning...show the query and connection and such along with it -
$i = 0; while($i echo $array1[$i]; echo $array2[$i]; $i++; }
-
lmao
-
indeed...sort of like a captcha system...that's tests IQ
-
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...
-
now that I think about it...yeah mental note: don't post stoned.
-
hell yeah...cool emoticons [attachment deleted by admin]
-
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+