[PHP] advice on setting up new site

2009-11-11 Thread PJ
and payment... etc. 2. I would appreciate some suggestions about Unix programs that could be applicable to meet our needs. I look forward to hearing from from you :-) Questions are welcome ... so are investors ;-) PJ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

Re: [PHP] input form save and display conflict

2009-10-27 Thread PJ
Ashley Sheridan wrote: On Thu, 2009-10-22 at 21:32 -0400, PJ wrote: I have several input fields to update a book database. There seems to be a conflict in the way tags and text are input through php/mysql and phpMyAdmin. If I enter the data with phpMyAdmin the input fields in the php page see

[PHP] input form save and display conflict

2009-10-22 Thread PJ
I have several input fields to update a book database. There seems to be a conflict in the way tags and text are input through php/mysql and phpMyAdmin. If I enter the data with phpMyAdmin the input fields in the php page see quotation marks differently than what is input in phpMyAdmin. example:

Re: [PHP] Is select_db necessary?

2009-08-12 Thread PJ
you have done mysql_connect , any subsequent queries will be directed at the same db until another mysql_connect points to another db. I repeat the call with every query as a precaution. I'm not expert, but I thought I'd offer my observation and am open to correction. ;-) PJ -- PHP General Mailing

[PHP] another pagination problem

2009-07-17 Thread PJ
I noticed the thread on pagination here just after posting to mysql. But I am using php/mysql ;-) I have some rather complicated ordering problems: 1. need to order by 2 fields title, sub_title 2. need to display 10 items per page (hundreds, if not 1000s or pages) 3. order by ASC or DESC makes

Re: [PHP] another pagination problem

2009-07-17 Thread PJ
Ashley Sheridan wrote: On Friday 17 July 2009 16:35:10 PJ wrote: I noticed the thread on pagination here just after posting to mysql. But I am using php/mysql ;-) I have some rather complicated ordering problems: 1. need to order by 2 fields title, sub_title 2. need to display 10

Re: [PHP] another pagination problem

2009-07-17 Thread PJ
Ashley Sheridan wrote: On Friday 17 July 2009 16:35:10 PJ wrote: I noticed the thread on pagination here just after posting to mysql. But I am using php/mysql ;-) I have some rather complicated ordering problems: 1. need to order by 2 fields title, sub_title 2. need to display 10

Re: [PHP] Obeying the rules (was Simple login form with cookies)

2009-07-09 Thread PJ
Tony Marston wrote: There are too many people in this newsgroup with the idea that you MUST obey the rules, whatever they are, WITHOUT QUESTION. I do not subscribe to this notion. I have been working in IT (or DP as it was originally called) for over 30 years, and in that time I have

Re: [PHP] Simple login form with cookies

2009-07-08 Thread PJ
Michael A. Peters wrote: Daniel Brown wrote: First, a reminder to several (including some in this thread) that top-posting is against the law here. On Wed, Jul 8, 2009 at 09:48, Martin Scottamartinsco...@gmail.com wrote: $sql = 'SELECT * FROM your-table WHERE username = \''. $username

Re: [PHP] Simple login form with cookies

2009-07-08 Thread PJ
Andrew Ballard wrote: On Wed, Jul 8, 2009 at 11:53 AM, PJaf.gour...@videotron.ca wrote: Michael A. Peters wrote: Daniel Brown wrote: First, a reminder to several (including some in this thread) that top-posting is against the law here. On Wed, Jul 8, 2009 at 09:48,

Re: [PHP] Simple login form with cookies

2009-07-08 Thread PJ
Tony Marston wrote: I do not follows rules which cannot be justified beyond the expression It is there, so obey it! Why is it there? What are the alternatives? What harm does it do? What happens if the rule is disobeyed? Damn, isn't life frustrating... in case no one has noticed, 99 % of the

Re: [PHP] Simple login form with cookies

2009-07-08 Thread PJ
Paul M Foster wrote: On Wed, Jul 08, 2009 at 03:23:49PM -0400, Bob McConnell wrote: From: Tony Marston I do not follows rules which cannot be justified beyond the expression It is there, so obey it! Why is it there? What are the alternatives? What harm

Re: [PHP] Simple login form with cookies

2009-07-07 Thread PJ
PJ wrote: Jason Carson wrote: On Mon, Jul 6, 2009 at 02:19, Jason Carsonja...@jasoncarson.ca wrote: ok, I have two sets of scripts here. One uses setcookie() for logging into the admin panel and the other uses session_start(). Both are working fine, is one more secure than

Re: [PHP] Simple login form with cookies

2009-07-06 Thread PJ
what you are, as well): http://www.brainbell.com/tutors/php/php_mysql/Authorizing_User_Access.html HTH, PJ -- Hervé Kempf: Pour sauver la planète, sortez du capitalisme. - Phil Jourdan --- p...@ptahhotep.com http://www.ptahhotep.com

Re: [PHP] exasperated again

2009-07-04 Thread PJ
Jim Lucas wrote: PJ wrote: Could somebody please explain to me what is wrong with this code? In my script it works, returns the correct id, but when I try it in a test pages, nothing in the world gets it to work. This is rather frustrating, again: THIS WORKS IN ANOTHER PAGE; IN THE TEST PAGE

Re: [PHP] exasperated again

2009-07-04 Thread PJ
Ashley Sheridan wrote: On Sat, 2009-07-04 at 10:47 -0400, PJ wrote: Jim Lucas wrote: PJ wrote: Could somebody please explain to me what is wrong with this code? In my script it works, returns the correct id, but when I try it in a test pages, nothing in the world gets

Re: [PHP] exasperated again

2009-07-04 Thread PJ
Stuart wrote: 2009/7/4 PJ af.gour...@videotron.ca: Ashley Sheridan wrote: On Sat, 2009-07-04 at 10:47 -0400, PJ wrote: Jim Lucas wrote: PJ wrote: Could somebody please explain to me what is wrong with this code? In my script it works, returns

Re: [PHP] exasperated again

2009-07-04 Thread PJ
Stuart wrote: 2009/7/4 PJ af.gour...@videotron.ca: Ashley Sheridan wrote: On Sat, 2009-07-04 at 10:47 -0400, PJ wrote: Jim Lucas wrote: PJ wrote: Could somebody please explain to me what is wrong with this code? In my script it works, returns

[PHP] exasperated again

2009-06-30 Thread PJ
Could somebody please explain to me what is wrong with this code? In my script it works, returns the correct id, but when I try it in a test pages, nothing in the world gets it to work. This is rather frustrating, again: THIS WORKS IN ANOTHER PAGE; IN THE TEST PAGE ID DOES NOT. $sql = SELECT id

Re: [PHP] exasperated again - shot in the foot

2009-06-30 Thread PJ
PJ wrote: Could somebody please explain to me what is wrong with this code? In my script it works, returns the correct id, but when I try it in a test pages, nothing in the world gets it to work. This is rather frustrating, again: THIS WORKS IN ANOTHER PAGE; IN THE TEST PAGE ID DOES

Re: [PHP] exasperated again - shot in the foot

2009-06-30 Thread PJ
Jay Blanchard wrote: [snip] Use the OOP interface to mysqli or PDO and these problems don't happen [/snip] Either that or include a modicum of error checking in your code. OK, Ok, I feel stupid enough already. I'm not sure I want to get in that deep... it's tough enough with the simple

[PHP] idiot proofing

2009-06-24 Thread PJ
I have a bit of a situation. I have set up addBooks, editBooks and deleteBooks pages. Before complicating my life mixing them up in one file, I am running tests. I'd like to make them idiot proof, up to a point. When the page is submitted and the code is parsed, the form inputs remain on the

Re: [PHP] resubmit form after validation error

2009-06-23 Thread PJ
Caner Bulut wrote: Hi PJ, You can use the structure following $bid = htmlentities($_GET['id']); the code below if(empty($bid) { $bid=0; } produces an empty screen with no error messages... I have been having some trouble understanding empty() -- it doesn't seem to want to work for me

Re: [PHP] resubmit form after validation error

2009-06-23 Thread PJ
Shawn McKenzie wrote: PJ wrote: Caner Bulut wrote: Hi PJ, You can use the structure following $bid = htmlentities($_GET['id']); the code below if(empty($bid) { $bid=0; } produces an empty screen with no error messages... I have been having some trouble

[PHP] supplied argument errors

2009-06-23 Thread PJ
I think there is something I do not understand in the manual about mysql_fetch_assoc(), mysql_affected_rows() The code works, but I get these annoying messages. snippet: $result = mysql_query($sql, $db); // this is following an UPDATE $row = mysql_fetch_assoc($result); // warning...

[PHP] delete insert ?

2009-06-23 Thread PJ
I just had a bright idea ??? Am doing editing file for book entries; it occurs to me (now that I am practically finished) that it might be much simpler to delete entries and just insert rather than going through the rigamarole of checking if the new entries exist and if and if and if... just

Re: [PHP] supplied argument errors

2009-06-23 Thread PJ
Lex Braun wrote: On Tue, Jun 23, 2009 at 4:10 PM, PJ af.gour...@videotron.ca mailto:af.gour...@videotron.ca wrote: I think there is something I do not understand in the manual about mysql_fetch_assoc(), mysql_affected_rows() The code works, but I get these annoying messages

Re: [PHP] resubmit form after validation error

2009-06-22 Thread PJ
to delete.php Maybe it's all cumbersome and maybe it is possible to streamline the whole process, but then it does work and I am just learning... :-) Thanks again. PJ Caner BULUT wrote: Hi, You can use a variable to that. Like following. Example if the variable is 1 you start to processing form input

[PHP] resubmit form after validation error

2009-06-20 Thread PJ
I'm having a bit of a time figuring out how to resubmit a form after obligatory field missing error. The problem is that the page is accessed from a search page href where the uri is like = file.php$=123. Since the method=post action=file.php?=?php echo $number; ? does not work nor does PHP_SELF,

Re: [PHP] populate form input option dropdown box from existing data

2009-06-18 Thread PJ
Stuart wrote: 2009/6/18 PJ af.gour...@videotron.ca: I snipped to make it short... continue at bottom... Step back from the code and consider the steps you need to perform... 1) Get an array of the categories, ideally in the form $cats[catid] = categoryname. 2) Get an array

Re: [PHP] populate form input option dropdown box from existing data

2009-06-18 Thread PJ
Ford, Mike wrote: On 17 June 2009 15:01, PJ advised: It does, indeed. This confirms my inexperienced conclusion that in_array() does not work on associative arrays per se; it works on simple arrays and I just don't have the experience to think of extracting only the id fields

Re: [PHP] Re: sloppiness stupidity

2009-06-18 Thread PJ
Ford, Mike wrote: On 17 June 2009 23:56, PJ advised: Nisse Engstr�m wrote: On Wed, 17 Jun 2009 10:18:09 +0100, Ford, Mike wrote: This is very true -- but XHTML requires *all* attributes to have a value, so an XHTML conformant page will use select multiple=multiple name

Re: [PHP] how to extract fields from associative array into different variables

2009-06-18 Thread PJ
Nisse Engström wrote: On Tue, 16 Jun 2009 08:50:45 -0400, PJ wrote: Ashley Sheridan wrote: On Mon, 2009-06-15 at 17:38 -0400, PJ wrote: Then I have to add some loopy thing to assign the values to the $variables... a real pita since my variable do not lend themselves too

[PHP] aesthetic beauty in conception, execution

2009-06-18 Thread PJ
I just thought I would share a revelation. Someone just pointed me to a site that IMHO is superb for elegance of artistic design and programming. I was blown away. http://www.apfq.ca You won't regret it. 8-) -- Hervé Kempf: Pour sauver la planète, sortez du capitalisme.

Re: [PHP] populate form input option dropdown box from existing data

2009-06-18 Thread PJ
Martin Scotta wrote: It is a sintax error if (in_array($ex, $selected) --- missing ) echo br /yes; else echo br /no; On Thu, Jun 18, 2009 at 10:13 AM, PJ af.gour...@videotron.ca mailto:af.gour...@videotron.ca wrote: Ford, Mike wrote: On 17 June 2009 14:30, PJ advised

Re: [PHP] Re: aesthetic beauty in conception, execution

2009-06-18 Thread PJ
Peter Ford wrote: PJ wrote: I just thought I would share a revelation. Someone just pointed me to a site that IMHO is superb for elegance of artistic design and programming. I was blown away. http://www.apfq.ca You won't regret it. 8-) Il y a seulement une problème - je ne lis

Re: [PHP] aesthetic beauty in conception, execution

2009-06-18 Thread PJ
Robert Cummings wrote: PJ wrote: I just thought I would share a revelation. Someone just pointed me to a site that IMHO is superb for elegance of artistic design and programming. I was blown away. http://www.apfq.ca You won't regret it. 8-) Can I have my 5 minutes back please? It's about

Re: [PHP] Re: aesthetic beauty in conception, execution

2009-06-18 Thread PJ
Shawn McKenzie wrote: PJ wrote: I just thought I would share a revelation. Someone just pointed me to a site that IMHO is superb for elegance of artistic design and programming. I was blown away. http://www.apfq.ca You won't regret it. 8-) Superb for a mass of validation errors

Re: [PHP] populate form input option dropdown box from existing data

2009-06-18 Thread PJ
Stuart wrote: 2009/6/18 PJ af.gour...@videotron.ca: Martin Scotta wrote: It is a sintax error if (in_array($ex, $selected) --- missing ) echo br /yes; else echo br /no; On Thu, Jun 18, 2009 at 10:13 AM, PJ af.gour...@videotron.ca mailto:af.gour...@videotron.ca wrote

Re: [PHP] aesthetic beauty in conception, execution

2009-06-18 Thread PJ
Robert Cummings wrote: PJ wrote: Robert Cummings wrote: PJ wrote: I just thought I would share a revelation. Someone just pointed me to a site that IMHO is superb for elegance of artistic design and programming. I was blown away. http://www.apfq.ca You won't regret it. 8-) Can I have my

[PHP] edit db fields

2009-06-18 Thread PJ
How to deal with pre-selected input fields. To edit db fields in a table, I have a page that is basically the same as an insert page to create entries in the db. The table displays all the entries for a particular book that is selected from a search page. From the search page results a link leads

Re: [PHP] populate form input option dropdown box from existing data

2009-06-17 Thread PJ
Ashley Sheridan wrote: On Tue, 2009-06-16 at 20:46 -0400, PJ wrote: Ashley Sheridan wrote: On Tue, 2009-06-16 at 18:19 -0400, PJ wrote: Ashley Sheridan wrote: On Tue, 2009-06-16 at 15:48 -0400, PJ wrote: jenai tomaka wrote

Re: [PHP] populate form input option dropdown box from existing data

2009-06-17 Thread PJ
Ford, Mike wrote: On 16 June 2009 20:48, PJ advised: Now, I was happy to learn that it is simpler to populate the insert new books page dynamically from the db. Much shorter neater. It looks to me like the best solution for the edit page is close to what Yuri suggests. Since the edit

Re: [PHP] populate form input option dropdown box from existing data

2009-06-17 Thread PJ
Ashley Sheridan wrote: On Wed, 2009-06-17 at 10:01 -0400, PJ wrote: Ford, Mike wrote: On 16 June 2009 20:48, PJ advised: Now, I was happy to learn that it is simpler to populate the insert new books page dynamically from the db. Much shorter neater. It looks to me like

Re: [PHP] populate form input option dropdown box from existing data

2009-06-17 Thread PJ
On 16 June 2009 20:48, PJ advised: Now, I was happy to learn that it is simpler to populate the insert new books page dynamically from the db. Much shorter neater. It looks to me like the best solution for the edit page is close to what Yuri suggests. Since the edit page is very similar

Re: [PHP] populate form input option dropdown box from existing data

2009-06-17 Thread PJ
Shawn McKenzie wrote: PJ wrote: Ashley Sheridan wrote: On Wed, 2009-06-17 at 10:01 -0400, PJ wrote: Ford, Mike wrote: On 16 June 2009 20:48, PJ advised: Now, I was happy to learn that it is simpler to populate the insert new books page dynamically from the db. Much shorter neater

Re: [PHP] Re: sloppiness stupidity

2009-06-17 Thread PJ
Nisse Engström wrote: On Wed, 17 Jun 2009 10:18:09 +0100, Ford, Mike wrote: This is very true -- but XHTML requires *all* attributes to have a value, so an XHTML conformant page will use select multiple=multiple name=selector (or something similar such as select multiple=yes

Re: [PHP] sloppiness stupidity

2009-06-17 Thread PJ
:-* Matty Sarro wrote: *hug* I think that's what you were really asking for. -Matty On Tue, Jun 16, 2009 at 8:43 PM, PJ af.gour...@videotron.ca mailto:af.gour...@videotron.ca wrote: I'm sorry, guys, but I am really getting po'd. The irresponsible sloppiness and stupidity

Re: [PHP] populate form input option dropdown box from existing data

2009-06-17 Thread PJ
I snipped to make it short... continue at bottom... Step back from the code and consider the steps you need to perform... 1) Get an array of the categories, ideally in the form $cats[catid] = categoryname. 2) Get an array of the category IDs that should be selected, i.e. $selectedcats =

Re: [PHP] how to extract fields from associative array into different variables

2009-06-16 Thread PJ
Ashley Sheridan wrote: On Mon, 2009-06-15 at 17:38 -0400, PJ wrote: Jay Blanchard wrote: [snip] In what way would this simplify or ease my pain? The difficulty, it seems to me, is not in retrieving the rows, but rather how to pass the row data to the variables. And since the number

Re: [PHP] how to extract fields from associative array into different variables

2009-06-16 Thread PJ
Ford, Mike wrote: On 15 June 2009 18:07, PJ advised: Is there an easier or simpler way to do this? code: $sql = SELECT first_name, last_name, book_author.ordinal FROM author, book_author WHERE book_author.bookID = $idIN book_author.authID = author.id ORDER

Re: [PHP] how to extract fields from associative array into different variables

2009-06-16 Thread PJ
Ford, Mike wrote: On 15 June 2009 18:07, PJ advised: Is there an easier or simpler way to do this? code: $sql = SELECT first_name, last_name, book_author.ordinal FROM author, book_author WHERE book_author.bookID = $idIN book_author.authID = author.id ORDER

Re: [PHP] populate form input option dropdown box from existing data

2009-06-16 Thread PJ
jenai tomaka wrote: You can try like this, $row = stored data; and write the options like this option value=id (id == $row ? selected : ) /option Yuri Yarlei. http://brasil.microsoft.com.br/IE8/mergulhe/?utm_source=MSN%3BHotmailutm_medium=Taglineutm_campaign=IE8 Yuri, I'm still

Re: [PHP] populate form input option dropdown box from existing data

2009-06-16 Thread PJ
Ashley Sheridan wrote: On Tue, 2009-06-16 at 15:48 -0400, PJ wrote: jenai tomaka wrote: You can try like this, $row = stored data; and write the options like this option value=id (id == $row ? selected : ) /option Yuri Yarlei. http://brasil.microsoft.com.br/IE8

Re: [PHP] populate form input option dropdown box from existing data

2009-06-16 Thread PJ
Ashley Sheridan wrote: On Tue, 2009-06-16 at 18:19 -0400, PJ wrote: Ashley Sheridan wrote: On Tue, 2009-06-16 at 15:48 -0400, PJ wrote: jenai tomaka wrote: You can try like this, $row = stored data; and write the options like this option value=id

[PHP] sloppiness stupidity

2009-06-16 Thread PJ
I'm sorry, guys, but I am really getting po'd. The irresponsible sloppiness and stupidity is just getting to me. In my quest for a way to populate a multiple option select box I have run across so many errors that it's beyond belief... such nonsense as select for select or select=select ( think

Re: [PHP] populate form input option dropdown box from existing data

2009-06-16 Thread PJ
Ashley Sheridan wrote: On Tue, 2009-06-16 at 18:19 -0400, PJ wrote: Ashley Sheridan wrote: On Tue, 2009-06-16 at 15:48 -0400, PJ wrote: jenai tomaka wrote: You can try like this, $row = stored data; and write the options like this option value=id

[PHP] how to extract fields from associative array into different variables

2009-06-15 Thread PJ
Is there an easier or simpler way to do this? code: $sql = SELECT first_name, last_name, book_author.ordinal FROM author, book_author WHERE book_author.bookID = $idIN book_author.authID = author.id ORDER BY ordinal; $author = array(); if ( ( $results = mysql_query($sql, $db)

Re: [PHP] how to extract fields from associative array into different variables

2009-06-15 Thread PJ
Jay Blanchard wrote: [snip] Is there an easier or simpler way to do this? [/snip] http://us2.php.net/manual/en/function.mysql-fetch-row.php In what way would this simplify or ease my pain? The difficulty, it seems to me, is not in retrieving the rows, but rather how to pass the row data

Re: [PHP] how to extract fields from associative array into different variables

2009-06-15 Thread PJ
Jay Blanchard wrote: [snip] In what way would this simplify or ease my pain? The difficulty, it seems to me, is not in retrieving the rows, but rather how to pass the row data to the variables. And since the number of rows is variable, I believe that the only way to assign the variables is

[PHP] populate form input option dropdown box from existing data

2009-06-15 Thread PJ
I am having difficulties figuring out how enter retrieved data into a dropdown box for editing. Here's a snippet: ...snip select name=categoriesIN[] multiple size=8 option value=1Civilization/option option value=2Monuments, Temples amp; Tombs/option option value=3Pharaohs

Re: [PHP] 3d image rotating

2009-06-13 Thread PJ
דניאל דנון wrote: Hello. I'm looking for way to rotate normal images, but not x/y, but with Z also. I get a source image (png, jpg, gif...) and I want to rotate it. assuming the depth of the image is 1 pixel for example... I'm looking for a way to do it without using imagemagick - only GD.

[PHP] how to pass a number through href url?

2009-06-13 Thread PJ
I wish to be able to edit db field that is displayed in a page by calling up another page to handle the editing. The problem is how to pass the id (number) through an href. In other words, can the number be included in the uri and then filter the uri to leave just the number? Is something like

Re: [PHP] how to pass a number through href url?

2009-06-13 Thread PJ
Stuart wrote: 2009/6/13 PJ af.gour...@videotron.ca: I wish to be able to edit db field that is displayed in a page by calling up another page to handle the editing. The problem is how to pass the id (number) through an href. In other words, can the number be included in the uri Â

[PHP] order by what?

2009-06-11 Thread PJ
How can order by be forced to order alphabetically and ignore accents without stripping the accents for printout? This is a problem for both caps normal letters. -- Hervé Kempf: Pour sauver la planète, sortez du capitalisme. - Phil

Re: [PHP] order by what?

2009-06-11 Thread PJ
Jay Blanchard wrote: [snip] How can order by be forced to order alphabetically and ignore accents without stripping the accents for printout? This is a problem for both caps normal letters. [/snip] Definitely an SQL question. What character set are you using in your database? Is the

Re: [PHP] order by what?

2009-06-11 Thread PJ
PJ wrote: Jay Blanchard wrote: [snip] How can order by be forced to order alphabetically and ignore accents without stripping the accents for printout? This is a problem for both caps normal letters. [/snip] Definitely an SQL question. What character set are you using in your

Re: [PHP] order by what?

2009-06-11 Thread PJ
Jay Blanchard wrote: [snip] [snip] How can order by be forced to order alphabetically and ignore accents without stripping the accents for printout? This is a problem for both caps normal letters. [/snip] Definitely an SQL question. What character set are you using in your database?

Re: [PHP] order by what?

2009-06-11 Thread PJ
Robin Vickery wrote: 2009/6/11 PJ af.gour...@videotron.ca mailto:af.gour...@videotron.ca How can order by be forced to order alphabetically and ignore accents without stripping the accents for printout? This is a problem for both caps normal letters. Depends on the database

Re: [PHP] order by what?

2009-06-11 Thread PJ
Robin Vickery wrote: 2009/6/11 PJ af.gour...@videotron.ca mailto:af.gour...@videotron.ca How can order by be forced to order alphabetically and ignore accents without stripping the accents for printout? This is a problem for both caps normal letters. Depends on the database

Re: [PHP] formatting - design question

2009-06-08 Thread PJ
Ford, Mike wrote: On 04 June 2009 19:09, PJ advised: Nitsan Bin-Nun wrote: From my experience I tend to use a difference ID for the body tag, for instance body id='homepage' and then format it in my CSS using ID reference: #homepage .classname { color: blue

[PHP] how to get rid of that annoying |

2009-06-08 Thread PJ
I know this a silly question, but I can't figure out if it's even possible to get rid of that final annoying | in my pagination script. ?echo pNavigation/p; echo (($page !=1)?a href='.build_url(books.php, page, 1).'first/a:first). ... ; echo (($page1)?a href='.build_url(books.php, page,

Re: [PHP] how to get rid of that annoying |

2009-06-08 Thread PJ
Robert Cummings wrote: PJ wrote: I know this a silly question, but I can't figure out if it's even possible to get rid of that final annoying | in my pagination script. ?echo pNavigation/p; echo (($page !=1)?a href='.build_url(books.php, page, 1).'first/a:first). ... ; echo (($page1

Re: [PHP] how to get rid of that annoying |

2009-06-08 Thread PJ
Robert Cummings wrote: PJ wrote: Robert Cummings wrote: PJ wrote: I know this a silly question, but I can't figure out if it's even possible to get rid of that final annoying | in my pagination script. ?echo pNavigation/p; echo (($page !=1)?a href='.build_url(books.php, page, 1).'first

Re: [PHP] how to get rid of that annoying |

2009-06-08 Thread PJ
Robert Cummings wrote: PJ wrote: Robert Cummings wrote: PJ wrote: Robert Cummings wrote: PJ wrote: I know this a silly question, but I can't figure out if it's even possible to get rid of that final annoying | in my pagination script. ?echo pNavigation/p; echo (($page !=1)?a href

Re: [PHP] https setup

2009-06-05 Thread PJ
Michael A. Peters wrote: PJ wrote: Can't find anything on G or web - but I probably didn't try hard enough. I am unable to set my virtual hosts to handle https. I have apache22, mod_ssl, opnenssl and the httpd and httpd-vhosts.conf files are set up correctly but directing a sensitive user

Re: [PHP] https setup

2009-06-05 Thread PJ
Per Jessen wrote: PJ wrote: Can't find anything on G or web - but I probably didn't try hard enough. Correct :-) I am unable to set my virtual hosts to handle https. I have apache22, mod_ssl, opnenssl and the httpd and httpd-vhosts.conf files are set up correctly

Re: [PHP] formatting - design question

2009-06-05 Thread PJ
Peter Ford wrote: PJ wrote: tedd wrote: At 3:58 PM -0400 6/4/09, PJ wrote: tedd wrote: Style sheets are meant simplify things so decide on how you want things to look uniformly throughout your site and then stick with it. There's really no good reason

Re: [PHP] https setup

2009-06-05 Thread PJ
Shanon Swafford wrote: -Original Message- From: PJ [mailto:af.gour...@videotron.ca] Sent: Thursday, June 04, 2009 3:59 PM To: php-general@lists.php.net Subject: [PHP] https setup Can't find anything on G or web - but I probably didn't try hard enough. I am unable to set my virtual

Re: [PHP] forms problem

2009-06-04 Thread PJ
Andrew Ballard wrote: On Wed, Jun 3, 2009 at 7:13 PM, PJ af.gour...@videotron.ca wrote: Tom Chubb wrote: 2009/6/3 PJ af.gour...@videotron.ca: The code: ...snip div id=loginbox     form name=login method=post action=? echo $_SERVER['PHP_SELF'] ?      Â

Re: [PHP] forms problem

2009-06-04 Thread PJ
Shawn McKenzie wrote: PJ wrote: AngeloZanetti wrote: Shawn McKenzie wrote: PJ wrote: PROBLEM 1 solved: errant divs removed; strange that they were inhibiting entry of data into form field? PROBLEM 2 not resolved: but the form was off the page and clipped

[PHP] formatting - design question

2009-06-04 Thread PJ
This may not be strictly php but I think is may be relevant. Were I to use a different css file for every page (that is slightly different), would that affect performance? It seems to me that might be a way of simplifying and certainly speeding up development (design-wise, anyway) when using css.

Re: [PHP] formatting - design question

2009-06-04 Thread PJ
Nitsan Bin-Nun wrote: From my experience I tend to use a difference ID for the body tag, for instance body id='homepage' and then format it in my CSS using ID reference: #homepage .classname { color: blue; } This way you can use a default format for all the pages and create minor (or

[PHP] https setup

2009-06-04 Thread PJ
Can't find anything on G or web - but I probably didn't try hard enough. I am unable to set my virtual hosts to handle https. I have apache22, mod_ssl, opnenssl and the httpd and httpd-vhosts.conf files are set up correctly but directing a sensitive user information page to an HTTPS page returns

[PHP] forms problem

2009-06-03 Thread PJ
The code: ...snip div id=loginbox form name=login method=post action=? echo $_SERVER['PHP_SELF'] ? h2accegrave;s client br /input type=text name=title value=? echo $user; ? size=10 /br / mot de passe br /input type=text name=title value=? echo $passwd; ? size=10 /br

[PHP] forms problem

2009-06-03 Thread PJ
PROBLEM 1 solved: errant divs removed; strange that they were inhibiting entry of data into form field? PROBLEM 2 not resolved: but the form was off the page and clipped in upper right hand corner. What can be done to get it to show correctly? -- Hervé Kempf: Pour sauver la planète, sortez du

Re: [PHP] forms problem

2009-06-03 Thread PJ
Tom Chubb wrote: 2009/6/3 PJ af.gour...@videotron.ca: The code: ...snip div id=loginbox form name=login method=post action=? echo $_SERVER['PHP_SELF'] ? h2accegrave;s client br /input type=text name=title value=? echo $user; ? size=10 /br / mot de passe br

Re: [PHP] forms problem

2009-06-03 Thread PJ
AngeloZanetti wrote: Shawn McKenzie wrote: PJ wrote: PROBLEM 1 solved: errant divs removed; strange that they were inhibiting entry of data into form field? PROBLEM 2 not resolved: but the form was off the page and clipped in upper right hand corner. What can be done to get

[PHP] rotate an image

2009-06-01 Thread PJ
Not replace images. R o t a t e... like 15 degrees clockwise??? I chacked the manual and what is suggested doesn't seem to want to work. I have GD enabled, but all I get is a garbled output on the page. Her's what was offered: |?php // File and rotation $filename = 'test.jpg'; $degrees = 180; //

Re: [PHP] recipes anyone?

2009-05-30 Thread PJ
Ashley Sheridan wrote: On Fri, 2009-05-29 at 19:24 -0400, PJ wrote: Michael A. Peters wrote: Bob McConnell wrote: like a web based front end, exclusion of specific ingredients due to allergies and being able to attach dated notes about alterations or substitutions I try

[PHP] backslashes, string replacement, mysql_real_escape_strings and languages

2009-05-30 Thread PJ
Ok, let's get this straightened out, please. I'm coming up with little annoyances like text with eacute; the like being displayed and not displayed, having to enter it to get it displayed, and sometimes seeing the code rather than the accented character. And then there is preg_replace! When I

[PHP] recipes anyone?

2009-05-29 Thread PJ
I'd like to get some input on how to deal with recipes. use html pages to store and display, XML or db or... ? And what about clips, like flvs ? TIA. -- Hervé Kempf: Pour sauver la planète, sortez du capitalisme. - Phil Jourdan ---

Re: [PHP] recipes anyone?

2009-05-29 Thread PJ
Bob McConnell wrote: From: PJ I'd like to get some input on how to deal with recipes. use html pages to store and display, XML or db or... ? And what about clips, like flvs ? TIA. There are as many ways to do cookbooks as there are cooks. I am familiar with half a dozen, without

Re: [PHP] recipes anyone?

2009-05-29 Thread PJ
Michael A. Peters wrote: Bob McConnell wrote: like a web based front end, exclusion of specific ingredients due to allergies and being able to attach dated notes about alterations or substitutions I try each time That sounds wicked. One of my brothers is allergic to corn. Being able to

Re: [PHP] recipes anyone?

2009-05-29 Thread PJ
wouldn't think contain corn. I think it may be corn syrup itself and not corn that he is allergic to, I don't remember. Oh God, please don't get PJ started on corn! Too late! :-P -- Hervé Kempf: Pour sauver la planète, sortez du capitalisme

[PHP] not a shopping cart

2009-05-27 Thread PJ
I am setting up a b2b product site where food professionals can order unique regional products. For this I have to implement a simple series of pages that display the products and prices. Using php/mysql/css I load the products, prices etc. with ease. I have no use for any shopping carts as that

Re: [PHP] not a shopping cart

2009-05-27 Thread PJ
of our clients and their clients as we... and then we had someone fresh meat nerds coding and they rather stumbled over their own heels in the programming, but that's another story. Thanks, anyway. Bastien Koert wrote: On Wed, May 27, 2009 at 11:52 AM, PJ af.gour...@videotron.ca mailto:af.gour

Re: [PHP] not a shopping cart

2009-05-27 Thread PJ
Bastien Koert wrote: On Wed, May 27, 2009 at 1:39 PM, PJ af.gour...@videotron.ca mailto:af.gour...@videotron.ca wrote: I was afraid I would get this kind of reaction, but it is not what I want or need. As I mentioned, all these shopping carts are overbloated for the kind

Re: [PHP] not a shopping cart

2009-05-27 Thread PJ
Shawn McKenzie wrote: PJ wrote: I was afraid I would get this kind of reaction, but it is not what I want or need. As I mentioned, all these shopping carts are overbloated for the kind of application I am creating. I do not need all the heavy baggage that come with them. I have looked

[PHP] db messed up

2009-05-26 Thread PJ
I am probably not doing this right, but where else can I turn (don't answer that!)... this morning my wonderful local conEdison decided they were going to waste my day by shutting off the power exactly as I was booting up my server. Hence, I cannot access a critical database... fortunately, I can

  1   2   3   4   >