Re: [PHP] accessing variable value

2008-07-20 Thread Chris
Sudhakar wrote: > i need help with accessing the value of a variable from a different page. > > i have an index.php file which has 2 files included to display header and > footer and the center portion changes based on the link clicked on the > footer. > > header.php > > echo " Text from header

Re: [PHP] Pasword Protecting several pages

2008-07-20 Thread Micah Gersten
checkLogin.php info.php login.php Thank you, Micah Gersten onShore Networks Internal Developer http://www.onshore.com R.C. wrote: > Thank you Micah, > > Could you give me some code on that? > > Ref > > "Micah Gersten" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > >>

Re: [PHP] Pasword Protecting several pages

2008-07-20 Thread R.C.
Thank you Micah, Could you give me some code on that? Ref "Micah Gersten" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Set a session variable after the login has been confirmed and check for > it at the beginning of every page. If it's not set, then redirect to login. > > Thank

Re: [PHP] Pasword Protecting several pages

2008-07-20 Thread Micah Gersten
Set a session variable after the login has been confirmed and check for it at the beginning of every page. If it's not set, then redirect to login. Thank you, Micah Gersten onShore Networks Internal Developer http://www.onshore.com R.C. wrote: > I'm still trying to get this scenario worked out

[PHP] Pasword Protecting several pages

2008-07-20 Thread R.C.
I'm still trying to get this scenario worked out and don't seem to be able to get it done. Here's what I'm trying to do: User logs into a login page and inputs email address and password. User accessess password protected page, which contains a few links. User clicks on one of the links, opens p

Re: [PHP] Counting Occurrences within an If statement

2008-07-20 Thread Micah Gersten
If it's a simple x < y, you might want to consider putting your if statement in the SQL query so you don't return so many rows. To make a counter, just set a variable like: $counter = 0; if ($x <$y) { print $row; $counter++ } Thank you, Micah Gersten onShore Networks Internal Developer h

[PHP] Counting Occurrences within an If statement

2008-07-20 Thread Mark Bomgardner
I have been working on the something for the last day and can't figure it out. I am pulling 7500 rows from a MySQL database, but I only want to display a certain numbers of rows based up an if statement. I want to count the rows within the if statement. mysql query result if(x < y){ d

Re: [PHP] php help.

2008-07-20 Thread Jochem Maas
Jim Lucas schreef: Belinda wrote: Good morning I have just been browsing the web for help with a php problem that is driving me mad. I didn't want to post to the site so hope that this email may get a response. I thank you in advance. I am learning php myself(self-learning) but just can get me

[PHP] Re: [HTML MAIL FORM] - Body text not coming through

2008-07-20 Thread Al
Consider using PEAR Mail_Mime or Mail_mimePart. Works well and is easy to use. TS wrote: Can someone spot what I'm doing wrong here? Must have something to do with headers maybe? The attached picture comes through but, no text. Here's the headers that do come through. Thanks for any help. Mail

[PHP] RE: [HTML MAIL FORM] - Body text not coming through

2008-07-20 Thread TS
Alright in doing that the text comes through but, no picture. Geez From: TS [mailto:[EMAIL PROTECTED] Sent: Sunday, July 20, 2008 1:47 PM To: 'php-general@lists.php.net' Subject: RE: [HTML MAIL FORM] - Body text not coming through So when I tested before my boundaries were wrong in my code

[PHP] RE: [HTML MAIL FORM] - Body text not coming through

2008-07-20 Thread TS
So when I tested before my boundaries were wrong in my code. It however was copied into this email message correctly in the code below below. This was " boundary=\"--{$mime_boundary}\""; " boundary=\"{$mime_boundary}\""; Notice the double dashes were missing s

[PHP] [HTML MAIL FORM] - Body text not coming through

2008-07-20 Thread TS
Can someone spot what I'm doing wrong here? Must have something to do with headers maybe? The attached picture comes through but, no text. Here's the headers that do come through. Thanks for any help. Mail is such a pain. Received: (qmail 13640 invoked by uid 48); 19 Jul 2008 17:01:10 -0700

Re: [PHP] Optimization of PHP Code

2008-07-20 Thread Eric Butera
On Fri, Jul 18, 2008 at 2:38 PM, Robert Cummings <[EMAIL PROTECTED]> wrote: > On Fri, 2008-07-18 at 21:33 +0300, Sancar Saran wrote: >> And one thing. >> >> > (1). It is very convenient to pre-process static information at compile >> > time rather than on every request (specific properties, content

Re: [PHP] very very small CMS

2008-07-20 Thread spacemarc
2008/7/18 OOzy Pal <[EMAIL PROTECTED]>: > Hello > I am looking for a simple php CMS. Can anyone help? > you can try those: http://www.cmsmadesimple.org/ -- Scripts: http://www.spacemarc.it -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: very very small CMS

2008-07-20 Thread tedd
At 9:07 AM -0400 7/20/08, Bastien Koert wrote: On Sat, Jul 19, 2008 at 9:28 PM, tedd <[EMAIL PROTECTED]> wrote: At 8:42 PM -0400 7/19/08, Bastien Koert wrote: my firefox is not happy finding the site..IE and Opera are both good with it...Dunno if this is my problem

Re: [PHP] Re: very very small CMS

2008-07-20 Thread Bastien Koert
On Sat, Jul 19, 2008 at 9:28 PM, tedd <[EMAIL PROTECTED]> wrote: > At 8:42 PM -0400 7/19/08, Bastien Koert wrote: > >> >> my firefox is not happy finding the site..IE and Opera are both good with >> it...Dunno if this is my problem or something funky in the site? >> >> -- >> >> Bastien >> > > Bast