[PHP] advice on setting up new site

2009-11-11 Thread PJ
e interested and we can discuss methods of working 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

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

[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: if

Re: [PHP] Is select_db necessary?

2009-08-12 Thread PJ
l 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 List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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

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

[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] 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 wo

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?

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

Re: [PHP] Simple login form with cookies

2009-07-08 Thread PJ
Andrew Ballard wrote: > On Wed, Jul 8, 2009 at 11:53 AM, PJ wrote: > >> Michael A. Peters wrote: >> >>> Daniel Brown wrote: >>> >>>> First, a reminder to several (including some in this thread) that >>>> top-posting is

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 Scotta >> wrote: >>> $sql = 'SELECT * FROM your-table WHERE username = \''. $username .'\' >>> a

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 Carson wrote: >>> >>> >>>> ok, I have two sets of scripts here. One uses setcookie() for logging >>>> into >>>> the admin panel and the oth

Re: [PHP] Simple login form with cookies

2009-07-06 Thread PJ
ure my login model (Using cookies or sessions). > > Hi Jason, I'm probably not any wiser than you, but I have just (today) discovered an interesting site that seems to have some really clear explanations and tutorials re php, MySsql et al. It's worth looking at (I'm trying

Re: [PHP] exasperated again

2009-07-04 Thread PJ
Stuart wrote: > 2009/7/4 PJ : > >> Ashley Sheridan wrote: >> >>> On Sat, 2009-07-04 at 10:47 -0400, PJ wrote: >>> >>> >>>> Jim Lucas wrote: >>>> >>>> >>>>> PJ wrote: >>>

Re: [PHP] exasperated again

2009-07-04 Thread PJ
Stuart wrote: > 2009/7/4 PJ : > >> Ashley Sheridan wrote: >> >>> On Sat, 2009-07-04 at 10:47 -0400, PJ wrote: >>> >>> >>>> Jim Lucas wrote: >>>> >>>> >>>>> PJ wrote: >>>

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

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: >&g

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 s

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 P

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

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

Re: [PHP] supplied argument errors

2009-06-23 Thread PJ
Lex Braun wrote: > > > On Tue, Jun 23, 2009 at 4:10 PM, PJ <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 an

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

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

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 &g

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 "e

Re: [PHP] resubmit form after validation error

2009-06-22 Thread PJ
o "update.php" and one 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 follow

[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?= does not work nor does PHP_SELF, I have set the act

[PHP] sessions tutorial

2009-06-18 Thread PJ
ant to bother you guys but do you see the futility here? My little programs are advancing little by little, but boy is it a struggle to get any information. I eventually dig it out but, frankly, it might be more productive digging salt mines in the Urals. :-( PJ "the bitcher"

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

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

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

2009-06-18 Thread PJ
Stuart wrote: > 2009/6/18 PJ : > >> Martin Scotta wrote: >> >>> It is a sintax error >>> >>> if (in_array($ex, $selected) <--- missing ) >>> echo "yes"; >>> else echo "no"; >>> >>>

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

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 reg

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 reg

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 "yes"; > else echo "no"; > > On Thu, Jun 18, 2009 at 10:13 AM, PJ <mailto:af.gour...@videotron.ca>> wrote: > >

[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] how to extract fields from associative array into different variables

2009-06-18 Thread PJ
ono ato sekai desu. > > > > >> To: php-general@lists.php.net >> From: news.nospam.0ixbt...@luden.se >> Date: Thu, 18 Jun 2009 14:17:59 +0200 >> Subject: Re: [PHP] how to extract fields from associative array into >> different variables >> >>

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 value

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 requi

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

2009-06-18 Thread PJ
Ford, Mike wrote: > On 17 June 2009 14:30, PJ advised: > > > >> For the moment, I am trying to resolve the problem of >> extracting a value >> from a string returned by a query. I thought that in_array() would do >> it, but the tests I have run on it are 100

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

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

2009-06-18 Thread PJ
Stuart wrote: > 2009/6/18 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[] >&

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[] > = categoryname. > > 2) Get an array of the category IDs that should be selected, i.e. > $selectedcats = ar

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 <mailto:af.gour...@videotron.ca>> wrote: > > I'm sorry, guys, but I am really getting po'd. > The irr

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 > name="selector"> (or something similar such as > name="selector">). The only inconsistency he

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

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

2009-06-17 Thread PJ
;", $row['category'], ""; } } I think it will work now. Thanks much for the input & the support. :-) > > > >> Date: Wed, 17 Jun 2009 10:16:15 +0100 >> From: m.f...@leedsmet.ac.uk >> To: php-general@lists.php.net >>

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

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

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

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

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

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

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 > > > > Yuri Yarlei. > > Yuri, I'm still "wet behind the ears" on this so I don

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

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

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

[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 Civilization Monuments, Temples & Tombs Pharaohs and Queens... snip As I understand it, I need to put an array ( $categoriesIN[] ) somewhere in the abo

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 >

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 d

[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, $

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

2009-06-13 Thread PJ
Stuart wrote: > 2009/6/13 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

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

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

Re: [PHP] order by what?

2009-06-11 Thread PJ
Robin Vickery wrote: > > > 2009/6/11 PJ 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. > &

Re: [PHP] order by what?

2009-06-11 Thread PJ
Robin Vickery wrote: > > > 2009/6/11 PJ 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. > &

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

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] >> >> Definite

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 t

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

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 >

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. >>>&

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. >> >> Navigation"; >> >> echo (($page !=1)?"first":&quo

[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. Navigation"; echo (($page !=1)?"first":"first")." ... "; echo (($page>1)?"prev":"prev")." | "; for($i=$page; $i<=($page+$records_per_page-2)+1; $i++){ if ($i!=

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 and the

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

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 >>>&g

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

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 a

[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

Re: [PHP] formatting - design question

2009-06-04 Thread PJ
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 reaso

Re: [PHP] formatting - design question

2009-06-04 Thread PJ
tedd wrote: > At 2:08 PM -0400 6/4/09, PJ wrote: >> Nitsan Bin-Nun wrote: >>> >From my experience I tend to use a difference ID for the body tag, >>> for >>> instance and then format it in my CSS using ID >>> reference: >>> #homepage

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 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 > major)

[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. A

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 s removed; strange th

Re: [PHP] forms problem

2009-06-04 Thread PJ
Andrew Ballard wrote: > On Wed, Jun 3, 2009 at 7:13 PM, PJ wrote: > >> Tom Chubb wrote: >> >>> 2009/6/3 PJ : >>> >>> >>>> The code: >>>> ...snip >>>> >>>> Â Â Â Â >>>>

Re: [PHP] forms problem

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

Re: [PHP] forms problem

2009-06-03 Thread PJ
Tom Chubb wrote: > 2009/6/3 PJ : > >> The code: >> ...snip >> >> >>accès client > name="title" value="" size="10" /> >>mot de passe >>> value=" entrez

[PHP] forms problem

2009-06-03 Thread PJ
PROBLEM 1 solved: errant s 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 capi

[PHP] forms problem

2009-06-03 Thread PJ
The code: ...snip accès client mot de passe Inscription http://www.ptahhotep.com http://www.chiccantine.com/andypantry.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/un

[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: | | I want to display an image rotated (canted, if you prefer) to the ri

[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 é & 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 have to u

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 an

Re: [PHP] recipes anyone?

2009-05-29 Thread PJ
ens when he gets corn, he gets a >> rash and a bad attitude - but it still manages to slip its way into a >> lot of things you 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.

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. > Bein

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

[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 --- p..

  1   2   3   4   >