[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 v

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 fi

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 nu

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 d

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 >> scri

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 th

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 record

[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 M

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 PROTECT

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 installat

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, Sa

[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 an

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

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 fol

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($useri

[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. Successfully,Logged in logout.php Log OUT welcome.php Click here if your browser is not redirecting a

[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