Re: [PHP-WIN] Trouble running a select query against a database, when I know the connection is working, and the data is there

2010-04-13 Thread Jacob Kruger
the first row. Toby __ Information from ESET NOD32 Antivirus, version of virus signature database 5026 (20100413) __ The message was checked by ESET NOD32 Antivirus. http://www.eset.com __ Information from ESET NOD32 Antivirus, version of virus signature databas

RE: [PHP-WIN] Send Mail from PHP Using SMTP Authentication

2010-04-13 Thread Alice Wei
Date: Tue, 13 Apr 2010 16:05:31 +0200 Subject: Re: [PHP-WIN] Send Mail from PHP Using SMTP Authentication From: tyr...@gmail.com To: aj...@alumni.iu.edu CC: php-windows@lists.php.net On Tue, Apr 13, 2010 at 3:54 PM, Alice Wei wrote: Date: Tue, 13 Apr 2010 15:42:29 +0200 Subject: Re: [

Re: [PHP-WIN] Send Mail from PHP Using SMTP Authentication

2010-04-13 Thread Toby Hart Dyke
On 4/13/2010 2:54 PM, Alice Wei wrote: I tried installing the Pear Mail package, it is now located in php/PEAR/Mail, and my code is located in the htdocs. Here is the code: $host = "smtp.att.yahoo.com"; Although you have other problems (see below) this is unlikely to work. When sending ema

Re: [PHP-WIN] Send Mail from PHP Using SMTP Authentication

2010-04-13 Thread Ferenc Kovacs
On Tue, Apr 13, 2010 at 3:54 PM, Alice Wei wrote: > > -- > Date: Tue, 13 Apr 2010 15:42:29 +0200 > > Subject: Re: [PHP-WIN] Send Mail from PHP Using SMTP Authentication > From: tyr...@gmail.com > To: aj...@alumni.iu.edu > CC: php-windows@lists.php.net > > > > On Tue, A

RE: [PHP-WIN] Send Mail from PHP Using SMTP Authentication

2010-04-13 Thread Alice Wei
Date: Tue, 13 Apr 2010 15:42:29 +0200 Subject: Re: [PHP-WIN] Send Mail from PHP Using SMTP Authentication From: tyr...@gmail.com To: aj...@alumni.iu.edu CC: php-windows@lists.php.net On Tue, Apr 13, 2010 at 2:24 PM, Alice Wei wrote: Date: Mon, 12 Apr 2010 22:13:10 +0200 Subject: Re: [PHP-

Re: [PHP-WIN] Send Mail from PHP Using SMTP Authentication

2010-04-13 Thread Ferenc Kovacs
On Tue, Apr 13, 2010 at 2:24 PM, Alice Wei wrote: > > Date: Mon, 12 Apr 2010 22:13:10 +0200 > Subject: Re: [PHP-WIN] Send Mail from PHP Using SMTP Authentication > From: tyr...@gmail.com > To: aj...@alumni.iu.edu > CC: php-windows@lists.php.net > > http://www.php.net/manual/en/ini.core.php#ini.in

[PHP-WIN] Using PHP to launch more PHP scripts and use WinCache.

2010-04-13 Thread Richard Quadling
Hello. I've been trying to use WinCache to allow me to pass data between 2 scripts, where script a launches script b. I can do this at the command line easily enough ... and and running these ... start C:\PHP5\php.exe -f test1.php start C:\PHP5\php.exe -f test2.php Now I want to do someth

RE: [PHP-WIN] Send Mail from PHP Using SMTP Authentication

2010-04-13 Thread Alice Wei
Date: Mon, 12 Apr 2010 22:13:10 +0200 Subject: Re: [PHP-WIN] Send Mail from PHP Using SMTP Authentication From: tyr...@gmail.com To: aj...@alumni.iu.edu CC: php-windows@lists.php.net http://www.php.net/manual/en/ini.core.php#ini.include-path Tyrael I tried installing the Pear Mail package, it i

Re: [PHP-WIN] Trouble running a select query against a database, when I know the connection is working, and the data is there

2010-04-13 Thread Jacob Kruger
browser $qry = mysql_query($sql); $arr = mysql_fetch_array($qry); if ($arr.count > 0) where did you get that $arr.count thingie? you can count the result rows with mysql_num_rows http://www.php.net/manual/en/function.mysql-num-rows.php Tyrael __ Information from ESET NOD32 An

Re: [PHP-WIN] Trouble running a select query against a database, when I know the connection is working, and the data is there

2010-04-13 Thread Jacob Kruger
.net/) To unsubscribe, visit: http://www.php.net/unsub.php __ Information from ESET NOD32 Antivirus, version of virus signature database 5024 (20100413) __ The message was checked by ESET NOD32 Antivirus. http://www.eset.com __ Information from ESET NOD32 Anti

Re: [PHP-WIN] Trouble running a select query against a database, when I know the connection is working, and the data is there

2010-04-13 Thread Richard Quadling
On 13 April 2010 11:00, Toby Hart Dyke wrote: > On 4/13/2010 9:36 AM, Jacob Kruger wrote: >> >> $qry = mysql_query($sql); >> $arr = mysql_fetch_array($qry); >> if ($arr.count > 0) >> { >> echo ""; >> while($row = mysql_fetch_array($arr)) > > You retrieve a row, check if it has any elements, then a

Re: [PHP-WIN] Trouble running a select query against a database, when I know the connection is working, and the data is there

2010-04-13 Thread Richard Quadling
l if I echo it out to the > browser >    $qry = mysql_query($sql); >    $arr = mysql_fetch_array($qry); >    if ($arr.count > 0) > > >  where did you get that $arr.count thingie? >  you can count the result rows with mysql_num_rows >  http://www.php.net/manual/en/functio

Re: [PHP-WIN] Trouble running a select query against a database, when I know the connection is working, and the data is there

2010-04-13 Thread Toby Hart Dyke
On 4/13/2010 9:36 AM, Jacob Kruger wrote: $qry = mysql_query($sql); $arr = mysql_fetch_array($qry); if ($arr.count > 0) { echo ""; while($row = mysql_fetch_array($arr)) You retrieve a row, check if it has any elements, then attempt to retrieve the next row, using the array you just created as

Re: [PHP-WIN] Trouble running a select query against a database, when I know the connection is working, and the data is there

2010-04-13 Thread Jacob Kruger
Information from ESET NOD32 Antivirus, version of virus signature database 5023 (20100412) __ The message was checked by ESET NOD32 Antivirus. http://www.eset.com __ Information from ESET NOD32 Antivirus, version of virus signature database 5024 (20100413) __ The message was checked by ESET NOD32 Antivirus. http://www.eset.com

Re: [PHP-WIN] Trouble running a select query against a database, when I know the connection is working, and the data is there

2010-04-13 Thread Richard Quadling
On 13 April 2010 09:36, Jacob Kruger wrote: > if ($arr.count > 0) Try ... if (mysql_num_rows($arr) > 0) -- - Richard Quadling "Standing on the shoulders of some very clever giants!" EE : http://www.experts-exchange.com/M_248814.html EE4Free : http://www.experts-exchange.com/becomeAnExpert.

[PHP-WIN] Trouble running a select query against a database, when I know the connection is working, and the data is there

2010-04-13 Thread Jacob Kruger
I am trying to simply just loop through a set of records to spit out tags for the data therein, and on the same page, it's successfully running another query against the same connection - which I have also tried turning off just in case it was a problem with running two queries against the same