[PHP] phpeclipse debugging setup

2008-05-30 Thread PJ
? Are they meant to be breakpoints? Why does the PHPbrowser (internal) not work? Why does the preferences page not show PHP Web developing? Why is only MySQL included and not postgresql in the setup? Any suggestions, explanations, instructions, sources of information would be appreciated. PJ

Re: [PHP] phpeclipse debugging setup

2008-05-31 Thread PJ
Eric Butera wrote: On Fri, May 30, 2008 at 11:59 AM, PJ [EMAIL PROTECTED] wrote: Running FreeBSD 7.0, Eclipse SDK 3.3.2, java 1.6.0_03-p4, apache 2.2.8, php5.2.6, postgresql 8.3.1. I found that configuring Xdebug just does not work the way all the manuals, instructions and hints suggest

[PHP] no array passed error

2008-06-03 Thread PJ
I don't know if this is the right list, it seems php and postgresql are rather interdependent in the webside I am debugging :(, but here goes: I'm getting this error: pg_execute() [a href='function.pg-execute'function.pg-execute/a]: No array passedE_WARNING for this line of code: if(

Re: [PHP] PHP code will not work

2008-06-13 Thread PJ
Joseph Subida wrote: Daniel Brown wrote: On Wed, Jun 11, 2008 at 11:51 PM, Joseph Subida [EMAIL PROTECTED] wrote: Hi. I am new to PHP. I found a tutorial that said to copy and paste the code into a .php document and open it in my browser: ?php echo $_SERVER['HTTP_USER_AGENT']; ? I'm

[PHP] Problem with ftp_rmdir

2006-05-02 Thread PJ
Hello everybody, I'm using function ftp_rmdir to create some aplication and for testing I've used following sample from php.net if (ftp_rmdir($conn_id, $dir)) { echo Successfully deleted $dir\n; } else { echo There was a problem while deleting $dir\n; } Command really removed specified

[PHP] Problems with imap_open()

2006-02-14 Thread PJ
Hello everybody, I have problem with imap_open(). I've tried google - so I know, that many people have problem with this function - but I think that my problem is a little bit different or I haven't found any working answer :o( So I'm tring this forum... Please help me, if you can. My

Re: [PHP] Problems with imap_open()

2006-02-14 Thread PJ
Richard Lynch napsal(a): On Tue, February 14, 2006 2:13 am, PJ wrote: Hello everybody, I have problem with imap_open(). I've tried google - so I know, that many people have problem with this function - but I think that my problem is a little bit different or I haven't found any working answer

[PHP] T1 Lib

2005-01-11 Thread PJ
Hello everybody! I have some connection problems when I am searching topics in ThunderB., so I am sorry if my question is somewhere answered! Does anybody know, where to download T1Lib for PHP4 - windows version? After half hour googling I have feeling that it doesn't exist... :o( So, I would

[PHP] inset data to multiple tables

2009-02-16 Thread PJ
I am trying to find a solution to enter data from a web page to several tables in the same database; actually, I have 9 tables bus several are basically id fields for foreign keys. So far, I have found: use mysql_insert_id() - the examples and directions are incomprehensible (to me, anyway) use

Re: [PHP] Re: inset data to multiple tables

2009-02-16 Thread PJ
Hell, I feel about as dumb as can be. I just goth things straight and it seems to work just fine... Here is where my problem was... $sql1 = INSERT INTO books ( title, sub_title, descr, comment, bk_cover, publish_date, ISBN, language ) VALUES

Re: [PHP] Full versus relative URLs

2009-02-17 Thread PJ
Dotan Cohen wrote: So put it all in one place: ?php include path.inc; printa href=\$path/dir/file.php\; ? Full URLs don't break when users save the pages to disk. That would be fine if the pages weren't being crafted in Dreamweaver, where inserting links like that is a pain. For that

Re: [PHP] Full versus relative URLs

2009-02-17 Thread PJ
Michael A. Peters wrote: PJ wrote: I hope I'm not out of place here, but I have a problem that seems to be related. I am using some include statements for page headers with the pages in various directories on the site. The problem is this... if I put relative statements in the page

Re: [PHP] Full versus relative URLs

2009-02-17 Thread PJ
Michael A. Peters wrote: PJ wrote: Michael A. Peters wrote: PJ wrote: I hope I'm not out of place here, but I have a problem that seems to be related. I am using some include statements for page headers with the pages in various directories on the site. The problem is this... if I put

Re: [PHP] Full versus relative URLs

2009-02-17 Thread PJ
Stuart wrote: 2009/2/17 PJ af.gour...@videotron.ca: Dotan Cohen wrote: So put it all in one place: ?php include path.inc; printa href=\$path/dir/file.php\; ? Full URLs don't break when users save the pages to disk. That would be fine if the pages weren't being

Re: [PHP] Full versus relative URLs

2009-02-18 Thread PJ
Stuart wrote: 2009/2/17 PJ af.gour...@videotron.ca: Stuart wrote: 2009/2/17 PJ af.gour...@videotron.ca: Dotan Cohen wrote: So put it all in one place: ?php include path.inc; printa href=\$path/dir/file.php\; ? Full URLs don't break when users save

[PHP] escape your variables

2009-02-18 Thread PJ
To focus on mysql_real_escape_string, I am recapping... questions below QUOTE:== Instead of doing this (for an imaginary table): $sql = insert into table1(field1, field2) values ('$value1', '$value2'); do $sql = insert into table1(field1, field2) values (' .

Re: [PHP] Full versus relative URLs

2009-02-18 Thread PJ
Stuart wrote: ?php include dirname(__FILE__)./../header.php; ? This generates a Fatal error: Cal to undefined function dirname() I must be really dense... What I don't understand in the above is this - dirname refers to what directory? -- the directory of the file that is including?

Re: [PHP] Full versus relative URLs

2009-02-18 Thread PJ
Stuart wrote: 2009/2/18 PJ af.gour...@videotron.ca: Stuart wrote: ?php include dirname(__FILE__)./../header.php; ? This generates a Fatal error: Cal to undefined function dirname() The dirname function is present in both PHP 4 and 5 and does not rely

Re: [PHP] Full versus relative URLs

2009-02-18 Thread PJ
Bastien Koert wrote: On Wed, Feb 18, 2009 at 12:05 PM, PJ af.gour...@videotron.ca wrote: Stuart wrote: 2009/2/18 PJ af.gour...@videotron.ca: Stuart wrote: ?php include dirname(__FILE__)./../header.php; ? This generates a Fatal error: Cal to undefined function dirname

Re: [PHP] Full versus relative URLs

2009-02-18 Thread PJ
Paul M Foster wrote: On Wed, Feb 18, 2009 at 12:05:21PM -0500, PJ wrote: Stuart wrote: 2009/2/18 PJ af.gour...@videotron.ca: Stuart wrote: ?php include dirname(__FILE__)./../header.php; ? snip What confused me here is that often, in examples, there are all sorts of references

[PHP] multiple choice dropdown box puzzle

2009-02-23 Thread PJ
I think this is a tough one... and way above my head: PLEASE READ ALL OF THE ABOVE TO UNDERSTAND WHAT I AM TRYING TO DO. Having a bit of a rough time figuring out how to formulate php-mysql to insert data into fields using a multiple dropdown box in a form. to post I am using the following:

[PHP] Re: multiple choice dropdown box puzzle

2009-02-23 Thread PJ
); That example does not sanitize the data before inserting. Brent On Mon, Feb 23, 2009 at 10:25 AM, PJ af.gour...@videotron.ca wrote: I think this is a tough one... and way above my head: PLEASE READ ALL OF THE ABOVE TO UNDERSTAND WHAT I AM TRYING TO DO. Having a bit of a rough time figuring out how

[PHP] Re: multiple choice dropdown box puzzle

2009-02-23 Thread PJ
Brent Baisley wrote: It's actually a very simple solution, and you should do it all in a single INSERT. Putting INSERTs in a loop will kill your performance when you try to scale. $sql4 = 'INSERT INTO test (example) VALUES (' . implode('),(', $_POST[categoriesIN]) . ')'; $result4 =

[PHP] Re: how to deal with multiple authors for one book

2009-02-24 Thread PJ
Reinhardt Christiansen wrote: From: PJ af.gour...@videotron.ca To: MySql my...@lists.mysql.com Subject: how to deal with multiple authors for one book Date: Mon, 16 Feb 2009 17:20:54 -0500 In my db there are a number of books with several authors; so, I am wondering how to set up a table

Re: [PHP] Re: multiple choice dropdown box puzzle

2009-02-24 Thread PJ
Bob McConnell wrote: From: PJ Here's my test page and, so far, nothing works... Please expound on nothing works What do you see in the browser? What do you see in the server logs? It's not in the browser that I look, rather in the db: nothing is INSERTed. I have confirmed

[PHP] non-auto increment question

2009-02-25 Thread PJ
I want to insert a new table entry 1 number higher than the highest in the field (id). I cannot use auto-increment. And I want to show the value of the field to be added in an input field on the web page: if (isset($_REQUEST[AddNewBooksRequest])) { $SQL = SELECT MAX(id) FROM book;

Re: [PHP] RE: non-auto increment question

2009-02-25 Thread PJ
the same generated id. Hope that helps. From: PJ [mailto:af.gour...@videotron.ca] Sent: Wed 2/25/2009 2:01 PM To: MySql; php-general@lists.php.net Subject: non-auto increment question I want to insert a new table entry 1 number higher than the highest

[PHP] What in Hades?

2009-02-26 Thread PJ
Something is rotten here. Twist it any way you like and it just does not work. I am trying to figure out the working of SELECT LAST_INSERT_ID() and cannot get beyond the first $sql - But it works fine from command-line! ? include (lib/db1.php);// Connect to database $sql1 = INSERT INTO test

Re: [PHP] RE: non-auto increment question

2009-02-26 Thread PJ
Jerry Schwartz wrote: Being rather new to all this, I understood from the MySql manual that the auto_increment is to b e used immediately after an insertion not intermittently. My application is for administrators (the site owner designates) to update the database from and administration

Re: [PHP] What in Hades?

2009-02-26 Thread PJ
Richard Whitney wrote: On Thu, Feb 26, 2009 at 9:14 AM, PJ af.gour...@videotron.ca mailto:af.gour...@videotron.ca wrote: Something is rotten here. Twist it any way you like and it just does not work. I am trying to figure out the working of SELECT LAST_INSERT_ID

Re: [PHP] What in Hades?

2009-02-26 Thread PJ
Ashley Sheridan wrote: On Thu, 2009-02-26 at 11:14 -0500, PJ wrote: Something is rotten here. Twist it any way you like and it just does not work. I am trying to figure out the working of SELECT LAST_INSERT_ID() and cannot get beyond the first $sql - But it works fine from command-line

Re: [PHP] What in Hades?

2009-02-26 Thread PJ
-- 2009/2/26 PJ af.gour...@videotron.ca mailto:af.gour...@videotron.ca Something is rotten here. Twist it any way you like and it just does not work. I am trying to figure out the working of SELECT LAST_INSERT_ID() and cannot get beyond

[PHP] catch the error

2009-02-26 Thread PJ
What is wrond with this file? same identical insert works from console but not from this file :-( html head titleUntitled/title /head body ? //include (lib/db1.php);// Connect to database mysql_connect('biggie', 'user', 'password', 'test'); $sql1 = INSERT INTO example (name, age) VALUES

[PHP] Re: catch the error

2009-02-26 Thread PJ
? :-) Hi PJ, Could it be that you have //include (lib/db1.php); commented out? Try uncommenting that line and see what happens. The error message will always print because the query is never executing properly if you have the db connections file commented out. On Thu, Feb 26, 2009 at 12:28

Re: [PHP] catch the error

2009-02-26 Thread PJ
Ashley Sheridan wrote: On Thu, 2009-02-26 at 12:28 -0500, PJ wrote: What is wrond with this file? same identical insert works from console but not from this file :-( html head titleUntitled/title /head body ? //include (lib/db1.php); // Connect to database mysql_connect('biggie

[PHP] Re: catch the error

2009-02-26 Thread PJ
,$db); if (!$result1) { echo(PError performing 1st query: . mysql_error() . /P); exit(); } ? On Thu, Feb 26, 2009 at 11:46 AM, PJ af.gour...@videotron.ca mailto:af.gour...@videotron.ca wrote: It is commented out because I am using mysql_connect I don't think it would

[PHP] Re: catch the error

2009-02-26 Thread PJ
Ricardo Dias Marques wrote: Hi PJ, On Thu, Feb 26, 2009 at 17:28, PJ af.gour...@videotron.ca wrote: What is wrond with this file? same identical insert works from console but not from this file :-( [snip] ? //include (lib/db1.php);// Connect to database mysql_connect('biggie

[PHP] Re: catch the error

2009-02-26 Thread PJ
'); $result1 = mysql_query($sql1,$db); if (!$result1) { echo(PError performing 1st query: . mysql_error() . /P); exit(); } ? That should fix the problem. On Thu, Feb 26, 2009 at 12:46 PM, PJ af.gour...@videotron.ca wrote: It is commented out because I am using mysql_connect I

[PHP] Re: catch the error

2009-02-26 Thread PJ
Jerry Schwartz wrote: -Original Message- From: PJ [mailto:af.gour...@videotron.ca] Sent: Thursday, February 26, 2009 12:28 PM To: php-general@lists.php.net; MySql Subject: catch the error What is wrond with this file? same identical insert works from console but not from

Re: [PHP] Re: catch the error

2009-02-26 Thread PJ
Ashley Sheridan wrote: On Thu, 2009-02-26 at 13:34 -0500, Darryle Steplight wrote: Hi PJ, $db_host = 'biggie'; $db_user = 'root'; $db_pass = 'gu...@#$'; $db_name = 'biblane'; Everyone here is trying to help you and that's cool, but EVERYONE on this list may not be so nice

Re: [PHP] Re: catch the error

2009-02-26 Thread PJ
('Arnie Shwartz', '75'); $result1 = mysql_query($sql1,$db); if (!$result1) { echo(PError performing 3st query: . mysql_error() . /P); } echo $sql1; echo br /; echo $db_select; exit(); ? This works fine either as is or using the include... :-) 9el wrote: But the question is PJ, have you got

Re: [PHP] RE: non-auto increment question

2009-02-26 Thread PJ
Ashley Sheridan wrote: On Thu, 2009-02-26 at 13:44 -0500, Jerry Schwartz wrote: Here's how I mostly do it (albeit simplified): $query = INSERT INTO `sometable`(`title`,`content`) VALUES('$title','$content'); $result = mysql_query($query); $autoId = mysql_insert_id($result); $query =

Re: [PHP] Re: catch the error

2009-02-26 Thread PJ
Ashley Sheridan wrote: On Thu, 2009-02-26 at 13:56 -0500, PJ wrote: Ashley Sheridan wrote: On Thu, 2009-02-26 at 13:34 -0500, Darryle Steplight wrote: Hi PJ, $db_host = 'biggie'; $db_user = 'root'; $db_pass = 'gu...@#$'; $db_name = 'biblane'; Everyone here

[PHP] verify text in field

2009-02-26 Thread PJ
Is there a shorter way of determining if a field contains text? This works but I wonder if I can K.I.S.S. it? I really only need to know if there is or is not a field containing the text specified. I don't need to see it. ?php // Request the text $text = Joe of Egypt; $sql = SELECT title

Re: [PHP] Re: catch the error

2009-02-26 Thread PJ
at) PJ, to turn on E_ALL error reporting in any script he has problems with. #1 you'll figure out the problem because the errors will tell you exactly what the problem is undefined variable db_connect, etc... #2 if you can't figure it out, someone here can easily if you give the errors

Re: [PHP] Re: catch the error

2009-02-26 Thread PJ
Ashley Sheridan wrote: On Thu, 2009-02-26 at 14:15 -0500, PJ wrote: Ashley Sheridan wrote: On Thu, 2009-02-26 at 13:56 -0500, PJ wrote: Ashley Sheridan wrote: On Thu, 2009-02-26 at 13:34 -0500, Darryle Steplight wrote: Hi PJ

Re: [PHP] verify text in field

2009-02-26 Thread PJ
people happy with my design but I use it and it works very well -Original Message- From: PJ [mailto:af.gour...@videotron.ca] Sent: Thursday, February 26, 2009 5:07 PM To: php-general@lists.php.net Subject: [PHP] verify text in field Is there a shorter way of determining if a field

[PHP] multiple categories

2009-03-02 Thread PJ
I have a list of some 60 categories for a book database and am wondering what would be the best approach for inserting and selecting the data. My choices are to (1.)simply use one field in a books table and enter the categories for each book separated by a comma (or whatever) as a text field and

Re: [PHP] multiple categories

2009-03-02 Thread PJ
Andrew Ballard wrote: On Mon, Mar 2, 2009 at 11:50 AM, PJ af.gour...@videotron.ca wrote: I have a list of some 60 categories for a book database and am wondering what would be the best approach for inserting and selecting the data. My choices are to (1.)simply use one field in a books

[PHP] retrieve multiple select

2009-03-02 Thread PJ
I'm sure this has been hashed over and over on the web, only I can't find anything that makes sense or the explanations given have been erroneous. This is what I am trying: select name=($categoriesIN).'[]' multiple OPTIONChoose Categories.../option OPTION VALUE=1History OPTION

Re: [PHP] retrieve multiple select

2009-03-02 Thread PJ
PJ wrote: I'm sure this has been hashed over and over on the web, only I can't find anything that makes sense or the explanations given have been erroneous. This is what I am trying: select name=($categoriesIN).'[]' multiple OPTIONChoose Categories.../option OPTION VALUE

Re: [PHP] Re: retrieve multiple select

2009-03-02 Thread PJ
Shawn McKenzie wrote: PJ wrote: I'm sure this has been hashed over and over on the web, only I can't find anything that makes sense or the explanations given have been erroneous. This is what I am trying: select name=($categoriesIN).'[]' multiple OPTIONChoose Categories.../option

Re: [PHP] retrieve multiple select

2009-03-02 Thread PJ
Michael A. Peters wrote: PJ wrote: I'm sure this has been hashed over and over on the web, only I can't find anything that makes sense or the explanations given have been erroneous. This is what I am trying: select name=($categoriesIN).'[]' multiple OPTIONChoose Categories.../option

Re: [PHP] retrieve multiple select

2009-03-02 Thread PJ
Shawn McKenzie wrote: PJ wrote: PJ wrote: I'm sure this has been hashed over and over on the web, only I can't find anything that makes sense or the explanations given have been erroneous. This is what I am trying: select name=($categoriesIN).'[]' multiple OPTIONChoose Categories.../option

Re: [PHP] multiple categories

2009-03-02 Thread PJ
Paul M Foster wrote: On Mon, Mar 02, 2009 at 11:50:15AM -0500, PJ wrote: I have a list of some 60 categories for a book database and am wondering what would be the best approach for inserting and selecting the data. My choices are to (1.)simply use one field in a books table and enter

Re: [PHP] retrieve multiple select

2009-03-02 Thread PJ
Michael A. Peters wrote: PJ wrote: Well, I think 60+ checkboxes get kind of garbagy I bet it is easier to select the fields you want from 4 columns of 15 checkboxes than from a big long list of 60 in a select. But you might be right. I don't design for a living. Neither do I; it's rather

Re: [PHP] retrieve multiple select

2009-03-02 Thread PJ
Shawn McKenzie wrote: PJ wrote: Shawn McKenzie wrote: PJ wrote: PJ wrote: I'm sure this has been hashed over and over on the web, only I can't find anything that makes sense or the explanations given have been erroneous. This is what I am trying: select name

[PHP] whoami explanation

2009-03-03 Thread PJ
This really needs some explanation I found this on the web: ?php echo `whoami`; ? with it there was the comment the direction of those single-quotes matters (WHY ?) and it works But this (_*FROM THE PHP MANUAL***_ * - exec()* executes the given /command/ ) does not, COPIED AND PASTED: |?php

Re: [PHP] whoami explanation

2009-03-03 Thread PJ
Per Jessen wrote: PJ wrote: This really needs some explanation I found this on the web: ?php echo `whoami`; ? with it there was the comment the direction of those single-quotes matters (WHY ?) and it works GIYF - look up back quotes. But this (_*FROM THE PHP MANUAL

Re: [PHP] whoami explanation

2009-03-03 Thread PJ
Per Jessen wrote: PJ wrote: This really needs some explanation I found this on the web: ?php echo `whoami`; ? with it there was the comment the direction of those single-quotes matters (WHY ?) and it works GIYF - look up back quotes. But this (_*FROM THE PHP MANUAL

Re: [PHP] whoami explanation

2009-03-03 Thread PJ
Per Jessen wrote: PJ wrote: This really needs some explanation I found this on the web: ?php echo `whoami`; ? with it there was the comment the direction of those single-quotes matters (WHY ?) and it works GIYF - look up back quotes. But this (_*FROM THE PHP MANUAL

Re: [PHP] whoami explanation

2009-03-03 Thread PJ
Daniel Brown wrote: On Tue, Mar 3, 2009 at 10:57, PJ af.gour...@videotron.ca wrote: forgot to add: What's the difference between back ticks or quotes and regular single quotes? How does one enter back quotes from the keyboard? Welcome to the Internet! The first place you

Re: [PHP] whoami explanation

2009-03-03 Thread PJ
Per Jessen wrote: PJ wrote: forgot to add: What's the difference between back ticks or quotes and regular single quotes? text in back ticks is executed via a shell, text in single quotes isn't. Ok, but how does this relate to a command passed from a php Web page? I don't

Re: [PHP] Re: whoami explanation

2009-03-03 Thread PJ
Shawn McKenzie wrote: PJ wrote: This really needs some explanation I found this on the web: ?php echo `whoami`; ? with it there was the comment the direction of those single-quotes matters (WHY ?) and it works But this (_*FROM THE PHP MANUAL***_ * - exec()* executes the given

Re: [PHP] whoami explanation

2009-03-03 Thread PJ
Daniel Brown wrote: On Tue, Mar 3, 2009 at 11:22, PJ af.gour...@videotron.ca wrote: Ok, but how does this relate to a command passed from a php Web page? I don't understand the processus. I use bash on my FreeBSD and have not needed a back quote yet that I can recall... and on WinXP

Re: [PHP] Re: whoami explanation

2009-03-03 Thread PJ
Daniel Brown wrote: On Tue, Mar 3, 2009 at 11:27, PJ af.gour...@videotron.ca wrote: What is not clear to me is why would I need to use a shell? What kind of situations call for it's use? On what kind of programming did you spend those years? Not really programming, more like

Re: [PHP] Re: whoami explanation

2009-03-03 Thread PJ
Bob McConnell wrote: From: PJ What is not clear to me is why would I need to use a shell? What kind of situations call for it's use? It's a matter of expectations. I am still trying to figure out why anyone would want a GUI on any version of Unix or Linux. They just slow

Re: [PHP] whoami explanation

2009-03-03 Thread PJ
Daniel Brown wrote: On Tue, Mar 3, 2009 at 11:41, PJ af.gour...@videotron.ca wrote: I appreciate the input and I take the chastizing with a ton of salt. It's all in good fun and being the new guy, it's at your expense. ;-P Having thick skin means you'll stick around

Re: [PHP] Re: whoami explanation

2009-03-03 Thread PJ
Daniel Brown wrote: On Tue, Mar 3, 2009 at 11:48, PJ af.gour...@videotron.ca wrote: [snip!] Now I'm trying to modify my daughter's ptahhotep.com to use MySql. It's a learning experience. Through the years I've probably sounded like a broken record or like I'm paid

Re: [PHP] whoami explanation

2009-03-03 Thread PJ
Daniel Brown wrote: On Tue, Mar 3, 2009 at 11:59, PJ af.gour...@videotron.ca wrote: :-* Umm thanks? (You do know that's the emoticon to symbolize kissing, right?) Let's not get too personnal here... it was meant to blow a kiss of appreciation to all... ;-) I may

Re: [PHP] whoami explanation

2009-03-03 Thread PJ
Boyd, Todd M. wrote: -Original Message- From: Ashley Sheridan [mailto:a...@ashleysheridan.co.uk] Sent: Tuesday, March 03, 2009 2:07 PM To: PJ Cc: Daniel Brown; Per Jessen; php-general@lists.php.net Subject: Re: [PHP] whoami explanation On Tue, 2009-03-03 at 11:16 -0500, PJ wrote

Re: [PHP] whoami explanation

2009-03-03 Thread PJ
Michael A. Peters wrote: PJ wrote: Gee, thanks. So, when was I supposed to have used this alias? Hell, I can live with my ignorance. What's a POSIX system and why is it a POSIX - a language, I think I heard cd ~ brings you to your home directory. cd ~/stuff brings you

Re: [PHP] whoami explanation

2009-03-03 Thread PJ
Daniel Brown wrote: On Tue, Mar 3, 2009 at 18:56, PJ af.gour...@videotron.ca wrote: But I'm sorry I missed the fun earlier about the American foibles... unfortunately that should go on some other list and I wish I knew which one - one that had some smarts to it (like this one) and I'd like

Re: [PHP] whoami explanation

2009-03-04 Thread PJ
Daniel Brown wrote: [Inhales] On Wed, Mar 4, 2009 at 01:01, PJ af.gour...@videotron.ca wrote: Ok. You asked for it... I have to rant a bit get this off my chest as it has been bugging me for a while and this is not directed at anyone in particular. I'm noting

Re: [PHP] whoami explanation

2009-03-04 Thread PJ
Daniel Brown wrote: On Wed, Mar 4, 2009 at 10:42, PJ af.gour...@videotron.ca wrote: Right on. Good comments. No offense taken and none intended. I am enoying the list and will continue to participate, if i may. I have learned a great deal already and really do appreciate the help

Re: [PHP] whoami explanation

2009-03-04 Thread PJ
to     conclusions without proper empirical research.   Considering I *gave* PJ the search term to use at input, I'll consider my research to be done, complete and accurate, to the best of my knowledge and the collective knowledge of the community, as it's publicly

Re: [PHP] whoami explanation

2009-03-04 Thread PJ
Shawn McKenzie wrote: PJ wrote: Daniel Brown wrote: On Wed, Mar 4, 2009 at 10:42, PJ af.gour...@videotron.ca wrote: Right on. Good comments. No offense taken and none intended. I am enoying the list and will continue to participate, if i may. I have learned a great

Re: [PHP] whoami explanation

2009-03-04 Thread PJ
Robert Cummings wrote: On Wed, 2009-03-04 at 16:16 -0500, PJ wrote: Shawn McKenzie wrote: PJ wrote: Daniel Brown wrote: On Wed, Mar 4, 2009 at 10:42, PJ af.gour...@videotron.ca wrote: Right on. Good comments. No offense taken

Re: [PHP] whoami explanation

2009-03-04 Thread PJ
Shawn McKenzie wrote: PJ wrote: Shawn McKenzie wrote: PJ wrote: Daniel Brown wrote: On Wed, Mar 4, 2009 at 10:42, PJ af.gour...@videotron.ca wrote: Right on. Good comments. No offense taken and none intended. I am enoying

Re: [PHP] whoami explanation

2009-03-04 Thread PJ
Ashley Sheridan wrote: On Wed, 2009-03-04 at 15:48 -0600, Shawn McKenzie wrote: PJ wrote: Shawn McKenzie wrote: PJ wrote: Daniel Brown wrote: On Wed, Mar 4, 2009 at 10:42, PJ af.gour...@videotron.ca wrote: Right

Re: [PHP] whoami explanation

2009-03-04 Thread PJ
Paul M Foster wrote: On Wed, Mar 04, 2009 at 04:16:40PM -0500, PJ wrote: Shawn McKenzie wrote: PJ wrote: Daniel Brown wrote: On Wed, Mar 4, 2009 at 10:42, PJ af.gour...@videotron.ca wrote: snip Ooooh, boy now this is really serious... :o

Re: [PHP] whoami explanation

2009-03-04 Thread PJ
Robert Cummings wrote: On Wed, 2009-03-04 at 15:48 -0600, Shawn McKenzie wrote: Whatever you do, please, please, please, for the love of all that is holy, please, do not vilify potatoes! ...or the Irish :-) Potatoes are best served sliced into sticks, pan-fried, covered in cheese

[PHP] if elseif elseif elseif....

2009-03-04 Thread PJ
This is probably a mysql question, but their list is rather dull - I think they don't appreciate my humor. Beside this list is fun ... and informative. Anyway, I can't figure this out. I am trying to verify inputs on a form and even if I have all the required fields right, I still get the error

Re: [PHP] whoami explanation

2009-03-04 Thread PJ
Robert Cummings wrote: On Wed, 2009-03-04 at 17:43 -0500, PJ wrote: Robert Cummings wrote: On Wed, 2009-03-04 at 15:48 -0600, Shawn McKenzie wrote: Whatever you do, please, please, please, for the love of all that is holy, please, do not vilify potatoes! ...or the Irish

Re: [PHP] whoami explanation

2009-03-04 Thread PJ
Ashley Sheridan wrote: On Wed, 2009-03-04 at 17:46 -0500, Robert Cummings wrote: On Wed, 2009-03-04 at 21:55 +, Ashley Sheridan wrote: Whilst we're on the subject, what about cows, pigs and sheep, which are the biggest contributors to global warming through their, erm, gases?

Re: [PHP] if elseif elseif elseif....

2009-03-04 Thread PJ
Daniel Brown wrote: On Wed, Mar 4, 2009 at 17:51, PJ af.gour...@videotron.ca wrote: elseif ($obligatoryFieldNotPresent = 1) { $obligatoryFieldNotPresent = 0; } Are you certain you only wanted a single equal operator in the last elseif() condition? Further

Re: [PHP] whoami explanation

2009-03-04 Thread PJ
Ashley Sheridan wrote: On Wed, 2009-03-04 at 17:40 -0500, PJ wrote: Paul M Foster wrote: On Wed, Mar 04, 2009 at 04:16:40PM -0500, PJ wrote: Shawn McKenzie wrote: PJ wrote: Daniel Brown wrote: On Wed, Mar 4

Re: [PHP] if elseif elseif elseif....

2009-03-04 Thread PJ
PJ wrote: Daniel Brown wrote: On Wed, Mar 4, 2009 at 17:51, PJ af.gour...@videotron.ca wrote: elseif ($obligatoryFieldNotPresent = 1) { $obligatoryFieldNotPresent = 0; } Are you certain you only wanted a single equal operator in the last

Re: [PHP] escape your variables

2009-03-04 Thread PJ
to the . database server at this time./P ); exit(); } // Select the database if (! mysql_select_db(biblane) ) { echo( PUnable to locate the biblane . database at this time./P ); exit(); } ? Eric Butera wrote: On Wed, Feb 18, 2009 at 8:34 AM, PJ af.gour

Re: [PHP] whoami explanation

2009-03-04 Thread PJ
Shawn McKenzie wrote: Robert Cummings wrote: On Wed, 2009-03-04 at 15:48 -0600, Shawn McKenzie wrote: Whatever you do, please, please, please, for the love of all that is holy, please, do not vilify potatoes! ...or the Irish :-) Potatoes are best served sliced into sticks,

Re: [PHP] Re: if elseif elseif elseif....

2009-03-05 Thread PJ
Davi Ramos wrote: I tought you forgot to initializae the $obligatoryFieldNotPresent variable, as PHP create variables when they are initialized, the $obligatoryFieldNotPresent variable is created inside the if. $obligatoryFieldNotPresent = 0; if (strlen($_POST[titleIN]) == 0 ) {

Re: [PHP] whoami explanation

2009-03-05 Thread PJ
Shawn McKenzie wrote: Shawn McKenzie wrote: PJ wrote: Shawn McKenzie wrote: Robert Cummings wrote: On Wed, 2009-03-04 at 15:48 -0600, Shawn McKenzie wrote: Whatever you do, please, please, please, for the love of all that is holy, please, do

[PHP] concat woes

2009-03-05 Thread PJ
Here we go again! I'm trying to do some form entry verification and am trying to figure out how to verify if there are 4 fields entered: f_nameIN, l_nameIN, f_name2IN, l_name2IN Verifying for each is ok, but somewhat tortured and long. I thought of using CONCAT_WS but it doesn't seem to listen to

[PHP] verify problem

2009-03-05 Thread PJ
And again, this works: if (strlen($_POST[first_nameIN]) == 0 ) { $obligatoryFieldNotPresent = 1; ... this does not: if (strlen($_POST[first_nameIN]) 0 ) (strlen($_POST[last_nameIN]) 0 ) { echo $first_nameIN, , $last_nameIN); else (echo error;)} But, $first_nameIn and

Re: [PHP] concat woes

2009-03-05 Thread PJ
haliphax wrote: On Thu, Mar 5, 2009 at 4:34 PM, PJ af.gour...@videotron.ca wrote: Here we go again! I'm trying to do some form entry verification and am trying to figure out how to verify if there are 4 fields entered: f_nameIN, l_nameIN, f_name2IN, l_name2IN Verifying for each is ok

Re: [PHP] verify problem

2009-03-05 Thread PJ
Chris wrote: PJ wrote: And again, this works: if (strlen($_POST[first_nameIN]) == 0 ) { $obligatoryFieldNotPresent = 1; ... this does not: if (strlen($_POST[first_nameIN]) 0 ) (strlen($_POST[last_nameIN]) 0 ) { echo $first_nameIN, , $last_nameIN); else (echo error

Re: [PHP] verify problem

2009-03-05 Thread PJ
Nathan Rixham wrote: Chris wrote: PJ wrote: And again, this works: if (strlen($_POST[first_nameIN]) == 0 ) { $obligatoryFieldNotPresent = 1; ... this does not: if (strlen($_POST[first_nameIN]) 0 ) (strlen($_POST[last_nameIN]) 0 ) { echo $first_nameIN, , $last_nameIN

Re: [PHP] verify problem

2009-03-05 Thread PJ
Chris wrote: Are both first_nameIN AND last_nameIN longer than 0 chars? var_dump($_POST['first_nameIN']); var_dump($_POST['last_nameIN']); maybe you only filled in first_name or last_name but not both. Well, echo $first_nameIN, , $last_nameIN; Prints out the whole name - without the if

[PHP] include question

2009-03-06 Thread PJ
good morning all, How can I include src and href in include files that will refer the right paths from files in different hierarchies(directory tree levels)? Example: include dirname(_FILE_)./../lib/header1.php; ? This does not work: snippetysnip... LINK href=dirname(_FILE_).'/../lib/index.css'

Re: [PHP] include question

2009-03-06 Thread PJ
Daniel Brown wrote: On Fri, Mar 6, 2009 at 08:53, Stuart stut...@gmail.com wrote: 1.) We use regular open tags to be compatible with all stock PHP configurations. 2.) We echo out the response from dirname() so that it's output to the HTML source. 3.) We use dirname()

  1   2   3   4   >