[PHP] Re: How can I get a random number

2001-01-16 Thread Angela
I see that you got a lot of responses, but I didn't see anyone using what I use. I had problems using rand() because it wasn't quite random enough. The following code is as random as you can get (at least from what I've seen). mt_srand ((double) microtime() * 100); $myrandomnumber = mt_rand

[PHP] Re: recommended PHP/MySQL host

2001-02-15 Thread Angela
there. Actually, you could more than likely get your own server through us for less than $100 dollars a month. If you would rather email me back, I can forward the information on to her and find out a price range for what you want. If you have any questions, let me know. -Angela -- Angela C

[PHP] Re: PHP and cookies and/or headers

2001-02-16 Thread Angela
ot;Francais"){ header("location: http://www.francais.com"); }else{ show_the_choice_page(); } ?> I think this would be the best solution. Let me know if anybody comes up with anything better. -Angela -- Angela Curtis Internet Programmer Innovative Busines

[PHP] Re: PHP and cookies and/or headers

2001-02-16 Thread Angela
f the redirecting. -Angela Original Message Subject: Re: PHP and cookies and/or headers Date: Fri, 16 Feb 2001 08:57:23 -0500 From: Angela <[EMAIL PROTECTED]> To: Jeremy Gillies <[EMAIL PROTECTED]>,[EMAIL PROTECTED] On your splash page, instead of having it send the user d

[PHP] Re: PHP and cookies and/or headers

2001-02-16 Thread Angela
When they click on the tab to change languages, you could have that go back to a page on the main site, reset the cookie, and then send it on to the site you want it to go to. -Angela Jeremy Gillies wrote: > > angela, > > this would work if people did not switch back and f

[PHP] Complex MySQL query for lowest price

2013-01-31 Thread Angela Barone
some help. ;) Hopefully this makes sense. If I need to be clearer, please let me know. Thanks! Angela -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Complex MySQL query for lowest price

2013-02-01 Thread Angela Barone
Thank you for everyone's input. Someone suggested the MySQL list, so I posted my question there and got the answer I needed. Regards, Angela -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Not counting my own page visits

2013-03-04 Thread Angela Barone
At first, I thought about adding a parameter to each URL and parsing that in the script, but that would get old real fast, and also, I may forget to add it each time. Is there a way to tell the script to ignore my visits? Thank you, Angela -- PHP General Mailing List (http://www.php.net/)

Re: [PHP] Not counting my own page visits

2013-03-04 Thread Angela Barone
inst mine? I don't have a static IP. Thanks, Angela -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Not counting my own page visits

2013-03-04 Thread Angela Barone
On Mar 4, 2013, at 9:56 AM, Ashley Sheridan wrote: > set a cookie with a long life and check for that, discounting visits when > either are true Hi Ash, I don't know anything about cookies. It sounds complicated to me. Is there a simple way to set one? Thanks, Angela --

Re: [PHP] Not counting my own page visits

2013-03-04 Thread Angela Barone
f > your cookie. I don't know why, but I can't get cookies to work. Here's a script I'm calling from my browser: Test Page "; ?> "; ?> The domain is being displayed but the cookie is not. There's no cookie in the browser

Re: [PHP] Not counting my own page visits

2013-03-05 Thread Angela Barone
You're right - I didn't really understand cookies. However, with everyone's help here, and by searching the web, I got it to work. Thank you to Tommy, Ash, and David! Angela -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] UNLESS Statement Equivalent

2013-03-11 Thread Angela Barone
;$date_time' WHERE `page` = '$page'"; $result = mysql_query($query) or die ('Error! -- ' . mysql_error()); } However, I've read where this is not really acceptable. Can someone help me eliminate the 'else' portion of this if statement?

Re: [PHP] UNLESS Statement Equivalent

2013-03-11 Thread Angela Barone
at of the statement. Angela

Re: [PHP] UNLESS Statement Equivalent

2013-03-11 Thread Angela Barone
t or I'm asking the wrong question. Here's a complete scriptlet: Using the supplied data, the result should be "Don't save." Can you see what's wrong? Angela -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] UNLESS Statement Equivalent

2013-03-11 Thread Angela Barone
statement to return early and > return often. Its best to exit out of your functions sooner than later. > Specially if its a large function. O.K. I just thought there might be a more elegant way of doing it. I at least got rid of the else statement like you mentioned. Thanks for your help, Angela

[PHP] Mystery foreach error

2013-03-12 Thread Angela Barone
er to go back and re-enter the correct data, so I'm at a loss as to why this is happening. How can I see what's triggering this to happen? I have the following line in my php.ini: error_reporting = E_ALL & E_STRICT & E_NOTICE & E_DEPRECATED Thank you,

Re: [PHP] Mystery foreach error

2013-03-12 Thread Angela Barone
y( '820','821','822','823','824', ), ); ?> > side effects if you don't act carefully with it. I don't remember where that came from, but for the most part, this script works perfectly. However, I removed it and will test without it. Angela -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Mystery foreach error

2013-03-12 Thread Angela Barone
breviation in the array, everything is fine, but if someone was to enter, say 'XX' like I did above or leave it blank, then the error is produced. I placed an if statement around the foreach loop to test for that and I'll keep an eye on it. Thank you for getting me to look at the array again, which led me to look at the State. Angela -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Mystery foreach error

2013-03-12 Thread Angela Barone
lank. I've since given the "Select a State..." choice a value of 'XX' and I'm now looking for that in the if statement I mentioned before. Angela

Re: [PHP] Mystery foreach error

2013-03-13 Thread Angela Barone
On Mar 13, 2013, at 9:07 AM, Jim Giner wrote: > Why not just check if the $state exists as a key of the array $states before > doing this? Jim, Are you thinking about the in_array function? Angela

Re: [PHP] Mystery foreach error

2013-03-13 Thread Angela Barone
How does that differ from if(isset($states[$state]))? Angela -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Mystery foreach error

2013-03-13 Thread Angela Barone
th array_key_exists, simply because it makes more sense to me in English. ;) Thanks again to everyone. I got it to work _and_ there are no more errors!!! Angela -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Detecting massive web hits

2013-04-12 Thread Angela Barone
ite I work on within only a few seconds of each other. I seriously doubt they are a customer. ;) I'd appreciate any insights. Thank you, Angela -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Looking for complete entered URL

2013-04-20 Thread Angela Barone
file. There are a lot of pages that have come up in my search, but nothing seems to pertain to what I'm trying to do. Thank you, Angela BTW, I know about Piwik and I use that, as well. This is something I'm doing on my own. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] random html +(hi)

2004-01-16 Thread Angela K Hilton
Hi All I'm new to this list and I suppose fairly new to PHP - and hope that this question is in keeping with the type of thing that's usually asked. I'm trying to dynamically randomise a chunk of HTML that is used on a page, aka random image, so that each time a client opens the page [or refresh

[PHP] mt_strand

2004-02-13 Thread Angela K Hilton
will be appreciated. Thanks Ange *** Angela K Hilton Web & E-Learning Officer ISD, UMIST Tel: 0161 306 3109 ***

RE: [PHP] mt_strand

2004-02-13 Thread Angela K Hilton
Hamid works fine - all the code works OK - apart from the seed issue. A *** Angela K Hilton Web & E-Learning Officer ISD, UMIST Tel: 0161 306 3109 *** -Original Message- From: Hamid Hossain [mailto:[EMAIL PROTE

RE: [PHP] UK Postcodes Format

2004-02-17 Thread Angela K Hilton
I 'Think' there are also different formats for military bases here and overseas. [this is a faint memory from validating post codes in a database some years ago] A ******* Angela K Hilton Web & E-Learning Officer ISD, UMIST Tel: