[PHP] Session Variables Not Being Passed

2002-12-01 Thread Jami
The code that I have is as such: //header.php if(isset($_POST['login'])){ $checkuser = mysql_query(SELECT * FROM mainacct WHERE username = '{$_POST['username']}' AND password = '{$_POST['password']}' , $connection) or die (Couldn't find user.); if (mysql_num_rows($checkuser) 0){ while

Re: [PHP] Test links?

2002-12-01 Thread Jason Wong
On Sunday 01 December 2002 15:33, Hugh Danaher wrote: Not sure how to supress the warning message that PHP automatically does when you haven't got a valid URL though. Error reporting options can be set in php.ini or by using ini_set(). should be able to surpress errors by adding an * before

[PHP] Guestbook

2002-12-01 Thread Vicky
Hiya ^_^ I have a guestbook I coded myself using PHP. In the corner it keeps record of the entry number, but when I delete and entry the entries posted after it don't go back to catch up. So the entry numbers skip from 22 to 24, for example. Is there anyway to stop this happening, so if i delete

Re: [PHP] login_script_help needed.

2002-12-01 Thread Andrew Brampton
Well quickly looking at the code I can't see what line is causing the Warning: Cannot add header information but there have been many discussion explaining why this happens... as for your Unknown MySQL Server Host '$198.63.221.3' the error for that is on the line: if(!($link_id =

[PHP] Re: Guestbook

2002-12-01 Thread Thomas Seifert
Hi, you give less information. How do you compute the entry number and how do you save the entries and so on. Normally you will have to live with the gaps but sure, you can touch every entry and change its number ;-). Thomas On Sun, 1 Dec 2002 10:33:45 - [EMAIL PROTECTED] (Vicky) wrote:

Re: [PHP] Guestbook

2002-12-01 Thread Jason Wong
On Sunday 01 December 2002 18:33, Vicky wrote: Hiya ^_^ I have a guestbook I coded myself using PHP. In the corner it keeps record of the entry number, but when I delete and entry the entries posted after it don't go back to catch up. So the entry numbers skip from 22 to 24, for example.

[PHP] Re: Guestbook

2002-12-01 Thread sfasf saff
in mysql the autoincrement field will not go back to fill gaps... and this is for a good reason ... suppose you had an entry (bogus1) in your guest book with entry number 23 and you deleted it... now a new entry comes and it is given the entry number 23 ... well this ambigus : did u delete the

[PHP] Inheritance problem

2002-12-01 Thread Bernard Chamberland
Hi, I would like to post the following question related to an inheritance problem with PHP OO programming : With an object of a subclass, I call a method of the parentclass in order to modify an attribute of the parentclass. It does work correctly but later when I call the display method of

Re: [PHP] Inheritance problem

2002-12-01 Thread Tom Rogers
Hi, Sunday, December 1, 2002, 10:05:53 PM, you wrote: BC Hi, BC I would like to post the following question related to an inheritance BC problem with PHP OO programming : BC With an object of a subclass, I call a method of the parentclass in order BC to modify an attribute of the

[PHP] anyone askin for Page Breaks .... !

2002-12-01 Thread phpnew_bocket
there was a post here asking about creating page breaks... well .. this page might be of great help : http://www.west-wind.com/wckb/creatingpagebreaksinhtmldocuments.htm = +--+ |Wana Know what ISLAM is all about ? |

php-general Digest 1 Dec 2002 13:25:08 -0000 Issue 1737

2002-12-01 Thread php-general-digest-help
php-general Digest 1 Dec 2002 13:25:08 - Issue 1737 Topics (messages 126581 through 126598): Re: last updated ? 126581 by: Morgan Hughes Re: Read Files 126582 by: Chris Wesley login_script_help needed. 126583 by: Karl James 126585 by: Maxim Maletsky

Re: [PHP] Inheritance problem

2002-12-01 Thread Ernest E Vogelsinger
At 13:05 01.12.2002, Bernard Chamberland said: [snip] Hi, [snip] [...omitting long code post...] Bernard, couple of things: a) Class Ressource uses instance data ($this-) in the constructor. You shouldn't call this

[PHP] XTemplate

2002-12-01 Thread Henry
Hi All, I'm looking for a way to seperate my HTML from my PHP and database access code, I pointed in the direction of XTemplate. After having had a look at XTemplate I'm not sure if it is current and stable under PHP 4 Is it and if it isn't is there something better to use? Henry -- PHP

[PHP] Weblogs

2002-12-01 Thread Randum Ian
Can anybody recommend a good PHP weblog script? Cheers in advance, Randum Ian [EMAIL PROTECTED] DJ / Reviewer / Webmaster, DancePortal (UK) Limited DancePortal.co.uk - Global dance music media

Re: [PHP] Going Mad

2002-12-01 Thread Andy
OK, so I have located the httpd.config file but still no joy, I know it is something very simple and silly. I will explain in detail what I have done, I think this will give a better idea of where I am going wrong. Loaded Apache from the CD first in its default location c:/program

Re: [PHP] Weblogs

2002-12-01 Thread Marco Tabini
b2, which you can find here: http://cafelog.com/ Cheers, Marco -- php|architect - The magazine for PHP Professionals The monthly worldwide magazine dedicated to PHP programmers Come visit us at http://www.phparch.com! On Sun, 2002-12-01 at 09:35, Randum Ian wrote: Can anybody

RE: [PHP] XTemplate

2002-12-01 Thread John W. Holmes
I'm looking for a way to seperate my HTML from my PHP and database access code, I pointed in the direction of XTemplate. After having had a look at XTemplate I'm not sure if it is current and stable under PHP 4 Is it and if it isn't is there something better to use? I don't know how

RE: [PHP] Session Variables Not Being Passed

2002-12-01 Thread John W. Holmes
-Original Message- From: Jami [mailto:[EMAIL PROTECTED]] Sent: Sunday, December 01, 2002 3:53 AM To: PHP General Subject: [PHP] Session Variables Not Being Passed The code that I have is as such: //header.php if(isset($_POST['login'])){ $checkuser = mysql_query(SELECT *

Re: [PHP] XTemplate

2002-12-01 Thread phpnew_bocket
try FastTemplate... http://www.thewebmasters.net/php/FastTemplate.phtml I use it alot... --- Henry [EMAIL PROTECTED] wrote: Hi All, I'm looking for a way to seperate my HTML from my PHP and database access code, I pointed in the direction of XTemplate. After having had a look at

[PHP] PHP Trouble-Ticket-Systems?

2002-12-01 Thread Thomas Seifert
Hi folks, I already searched through the web but couldn't find any which provide the features I want. What I would want to see in such a system: - adding TroubleTickets through webinterface or sending an email to an support email-address - adding answers to troubletickets to their parent -

RE: [PHP] PHP Trouble-Ticket-Systems?

2002-12-01 Thread Tony Crockford
So the question is, does anyone know any good troubleticket/helpdesk-systems written in PHP? Thanks, Thomas This would seem to fit the bill: (I've used it and can recommend it) http://helpdesk.oneorzero.com/ HTH Tony -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] PHP Trouble-Ticket-Systems?

2002-12-01 Thread Marco Tabini
http://www.inicrm.com Offered as an ASP (my company produces it, so... shameless plug) Marco On Sun, 2002-12-01 at 10:59, Thomas Seifert wrote: Hi folks, I already searched through the web but couldn't find any which provide the features I want. What I would want to see in such a

Re: [PHP] Test links?

2002-12-01 Thread Hugh Danaher
Yes I did. Thanks. - Original Message - From: Jason Wong [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, December 01, 2002 2:30 AM Subject: Re: [PHP] Test links? On Sunday 01 December 2002 15:33, Hugh Danaher wrote: Not sure how to supress the warning message that PHP

Re: [PHP] Going Mad

2002-12-01 Thread Jason Wong
On Sunday 01 December 2002 22:36, Andy wrote: OK, so I have located the httpd.config file but still no joy, I know it is something very simple and silly. I will explain in detail what I have done, I think this will give a better idea of where I am going wrong. Loaded Apache from the CD first

Re: [PHP] Going Mad

2002-12-01 Thread Ernest E Vogelsinger
At 15:36 01.12.2002, Andy said: [snip] Then i added Action application/x-httpd-php /php/php.exe under the Action section followed by AddType application/xhttpd-php .php under the AddType section. According to the book i would now be ready to go!

[PHP] Has anyone this script ??

2002-12-01 Thread Ray Healy \(Data Net Services\)
Dear All I have been trying for ages to write a PHP calendar with a mySQL backend but cannot seem to get it working correctly. I have visited many sites and downloaded various free scripts but they all seem to do more than I need although they are all excellent. What I want to be able to do

Re: [PHP] Has anyone this script ??

2002-12-01 Thread Ernest E Vogelsinger
At 17:37 01.12.2002, Ray Healy \(Data Net Services\) said: [snip] I have visited many sites and downloaded various free scripts but they all seem to do more than I need although they are all excellent. [snip] Ray,

[PHP] Date problem

2002-12-01 Thread Rosen
Hi, I have one problem: Date field in MySql database with value as 2002-31-12. I want to increment or decrement this date and to put it again in table. Can someone help me to increment or decrement date with some days? Thanks, Rosen -- PHP General Mailing List (http://www.php.net/) To

[PHP] strange parse error at EOF

2002-12-01 Thread Bård Magnus Fauske
Hello. Get a strange parse error at End of File Any suggestions what I do wrong? I use UNIX-formatted text-file written in windows-client and uploaded to server. Using PHPEDIT to check I get the same error as when I visit the page, and I can't find any error looking through the file (/,/;

RE: [PHP] Date problem

2002-12-01 Thread John W. Holmes
I have one problem: Date field in MySql database with value as 2002-31-12. I want to increment or decrement this date and to put it again in table. Can someone help me to increment or decrement date with some days? UPDATE yourtable SET yourcolumn = yourcolumn + INTERVAL 1 DAY WHERE ...

Re: [PHP] strange parse error at EOF

2002-12-01 Thread Jason Wong
On Monday 02 December 2002 01:24, Bård Magnus Fauske wrote: Hello. Get a strange parse error at End of File Any suggestions what I do wrong? I use UNIX-formatted text-file written in windows-client and uploaded to server. Using PHPEDIT to check I get the same error as when I visit the page,

RE: [PHP] strange parse error at EOF

2002-12-01 Thread John W. Holmes
Get a strange parse error at End of File If you get a parse error on the very last line of the file, it's generally because you missed a closing bracket somewhere. In your case, you're missing the closing bracket for this elseif elseif ($SENDMAIL == 'true') This is where proper indentation

Re: [PHP] Date problem

2002-12-01 Thread Rosen
Thanks, But I need before to save date in database to do some checks with the inc/dec date. Cal you help me ? Thanks, Rosen John W. Holmes [EMAIL PROTECTED] wrote in message 002301c29960$21d6a360$7c02a8c0@coconut">news:002301c29960$21d6a360$7c02a8c0@coconut... I have one problem: Date field

[PHP] eregi_replace() function in a script

2002-12-01 Thread Anthony Ritter
Hi, The following appliaction for the following html form and php script was taken from Larry Ullman's book on PHP on page 130 - 131. What it does is this: 1. the user is presented with a form with a few textboxes and a textarea box. 2. the user fills in the boxes with a URL and a descripttion

[PHP] Going Mad Result

2002-12-01 Thread Andy
Well, I did it :o) I am using IIS and got it right, thank you for all who helped me in my hour of need. The answer to the question was where i am placing the files (not in the root folder), just did it on the PC with IIS and there it was in all its glory! Now i am going to try it on the laptop

RE: [PHP] eregi_replace() function in a script

2002-12-01 Thread John W. Holmes
The script works fine but I have a question with the following line: $Pattern=(http://)([^[:space:]]+) ([[:alnum:]\.,-?/=]); // The variable $Pattern is declared with three groupings. My question: If the user inadvertantly inputs a *space* _after_ the http:// grouping and _before_ the

RE: [PHP] Date problem

2002-12-01 Thread John W. Holmes
What exactly do you want to do? I'm not a mind reader... ---John Holmes... -Original Message- From: Rosen [mailto:[EMAIL PROTECTED]] Sent: Sunday, December 01, 2002 12:54 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] Date problem Thanks, But I need before to save date in database

[PHP] Call to undefined function: mysql_foo()...

2002-12-01 Thread Adam Atlas
I'm having a strange problem. If I run any MySQL function, I get the error message Call to undefined function: mysql_foo(). Why would I be getting this? I've checked php.ini to see if it has the extension=mysql.so line, and I've run a phpinfo() script which says PHP was compiled with MySQL and

[PHP] MySQL Error

2002-12-01 Thread Stephen
Hello, I just recently switched to IIS from Apache since IIS came with Windows XP and I just love Microsoft. I installed PHP and MySQL with no problems but when I tried accessing a table, I got this error: No Database Selected In my script, I have this: $hostname_default = localhost;

Re: [PHP] Call to undefined function: mysql_foo()...

2002-12-01 Thread Marco Tabini
Is it possible that phpBB is using a different copy of PHP? On Sun, 2002-12-01 at 14:21, Adam Atlas wrote: I'm having a strange problem. If I run any MySQL function, I get the error message Call to undefined function: mysql_foo(). Why would I be getting this? I've checked php.ini to see if

[PHP] Re: PHP Trouble-Ticket-Systems?

2002-12-01 Thread Jonathan Chum
I actually spent all day last Wednesday for looking for such a tool to integrate into a web hosting control panel we've built, but there really isn't a good one out there. PerlDesk is a free one that is template based, yet it's lacking a few features. At work, we use Response Tracker v2 (RT) which

Re: [PHP] MySQL Error

2002-12-01 Thread Brad Bonkoski
Perhaps you should try and do some error checking on the mysql_select_db() function, like printing out mysql_error(). Also, for the permissions issues, mysql has a very comprehensive online documentation on user permissions. Check them out, you may also wish to try and connect to the database

[PHP] XML-RPC, is this the best approach for something like this?

2002-12-01 Thread Jonathan Chum
Hi guys! I'm wrapping up a web hosting control panel written in PHP that fills up a queue with commands such as create web hosting account, or change password. A Perl based CRON job on each server will query the database trying to determine what tasks it needs to execute. The problem however is

Re: [PHP] XML-RPC, is this the best approach for something like this?

2002-12-01 Thread Matt Vos
- Original Message - From: Jonathan Chum [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, December 01, 2002 3:27 PM Subject: [PHP] XML-RPC, is this the best approach for something like this? Hi guys! I'm wrapping up a web hosting control panel written in PHP that fills up a

Re: [PHP] XML-RPC, is this the best approach for something like this?

2002-12-01 Thread Ernest E Vogelsinger
At 21:27 01.12.2002, Jonathan Chum said: [snip] I'm wrapping up a web hosting control panel written in PHP that fills up a queue with commands such as create web hosting account, or change password. A Perl based CRON job on each server will query the

[PHP] phpMyAdmin : password and user (Help)

2002-12-01 Thread Iguider
Hi Please I need a help, I used to work with asp and now I am migrating to php, my site web works perfectly on my PC (windows). I am runing phpMyAdmin 2.2.6, and easyphp on local machine . when my host give me a username and password, I want to change the file phpMyAdmin/config.inc.php from

[PHP] apache httpd-2.0.40-8 and scanning alternate extensions for php

2002-12-01 Thread Larry Brown
I just moved to a machine with RH8 that has their latest version of apache. On prior versions httpd.conf had a section that I could set to have the server scan .html extensions for php tags. There is no longer such a section even though the server does appropriately scan .php files. Does anyone

Re: [PHP] apache httpd-2.0.40-8 and scanning alternate extensions for php

2002-12-01 Thread Evan Nemerson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Find the line that looks like AddType application/x-httpd-php .php, and change it to AddType application/x-httpd-php .php .html On Sunday 01 December 2002 01:34 pm, Larry Brown wrote: I just moved to a machine with RH8 that has their latest

Re: [PHP] phpMyAdmin : password and user (Help)

2002-12-01 Thread Evan Nemerson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Try changing the username from username to [EMAIL PROTECTED] On Sunday 01 December 2002 01:21 pm, Iguider wrote: Hi Please I need a help, I used to work with asp and now I am migrating to php, my site web works perfectly on my PC (windows). I am

Re: [PHP] eregi_replace() function in a script

2002-12-01 Thread Anthony Ritter
John W. Holmes: Yes, that's correct. That piece of the pattern matches anything that's not a space, one or more times. I tried the script by putting a space before the URL and the PHP still processes the data with no error. A space before everything is fine, as the pattern will match the

RE: [PHP] eregi_replace() function in a script

2002-12-01 Thread John W. Holmes
For instance, let's say I put _absolutely nothing_ in the URL textbox and then hit submit - the PHP still processes _without_ an error. It says: Your submission -- -- has been received! I would've thought the eregi_replace() function would've validated an entry with no characters.

Re: [PHP] eregi_replace() function in a script

2002-12-01 Thread Anthony Ritter
Well, whether it causes an error not depends on your code. That's just the pattern you showed. It may not match anything, so nothing gets replaced with eregi_replace() and hence no active link is created, but it may not necessarily cause an error. Can you show me some of the code in context,

Re: [PHP] MySQL Error

2002-12-01 Thread Stephen
I did that and it didn't output anything... - Original Message - From: Brad Bonkoski [EMAIL PROTECTED] To: Stephen [EMAIL PROTECTED] Cc: PHP List [EMAIL PROTECTED] Sent: Sunday, December 01, 2002 2:55 PM Subject: Re: [PHP] MySQL Error Perhaps you should try and do some error checking

Re: [PHP] Date problem

2002-12-01 Thread Rosen
I want to get date from database, to increment ot decrement it with some days, to show the date and after thath if user confirm it to save it to database. Can you help me ? Thanks, Rosen John W. Holmes [EMAIL PROTECTED] wrote in message

[PHP] Re: PHP Trouble-Ticket-Systems?

2002-12-01 Thread Thomas Seifert
Sounds interesting. I used RT at work but it was a nightmare to install and since my machine is a pure PHP-Apache I don't want to install mod_perl-support as well. Let me know if you need help on some parts. Thomas On Sun, 1 Dec 2002 14:33:02 -0500 [EMAIL PROTECTED] (Jonathan Chum) wrote: I

[PHP] PHP Work Needed in Australia

2002-12-01 Thread Andrew McPherson
hello, I am looking for a PHP developer in Australia. I get occational contracts to do general web developement and need someone that can handle the work. Last month I contracted out about 150 hours. If you are interested please send me an e-mail and I will supply further details. Thanks,

Re: [PHP] Date problem

2002-12-01 Thread Justin French
on 02/12/02 9:59 AM, Rosen ([EMAIL PROTECTED]) wrote: I want to get date from database, to increment ot decrement it with some days, to show the date and after thath if user confirm it to save it to database. And in what format is the date currently stored? -MM-DD? MySQL timestamp? Unix

Re: [PHP] Date problem

2002-12-01 Thread Rosen
It's in -MM-YY Justin French [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... on 02/12/02 9:59 AM, Rosen ([EMAIL PROTECTED]) wrote: I want to get date from database, to increment ot decrement it with some days, to show the date and after thath if user

RE: [PHP] apache httpd-2.0.40-8 and scanning alternate extensions for php

2002-12-01 Thread Larry Brown
That's what I'm saying, there is absolutely no mention of php in httpd.conf. That line does not exist. It does in previous versions of RedHat / Apache. Is it possible that this is some kind of RedHat modification? Larry S. Brown Dimension Networks, Inc. (727) 723-8388 -Original Message-

RE: [PHP] apache httpd-2.0.40-8 and scanning alternate extensions for php

2002-12-01 Thread Larry Brown
Perhaps the new version doesn't need the AddType for the default extension of php because it worked without this declaration. However, the declaration works as I added it and restarted the server. It now works as I needed. I thank you for your help. I suppose I should have tried this before

RE: [PHP] apache httpd-2.0.40-8 and scanning alternate extensions for php

2002-12-01 Thread Peter Houchin
if its not there add it -Original Message- From: Larry Brown [mailto:[EMAIL PROTECTED]] Sent: Monday, 2 December 2002 10:31 AM To: PHP List; Evan Nemerson Subject: RE: [PHP] apache httpd-2.0.40-8 and scanning alternate extensions for php That's what I'm saying, there is

[PHP] includes globals

2002-12-01 Thread Cesar Aracena
Hi all, I'm making a site with a dynamic menu based on IF statements and DB queries, but have this little problem which I can't understand the reason. My programming method is based upon an application.php file which controls the hole site and paths, template files for the header footer and main

Re: [PHP] Function passed as argument to function

2002-12-01 Thread Jeffrey B. Ferland
For reference, see http://autocracy.homelinux.org/template.php and http://autocracy.homelinux.org/error.php Unless you have a good reason to do otherwise please post your code here. People would be less inclined to help if they have to go about clicking on links to see what your problem

RE: [PHP] Function passed as argument to function

2002-12-01 Thread John W. Holmes
[snip] 2) How did you conclude that? Did you check that list_writings(poetry)/list_writings($poetry) gives the correct result? IE echo list_writings(poetry)/list_writings($poetry) ? list_writings(poetry) simply spits out the output. 'echo list_writings(poetry)' was not designed as the

RE: [PHP] Date problem

2002-12-01 Thread John W. Holmes
I want to get date from database, to increment ot decrement it with some days, to show the date and after thath if user confirm it to save it to database. There are a ton of ways you can do it. You can select the date and it's inc/dec value in the same statement: SELECT datecol, datecol +

RE: [PHP] eregi_replace() function in a script

2002-12-01 Thread John W. Holmes
$Pattern = (http://)?([^[:space:]]+)([[:alnum:]\.,-_?/=]); $Replace = a href=\http://\\2\\3\; target=\_new\\\2\\3/a; $Array[URL] = eregi_replace($Pattern, $Replace, $Array[URL]); print (Your submission--$Array[URL]--has been received!BR\n); That does no checking or validation at all. It

Re: [PHP] eregi_replace() function in a script

2002-12-01 Thread Anthony Ritter
Holmes: That's just the pattern you showed. It may not match anything, so nothing gets replaced with eregi_replace() and hence no active link is created, but it may not necessarily cause an error. . Right. The pattern does not match anything in the input string of

Re: [PHP] Guestbook

2002-12-01 Thread Jeffrey B. Ferland
The quick solution, if you intend to continue the autoincrement field, is to number the entries manually when you're displaying them: Something along the lines of: $count = 0; while ($row(mysql_fetch_array($result_id))) { $count++; echo Entry $count; ... ... } The

[PHP] Disable refresh?

2002-12-01 Thread Larry Brown
Anyone know of a method of preventing a user from refreshing a page. I get multiple updates with the same information in my database... Larry S. Brown Dimension Networks, Inc. (727) 723-8388 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Method for displaying Downline

2002-12-01 Thread David T-G
Daren -- ...and then Daren Cotter said... % % I need to display an entire downline (info about all % members referred by another member). The query to ... % The output I need is something like: % % 7 %10 11 %14 16

RE: [PHP] Disable refresh?

2002-12-01 Thread Larry Brown
If not, is there a variable that provides information that a refresh occurred to load the page? Larry S. Brown Dimension Networks, Inc. (727) 723-8388 -Original Message- From: Larry Brown [mailto:[EMAIL PROTECTED]] Sent: Sunday, December 01, 2002 8:23 PM To: PHP List Subject: [PHP]

RE: [PHP] Disable refresh?

2002-12-01 Thread Martin Towell
no, no way to disable and no variable to say a refresh happened one way to get around it is to submit to the page that does the update, then get that page to do a header(location...) to another page. When the user refreshes, they'll only refresh the last page, and not the updating page. HTH

RE: [PHP] Disable refresh?

2002-12-01 Thread Larry Brown
Thanks guys this forum is going to get me in trouble. It is so convenient I keep asking questions too soon. After submitting the amendment to the original question I thought of the solution of setting a session variable and then clearing it before and after the submittal page. I'll work the

[PHP] RE: XTemplate

2002-12-01 Thread Oleg Krogius
PHP is a templating system already, don't reinvent the wheel and create a whole new scripting language (which basically smart is - it just requires php to work). Regards, Oleg -Original Message- From: Henry [mailto:[EMAIL PROTECTED]] Sent: Sunday, December 01, 2002 9:02 AM To: [EMAIL

[PHP] Passing arguments to the same script

2002-12-01 Thread Troy May
Hello, I'm sure this is easy, but I'm drawing a blank. I need to have links at the bottom of the page that passes arguments to the same script (itself) when it gets reloaded. How do we do this? I have the links like this now: a href=index.php?samples How do I determine what is passed? I

RE: [PHP] Passing arguments to the same script

2002-12-01 Thread John W. Holmes
I'm sure this is easy, but I'm drawing a blank. I need to have links at the bottom of the page that passes arguments to the same script (itself) when it gets reloaded. How do we do this? I have the links like this now: a href=index.php?samples How do I determine what is passed? I

RE: [PHP] Passing arguments to the same script

2002-12-01 Thread Troy May
Thanks for responding. I think I'm still doing something wrong. Take a peek: if(isset($_GET['questions'])) { echo Questions link content will go here; } elseif(isset($_GET['samples'])) { echo Samples link content will go here; }

Re: [PHP] Passing arguments to the same script

2002-12-01 Thread Kyle Gibson
Thanks for responding. I think I'm still doing something wrong. Take a peek: if(isset($_GET['questions'])) { echo Questions link content will go here; } elseif(isset($_GET['samples'])) { echo Samples link content will go here; } elseif(isset($_GET['rates'])) {

RE: [PHP] Passing arguments to the same script

2002-12-01 Thread Chris Wesley
On Sun, 1 Dec 2002, Troy May wrote: The only thing that EVER gets displayed is the final else. (Main content goes here.) What am I doing wrong? Once again, the links are in this format: a href=index.php?samples a href=index.php?samples=1 To get the desired results with the code you posted,

RE: [PHP] Passing arguments to the same script

2002-12-01 Thread John W. Holmes
What PHP version are you using? Try $HTTP_GET_VARS['sample'] if it's an older version. Also try index.php?sample=1, so that sample actually has a value (although the method I gave you worked on IIS). ---John Holmes... -Original Message- From: Troy May [mailto:[EMAIL PROTECTED]] Sent:

RE: [PHP] Passing arguments to the same script

2002-12-01 Thread Jonathan Sharp
I think you\'d want to use: if ( $_SERVER[\'QUERY_STRING\'] == \'samples\') { // code } otherwise if you use , set your links as: a href=\index.php?samples=1\ -js On Sun, 1 Dec 2002 22:38:54 -0500 Holmes wrote: I\'m sure this is easy, but I\'m drawing a blank. I need to have links

RE: [PHP] Passing arguments to the same script

2002-12-01 Thread Jonathan Sharp
I think you\'d want to use: if ( $_SERVER[\'QUERY_STRING\'] == \'samples\') { // code } otherwise if you use , set your links as: a href=\index.php?samples=1\ -js On Sun, 1 Dec 2002 22:38:54 -0500 Holmes wrote: I\'m sure this is easy, but I\'m drawing a blank. I need to have links

RE: [PHP] Passing arguments to the same script

2002-12-01 Thread Troy May
Not sure which version, it's my ISP. Adding =1 to the URL worked though. Thanks! -Original Message- From: John W. Holmes [mailto:[EMAIL PROTECTED]] Sent: Sunday, December 01, 2002 8:08 PM To: 'Troy May'; 'PHP List' Subject: RE: [PHP] Passing arguments to the same script What PHP

RE: [PHP] Passing arguments to the same script

2002-12-01 Thread Troy May
Thanks, I got it working by adding =1 -Original Message- From: Chris Wesley [mailto:[EMAIL PROTECTED]] Sent: Sunday, December 01, 2002 8:08 PM To: 'PHP List' Cc: Troy May Subject: RE: [PHP] Passing arguments to the same script On Sun, 1 Dec 2002, Troy May wrote: The only thing that

[PHP] header() and target page

2002-12-01 Thread Jami
I am just full of them this weekend. Is it possible to direct a header like a html link (i.e. target=_top) ? I have a page that is in a frame, and I want the new page that is called to break the frame and load in the entire frame. Thanks. Jami

RE: [PHP] header() and target page

2002-12-01 Thread John W. Holmes
I am just full of them this weekend. Is it possible to direct a header like a html link (i.e. target=_top) ? I have a page that is in a frame, and I want the new page that is called to break the frame and load in the entire frame. Nope. Use JavaScript. ---John Holmes... -- PHP General

[PHP] RV: includes globals

2002-12-01 Thread Cesar Aracena
Hi all, I'm making a site with a dynamic menu based on IF statements and DB queries, but have this little problem which I can't understand the reason. My programming method is based upon an application.php file which controls the hole site and paths, template files for the header footer and main

[PHP] Re: [PHP-INST] OS X and Curl Issues

2002-12-01 Thread Randall Perry
I've got curl 7.10 and am getting the same error on Mac OS 10.2.2 server. Here's my config: ./configure --with-apxs=/usr/sbin/apxs --with-pgsql --with-xml --with-openssl=/usr/local/ssl --with-pear --with-curl=/usr/lib/curl Here's curl: [systame:local/src/php-4.2.3] randy% /usr/bin/curl -V curl

[PHP] Re: [PHP-INST] OS X and Curl Issues

2002-12-01 Thread Weston Houghton
I found two main things that were hampering my install. 1. While I thought I had updated cURL, I believe I may have only upgraded the executable itself the first time, while leaving the libraries themselves at an older version. 2. OS X install cURL with a prefix of /usr, whereas the standard

[PHP] Re: [PHP-INST] OS X and Curl Issues

2002-12-01 Thread Randall Perry
Got it working. First I removed every curl binary and library I could find (had 3 sets, 1 from apple's installation, 1 from my compile, and 1 from a Fink compile I did). Then I configured curl to use Apple's paths, made, and installed: - cd curl-7.10 - ./configure --prefix=/usr - make - sudo

Re: [PHP] RV: includes globals

2002-12-01 Thread Tom Rogers
Hi, Monday, December 2, 2002, 4:06:54 PM, you wrote: CA Hi all, CA I'm making a site with a dynamic menu based on IF statements and DB CA queries, but have this little problem which I can't understand the CA reason. My programming method is based upon an application.php file CA which controls

[PHP] Why all the returned emails from this list?

2002-12-01 Thread Troy May
I'm getting nailed with a bunch of returned emails like this: [EMAIL PROTECTED] - no such user here. There is no user by that name at this server. : Message contains [1] file attachments What's going on? Each one has a different address, but the terminalgmb.ru part is the same for each one.

[PHP] Dynamically Adding methods to an object

2002-12-01 Thread Brian Takita
Hello, I want to add a method to an existing object. Any ideas how to? I tried using foreach($this-modules-$module_name-methods as $mod_method = $method_name) { $function = '$args = implode(,, func_get_args());'; $function .= 'return

[PHP] some data output formatting and grouping question...

2002-12-01 Thread Victor
I just have a fucking mental block; I cannot at all conceive the necessary syntax to or even the theoretical algorithm that I need, to do the following: Consider the following table: U | X | Y --|---|-- me|001|0a me|002|0a me|003|0a me|002|0b me|003|0b me|004|0b ..|...|.. then the code says: