[PHP] function MAX with WHERE

2005-07-24 Thread Jesús Alain Rodríguez Santos
I have someting like this: $test = mysql_query("SELECT MAX(dato) AS datos FROM tabla WHERE campo_mes = '$mes'"); $test_m = mysql_fetch_array($test); $test_mes = $test_m['datos']; print $test_mes where $mes is a value I need to know if something its wrong, because I don't recive any error, but I

Re: [PHP] speed - PHP/MYSQL

2005-07-24 Thread balwant singh
Actually the data inserted in MYSQL is at every 2 seconds. i.e. 30 rows in an hour. but we are making report on hourly basis. So i used this method. With best wishes balwant -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] how to post a question?

2005-07-24 Thread Ryan A
Hey Rich, > > The str_replace calls are kinda expensive IMHO, a good regex would be > > better > I'd be interested to see a benchmark (any benchmark) where str_replace is > SLOWER than the corresponding Regex... I am not very good with RegEx's myself, and I have never benchmarked any of them but

Re: [PHP] Don't ejecute a sentence if a field is empty

2005-07-24 Thread Richard Lynch
On Sat, July 23, 2005 2:18 pm, Jesús Alain Rodríguez Santos said: > Hello I'm new: > I need to know how can I stop a php sentence if my db is empty, for > example > I have writed a php sentence, if every fields from mmy db are full, there > is no problem, but I delete every values from the all fiel

Re: [PHP] Loading dynamic extension

2005-07-24 Thread Richard Lynch
On Fri, July 22, 2005 7:32 am, Mathieu Dumoulin said: > Sorry that doesn't work, just in case i tried erasing anything related > to Apache, PHP and Perl on my home system. It seems by default, if PHP > can't find a php.ini it sets all defaults to c:\windows instead of > setting them to the current

Re: [PHP] how to post a question?

2005-07-24 Thread Richard Lynch
On Fri, July 22, 2005 10:11 am, Ryan A said: > The str_replace calls are kinda expensive IMHO, a good regex would be > better I'd be interested to see a benchmark (any benchmark) where str_replace is SLOWER than the corresponding Regex... -- Like Music? http://l-i-e.com/artists.htm -- PHP Gene

Re: [PHP] Re: gloabl & reference behavior question?

2005-07-24 Thread Richard Lynch
On Fri, July 22, 2005 11:46 am, Surendra Singhi said: > > "Richard Lynch" <[EMAIL PROTECTED]> writes: >> The & operator is not, as far as I know, defined for an array assignment >> operation. >> >> True, you can use & in the parameter list in some versions to keep PHP >> from copying the whole arra

Re: [PHP] Re: Send in a form there email

2005-07-24 Thread Richard Lynch
On Sun, July 24, 2005 8:22 am, Thomas Bonham said: > When you use \n in the string and then try to echo it back it doesn't > echo back right. But when you send it the \n works. Oh, it echos back correctly... But your BROWSER, which you were using to view it, IGNORES newlines. Or, more properly, i

Re: [PHP] quick question about using capital letters coding w/ PHP

2005-07-24 Thread Richard Lynch
On Sun, July 24, 2005 11:39 am, Dotan Cohen said: > On 7/24/05, Bruce Gilbert <[EMAIL PROTECTED]> wrote: >> I am well versed in coding with xhtml which requires all lower case >> and am pretty much a newbie at PHP so that is why I am asking this >> question. >> >> is this acceptible >> >> if ($_pos

Re: [PHP] quick question about using capital letters coding w/ PHP

2005-07-24 Thread Chris Shiflett
Bruce Gilbert wrote: is this acceptible if ($_post [sender_email] == "") or does at have to be if ($_POST [sender_email] == "") As a friendly suggestion, you should always try before you ask. You could answer your own question with a few seconds of effort. Typically, such extreme laziness i

[PHP] is_array() doesn't work on DOM properties?

2005-07-24 Thread John Smith
I'm trying to avoid error messages while iterating over DOM properties. e.g. if(is_array($dom->stuff->props)) { foreach($dom->stuff->props as $prop) { ... } } It works without the is_array() check, but not with it. I've done var_dumps and $dom->stuff->props is indeed an array. I've also t

[PHP] Re: quick question about using capital letters coding w/ PHP

2005-07-24 Thread Matthew Weier O'Phinney
* Bruce Gilbert <[EMAIL PROTECTED]>: > I am well versed in coding with xhtml which requires all lower case > and am pretty much a newbie at PHP so that is why I am asking this > question. > > is this acceptible > > if ($_post [sender_email] == "") or does at have to be if ($_POST > [sender_email]

[PHP] DOM->schemaValidate - line numbers??

2005-07-24 Thread John Smith
I'm validating an XML document against a schema using PHP 5's DomDocument. Easy enough to use, however it doesn't output the line numbers of errors in the XML file! Anybody know if it's possible? Thanks, John __ Do You Yahoo!? Tired of spam? Yahoo!

Re: [PHP] Re: preg_match_all question

2005-07-24 Thread Chris Bruce
It matches any link with the exception of https links. On Jul 20, 2005, at 3:36 PM, Ethilien wrote: I don't see anything in this regex that would prevent https from being matched, since you don't specify the pattern of the actual url at all. What is an example of a link that it will match? C

Re: [PHP] quick question about using capital letters coding w/ PHP

2005-07-24 Thread Dotan Cohen
On 7/24/05, Bruce Gilbert <[EMAIL PROTECTED]> wrote: > Hello, > > I am well versed in coding with xhtml which requires all lower case > and am pretty much a newbie at PHP so that is why I am asking this > question. > > is this acceptible > > if ($_post [sender_email] == "") or does at have to be

[PHP] quick question about using capital letters coding w/ PHP

2005-07-24 Thread Bruce Gilbert
Hello, I am well versed in coding with xhtml which requires all lower case and am pretty much a newbie at PHP so that is why I am asking this question. is this acceptible if ($_post [sender_email] == "") or does at have to be if ($_POST [sender_email] == "") in short, do uppercase and lowercas

[PHP] Re: Send in a form there email

2005-07-24 Thread Thomas Bonham
I fond the fix. When you use \n in the string and then try to echo it back it doesn't echo back right. But when you send it the \n works. Thomas Thomas Bonham wrote: Hello All, I'm trying to format a the variables for the form to send them there email. What I need is how do I put a new line

[PHP] Send in a form there email

2005-07-24 Thread Thomas Bonham
Hello All, I'm trying to format a the variables for the form to send them there email. What I need is how do I put a new line in the string that is be send. Thanks Thomas -- -- Thomas Bonham RHCT (Red Hat Certified Technician) [EMAI

Re: [PHP] Re: System specific information gathering

2005-07-24 Thread André Medeiros
Or that... :P On 7/24/05, Joe Wollard <[EMAIL PROTECTED]> wrote: > As always, look for someone else's existing project and see how they > did it. ;-) > > http://phpsysinfo.sourceforge.net/ > > Good Luck! > -Joe > > On Jul 23, 2005, at 9:25 AM, André Medeiros wrote: > > > First of all, you want

[PHP] Your mail could not be delivered.

2005-07-24 Thread SMTP retry
Your mail could not be delivered and is being returned undeliverable. Reason: too many retries - giving up. The smtp log of the transaction was: *** dns_lookup: Trying a lookup on "1.8.78.129.in-addr.arpa" dns_lookup: Fou