php-general Digest 16 Sep 2007 07:17:13 -0000 Issue 5021

2007-09-16 Thread php-general-digest-help
php-general Digest 16 Sep 2007 07:17:13 - Issue 5021 Topics (messages 262139 through 262140): Re: Urgent Help Needed 262139 by: Stut Configure mail to use Gmail smtp 262140 by: debussy007 Administrivia: To subscribe to the digest, e-mail: [EMAIL PROTECTED] To

php-general Digest 16 Sep 2007 21:24:47 -0000 Issue 5022

2007-09-16 Thread php-general-digest-help
php-general Digest 16 Sep 2007 21:24:47 - Issue 5022 Topics (messages 262141 through 262149): php Login script issue 262141 by: Chris Carter 262142 by: Tijnema 262146 by: Sanjeev N 262147 by: Bastien Koert Re: Configure mail to use Gmail smtp 262143

[PHP] Configure mail to use Gmail smtp

2007-09-16 Thread debussy007
Hello, I have read here : http://www.geekzone.co.nz/tonyhughes/599 that I can use Gmail as a free SMTP server. Is it possible to change the php.ini in order to have this running ? I need to specify in some way the following : Outgoing Mail (SMTP) Server - requires TLS: smtp.gmail.com (use

[PHP] php Login script issue

2007-09-16 Thread Chris Carter
Hi, Its just a login and password validation that I am trying to achieve. If the username is correct then the person is able to view certain page, if incorrect then he is directed elsewhere. ? $userid=mysql_real_escape_string($userid); $password=mysql_real_escape_string($password);

Re: [PHP] php Login script issue

2007-09-16 Thread Tijnema
On 9/16/07, Chris Carter [EMAIL PROTECTED] wrote: Hi, Its just a login and password validation that I am trying to achieve. If the username is correct then the person is able to view certain page, if incorrect then he is directed elsewhere. ? $userid=mysql_real_escape_string($userid);

Re: [PHP] Configure mail to use Gmail smtp

2007-09-16 Thread debussy007
I succeeded using the Zend Framework. debussy007 wrote: Hello, I have read here : http://www.geekzone.co.nz/tonyhughes/599 that I can use Gmail as a free SMTP server. Is it possible to change the php.ini in order to have this running ? I need to specify in some way the following :

Re: [PHP] Configure mail to use Gmail smtp

2007-09-16 Thread Thomas Bachmann
ZF rocks ;) debussy007 schrieb: I succeeded using the Zend Framework. debussy007 wrote: Hello, I have read here : http://www.geekzone.co.nz/tonyhughes/599 that I can use Gmail as a free SMTP server. Is it possible to change the php.ini in order to have this running ? I need to specify in

[PHP] Re: split in to multiple pages (I think)

2007-09-16 Thread Thomas Bachmann
Why don't post an example of your news file too? Joker7 schrieb: Hi, I'm using the code below to display news articles-which works great apart from. I can control the number of articles,but I would like to add a link to the bottom of the page to the un-displayed articles ( nexted 5 articles

RE: [PHP] php Login script issue

2007-09-16 Thread Sanjeev N
Hi, $result = mysql_query(SELECT * FROM tablename WHERE userName='$userName' AND password = '$password'); if($rec = mysql_fetch_array($result)){ //your code } Try like this it may solve. It may solve your problem Don't try to fetch the result from one single line code. Warm Regards,

RE: [PHP] php Login script issue

2007-09-16 Thread Bastien Koert
argh! hotmail sucks I don't see in the script where you are using $_POST / $_GET / $_REQUEST to access tha data from the form. Its likely that the example you are following is old and uses 'register_globals'. Since register_globals is a huge security hole and is not active in any new

Re: [PHP] Configure mail to use Gmail smtp

2007-09-16 Thread mike
i'm quite sure you can't with php's built-in mail() function. however more advanced modules should support it. look in PEAR, google for phpmailer, etc. i'm sure there's got to be some. worst case i think you have all the tools in PHP to make your own anyway. On 9/16/07, debussy007 [EMAIL

[PHP] Finding next recored in a array

2007-09-16 Thread Richard Kurth
$Campaign_array| = array('0','1','3','5','8','15','25');| I know that I can find the next recored in a array using next. What I do not understand is if I know the last number was say 5 how do I tell the script that that is the current number so I can select the next record || -- PHP General

Re: [PHP] Finding next recored in a array

2007-09-16 Thread brian
Richard Kurth wrote: $Campaign_array| = array('0','1','3','5','8','15','25');| I know that I can find the next recored in a array using next. What I do not understand is if I know the last number was say 5 how do I tell the script that that is the current number so I can select the next

Re: [PHP] Finding next recored in a array

2007-09-16 Thread Richard Kurth
brian wrote: Richard Kurth wrote: $Campaign_array| = array('0','1','3','5','8','15','25');| I know that I can find the next recored in a array using next. What I do not understand is if I know the last number was say 5 how do I tell the script that that is the current number so I can select

Re: [PHP] Finding next recored in a array

2007-09-16 Thread Rick Pasotto
On Sun, Sep 16, 2007 at 07:09:02PM -0400, brian wrote: Richard Kurth wrote: $Campaign_array| = array('0','1','3','5','8','15','25');| I know that I can find the next recored in a array using next. What I do not understand is if I know the last number was say 5 how do I tell the script that

Re: [PHP] Finding next recored in a array

2007-09-16 Thread Richard Kurth
Rick Pasotto wrote: On Sun, Sep 16, 2007 at 07:09:02PM -0400, brian wrote: Richard Kurth wrote: $Campaign_array| = array('0','1','3','5','8','15','25');| I know that I can find the next recored in a array using next. What I do not understand is if I know the last number was say 5 how

Re: [PHP] Finding next recored in a array

2007-09-16 Thread Richard Kurth
Richard Kurth wrote: Rick Pasotto wrote: On Sun, Sep 16, 2007 at 07:09:02PM -0400, brian wrote: Richard Kurth wrote: $Campaign_array| = array('0','1','3','5','8','15','25');| I know that I can find the next recored in a array using next. What I do not understand is if I know the last

Re: [PHP] Finding next recored in a array

2007-09-16 Thread Rick Pasotto
On Sun, Sep 16, 2007 at 06:04:45PM -0700, Richard Kurth wrote: Richard Kurth wrote: Rick Pasotto wrote: On Sun, Sep 16, 2007 at 07:09:02PM -0400, brian wrote: Richard Kurth wrote: $Campaign_array| = array('0','1','3','5','8','15','25');| I know that I can find the next recored in a

[PHP] Parsing Poor XML into to PHP

2007-09-16 Thread John Taylor-Johnston
Pour examples of xml, but this is what I want to do. I have a quiz. BASICALLY How do EXTRACT THE Contents and Values of these tags into strings and arrays I can work with. Depending upon the students answer, compared to the criterion below, I need to calculate a value = x/1. The score could