Re: RES: [PHP] inexplicable behaviour

2009-04-26 Thread PJ
Phpster wrote: What parameters are you pasing in the link? That will be the telling point of what you are doing wrong. You could pass the search params ( though these are best kept in a session or cookie ) and the offset counter to get the next block of results. Actually, I am trying to use

Re: RES: [PHP] inexplicable behaviour SOLVED

2009-04-27 Thread PJ
Ford, Mike wrote: On 26 April 2009 22:59, PJ advised: kranthi wrote: if $Count1 is never referenced after this, then certainly this assignment operation is redundent. but assignment is not the ONLY operation of this statement. if u hav not noticed a post increment operator has

[PHP] utf-8 ?

2009-04-27 Thread PJ
Since I have to use a number of Western languages that have those annoying accents on many characters, I am already finding some annoyances in my code results; like having to enter the aacute; type of stuff in inputs for searches queries. MySql db is set up for InnoDB with latin1_swedish_ci for

[PHP] Re: utf-8 ?

2009-04-27 Thread PJ
Nathan Rixham wrote: PJ wrote: Since I have to use a number of Western languages that have those annoying accents on many characters, I am already finding some annoyances in my code results; like having to enter the aacute; type of stuff in inputs for searches queries. MySql db is set up

[PHP] Re: utf-8 ?

2009-04-27 Thread PJ
9el wrote: I looked at http://developer.loftdigital.com/blog/php-utf-8-cheatsheet which suggests this: ALTER DATABASE db_name CHARACTER SET utf8 DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT COLLATE utf8_general_ci ; ALTER TABLE tbl_name

Re: [PHP] utf-8 ?

2009-04-27 Thread PJ
Tom Worster wrote: On 4/27/09 9:55 AM, PJ af.gour...@videotron.ca wrote: Since I have to use a number of Western languages that have those annoying accents on many characters, I am already finding some annoyances in my code results; like having to enter the aacute; type of stuff in inputs

Re: [PHP] utf-8 ?

2009-04-27 Thread PJ
Tom Worster wrote: On 4/27/09 4:25 PM, PJ af.gour...@videotron.ca wrote: Exactly what are the advantages of using utf-8? How will it solve my problem? actually, i have no idea because i have no idea what problem you are trying to solve and i apologize for presumptuous. i presumed

Re: RES: [PHP] inexplicable behaviour SOLVED

2009-04-28 Thread PJ
Ford, Mike wrote: On 27 April 2009 14:21, PJ advised: Ford, Mike wrote: On 26 April 2009 22:59, PJ advised: kranthi wrote: if $Count1 is never referenced after this, then certainly this assignment operation is redundent. but assignment is not the ONLY

Re: RES: [PHP] inexplicable behaviour SOLVED

2009-04-28 Thread PJ
Richard Quadling wrote: 2009/4/27 9el le...@phpxperts.net: Thanks for the clarification, Mike. In my ignorance, I was under the impression that the right side of the equation was only for the use of the left part. How stupid of me. So what I should have been doing was $Count1 = $Count +

[PHP] how to enable ttf support in php 5.2.9

2009-05-01 Thread PJ
Is there a module to be activated or what has to be installed to have ttf support in php? My port on FreeBSD does not have an option for ttf support under make config . I'm trying to learn understand the following: In file1 : img src=button.php?s=36text=PHP+is+Cool / In file2 (button.php)-

Re: [PHP] how to enable ttf support in php 5.2.9

2009-05-04 Thread PJ
Jim Lucas wrote: PJ wrote: Is there a module to be activated or what has to be installed to have ttf support in php? My port on FreeBSD does not have an option for ttf support under make config . I'm trying to learn understand the following: In file1 : img src=button.php?s=36text=PHP

Re: [PHP] how to enable ttf support in php 5.2.9

2009-05-05 Thread PJ
Ashley Sheridan wrote: On Mon, 2009-05-04 at 18:42 -0400, PJ wrote: Jim Lucas wrote: PJ wrote: Is there a module to be activated or what has to be installed to have ttf support in php? My port on FreeBSD does not have an option for ttf support under make config . I'm

[PHP] How to deal with identical fields in db

2009-05-05 Thread PJ
I'm coming up with a bit of a quandry: how to enter and retrieve an identical book title with different authors. It is rather unbelievable what contortions one finds as authors :-( like editors, associations and then the unknowns and anon y mouses. I suppose one has to get really creative...

Re: [PHP] How to deal with identical fields in db

2009-05-05 Thread PJ
Tom Worster wrote: On 5/5/09 4:42 PM, Richard S. Crawford rscrawf...@mossroot.com wrote: On Tue, May 5, 2009 at 1:34 PM, PJ af.gour...@videotron.ca wrote: I'm coming up with a bit of a quandry: how to enter and retrieve an identical book title with different authors. It is rather

[PHP] irrational behavior

2009-05-12 Thread PJ
Could somebody please explain this? When the line - sort($category) is commented out, the output returns Notice: Undefined offset: in the line 36 for all the repeats (29 in this case) The code below: ? $SQL = SELECT name FROM categories ORDER BY category_id ; $category = array();

Re: [PHP] irrational behavior

2009-05-12 Thread PJ
Robert Stankiewicz wrote: Maybe, because of this ? $category[$row['name']] = $row; $cat = $category[$ii]['name']; //===this is line 36== best regards Robert I'm afraid you lose me completely. What does the sort($category) have to do with the

Re: [PHP] irrational behavior SOLVED

2009-05-12 Thread PJ
Jan G.B. wrote: 2009/5/12 PJ af.gour...@videotron.ca: Could somebody please explain this? When the line - sort($category) is commented out, the output returns Notice: Undefined offset: in the line 36 for all the repeats (29 in this case) Sure thing if you consider

Re: [PHP] Re: irrational behavior

2009-05-12 Thread PJ
Shawn McKenzie wrote: PJ wrote: Could somebody please explain this? When the line - sort($category) is commented out, the output returns Notice: Undefined offset: in the line 36 for all the repeats (29 in this case) Sure it makes sense and is rational, you just have no idea what

Re: [PHP] Watermarking of images

2009-05-12 Thread PJ
Robert Cummings wrote: On Tue, 2009-05-12 at 16:31 -0400, tedd wrote: At 3:48 PM -0400 5/12/09, Robert Cummings wrote: On Tue, 2009-05-12 at 09:54 -0400, tedd wrote: At 12:27 PM -0700 5/11/09, Daevid Vincent wrote: Here's an example with code:

Re: [PHP] Watermarking of images

2009-05-12 Thread PJ
Robert Cummings wrote: On Tue, 2009-05-12 at 18:53 -0400, PJ wrote: Robert Cummings wrote: On Tue, 2009-05-12 at 16:31 -0400, tedd wrote: At 3:48 PM -0400 5/12/09, Robert Cummings wrote: On Tue, 2009-05-12 at 09:54 -0400, tedd wrote

[PHP] where what

2009-05-14 Thread PJ
Where and what do I look for to resolve this? My script is working fine on an active ISP web server. This morning, I crank up the local XP and the local FreeBSD 7.1 server. I start my editor, bring up Firefox, go to local server and everything works fine. I start to code and make a couple of minor

Re: [PHP] where what-SOLVED

2009-05-14 Thread PJ
PJ wrote: Where and what do I look for to resolve this? My script is working fine on an active ISP web server. This morning, I crank up the local XP and the local FreeBSD 7.1 server. I start my editor, bring up Firefox, go to local server and everything works fine. I start to code and make

[PHP] include file syntax

2009-05-14 Thread PJ
How does one deal with tag completion from an include file to the main(source)-file? i.e. c should a tag, such as head or div be closed withing the include file? Or can body be started in the include file and closed in the main-file? Crossing the border, so-to-speak, doesn't seem to matter; but

[PHP] php html integration

2009-05-14 Thread PJ
I'm a bit fuzzy on the relationship between the ? ? and the HTML code. Where should the php code be placed in a page so that execution is carried out smoothly? So far, my coding has managed to avoid horrendous snags; but as I delve deeper into the quagmire of coding, I would like to clear the fog

[PHP] CSS tables

2009-05-15 Thread PJ
I know of no better place to ask. This may not be strictly a PHP issue, but... I am busting my hump trying to format rather large input pages with CSS and trying to avoid tables; but it looks to me like I am wasting my time as positioning with CSS seems an impossibly tortuous exercise. I've

Re: [PHP] CSS tables

2009-05-15 Thread PJ
tedd wrote: At 1:25 PM -0400 5/15/09, PJ wrote: I know of no better place to ask. This may not be strictly a PHP issue, but... I am busting my hump trying to format rather large input pages with CSS and trying to avoid tables; but it looks to me like I am wasting my time as positioning

Re: [PHP] CSS tables

2009-05-15 Thread PJ
Robert Cummings wrote: On Fri, 2009-05-15 at 14:59 -0400, PJ wrote: tedd wrote: At 1:25 PM -0400 5/15/09, PJ wrote: I know of no better place to ask. This may not be strictly a PHP issue, but... I am busting my hump trying to format rather large input pages with CSS

Re: [PHP] CSS tables

2009-05-15 Thread PJ
Robert Cummings wrote: On Fri, 2009-05-15 at 15:12 -0400, HallMarc Websites wrote: Um... sorry to jump in as a late arrival yet there you go What limitations? You could provide a layered layout using CSS and png graphic format. As for setting up columns check out float and clear and

Re: [PHP] CSS tables

2009-05-15 Thread PJ
Nathan Rixham wrote: tedd wrote: At 2:06 PM -0400 5/15/09, Tom Worster wrote: for one thing, a table is a great way of representing relations (http://mathworld.wolfram.com/Relation.html). data tables are the canonical example but very often a form's structure is a relation, e.g. between

Re: [PHP] CSS tables

2009-05-18 Thread PJ
Ashley Sheridan wrote: On Sun, 2009-05-17 at 14:48 -0400, tedd wrote: At 10:48 AM +0100 5/16/09, Ashley Sheridan wrote: Trust me, semantics are gonna be the next big thing, Semantics? What do you mean by that? And therein lies the problem -- what means something to me,

Re: [PHP] CSS tables

2009-05-18 Thread PJ
Marc Christopher Hall wrote: and so I don't feel like a complete ass http://jeffhowden.com/code/css/forms/ __ Information from ESET Smart Security, version of virus signature database 4084 (20090518) __ The message was checked by ESET Smart Security.

Re: [PHP] CSS tables

2009-05-19 Thread PJ
Paul M Foster wrote: On Mon, May 18, 2009 at 05:55:47PM -0400, PJ wrote: Marc Christopher Hall wrote: and so I don't feel like a complete ass http://jeffhowden.com/code/css/forms/ __ Information from ESET Smart Security, version of virus signature database 4084

Re: [PHP] CSS tables

2009-05-19 Thread PJ
Nathan Rixham wrote: I just wanted to run this past you guys for thoughts and opinions or even just to get brains ticking, it's all web development related and touched on throughout this thread. At the core of this we have a single problem, we create websites and web based applications,

Re: [PHP] CSS tables

2009-05-19 Thread PJ
Nathan Rixham wrote: PJ wrote: Nathan Rixham wrote: lol Glad /snip as they say did you ever get any help explaining css? just in case here's the ultra basics you have selectors and declarations selectors can be: .classname (a class, to be applied to many objects) #someid

[PHP] product listing columns

2009-05-20 Thread PJ
I am about to bust my donkey again trying to set up a dynamic product listing for a web page using mysql, php CSS (the donkey ride). What better place to ask than here in guru heaven: 1. What's a good list/forum to ask for help on CSS - it just is too illogical. 2. With mysql, is the best way to

[PHP] product listing columns

2009-05-20 Thread PJ
Forgot: you can get an idea of what I'm trying to do at http://www.chiccantine.com/preview.html -- Hervé Kempf: Pour sauver la planète, sortez du capitalisme. - Phil Jourdan --- p...@ptahhotep.com http://www.ptahhotep.com

Re: [PHP] product listing columns

2009-05-20 Thread PJ
Ashley Sheridan wrote: On Wed, 2009-05-20 at 17:47 -0400, PJ wrote: Forgot: you can get an idea of what I'm trying to do at http://www.chiccantine.com/preview.html -- Hervé Kempf: Pour sauver la planète, sortez du capitalisme

Re: [PHP] product listing columns

2009-05-20 Thread PJ
Stephen wrote: PJ wrote: I am about to bust my donkey again trying to set up a dynamic product listing for a web page using mysql, php CSS (the donkey ride). What better place to ask than here in guru heaven: 1. What's a good list/forum to ask for help on CSS - it just is too illogical

Re: [PHP] product listing columns

2009-05-20 Thread PJ
Ashley Sheridan wrote: On Wed, 2009-05-20 at 19:20 -0400, PJ wrote: Ashley Sheridan wrote: On Wed, 2009-05-20 at 17:47 -0400, PJ wrote: Forgot: you can get an idea of what I'm trying to do at http://www.chiccantine.com/preview.html -- Hervé Kempf: Pour sauver la

Re: [PHP] product listing columns

2009-05-20 Thread PJ
Michael A. Peters wrote: PJ wrote: I am about to bust my donkey again trying to set up a dynamic product listing for a web page using mysql, php CSS (the donkey ride). What better place to ask than here in guru heaven: 1. What's a good list/forum to ask for help on CSS - it just is too

[PHP] urgent CSS question

2009-05-22 Thread PJ
Sorry, but no one suggested a mailing list for CSS and the W3 Schools Forum has problems. This is the only reliable mailing list with professionals, so please excuse my off-path question as it is rather urgent. Why do I get completely different formatting with two identical classes? I want to

Re: [PHP] urgent CSS question

2009-05-22 Thread PJ
Benjamin Hawkes-Lewis wrote: On 22/5/09 12:49, PJ wrote: Sorry, but no one suggested a mailing list for CSS and the W3 Schools Forum has problems. Actually, I did: http://www.css-discuss.org/ My apologies... wasn't at the top of my attention at that point. :-[ Why do I get completely

Re: [PHP] urgent CSS question

2009-05-22 Thread PJ
Benjamin Hawkes-Lewis wrote: On 22/5/09 13:27, PJ wrote: Ok, I have duplicate classes - #frame and #frame1. Let's get our terminology straight: ids are not classes; classes are not ids. ids look like: id=thing and are selected like: #thing classes look like: class=thing other

Re: [PHP] urgent CSS question

2009-05-22 Thread PJ
Benjamin Hawkes-Lewis wrote: On 22/5/09 20:31, PJ wrote: They may have different names, but does that change their functionality? Potentially, yes! A selector including #frame will no longer match if id is changed to frame1, and vice versa. They are identical except for the 1 in the title

[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

Re: [PHP] db messed up

2009-05-26 Thread PJ
Ashley Sheridan wrote: On Tue, 2009-05-26 at 15:37 -0400, PJ wrote: 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

Re: [PHP] db messed up

2009-05-26 Thread PJ
Jay Blanchard wrote: [snip] ...this morning my wonderful local conEdison ... [/snip] [snip] ... Hydro Quebec just f***ed my server just as I was booting... [/snip] I see that you asked this on the MySQL list which would be the correct place to do this. As you are aware, you have

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

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] 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; //

[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

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

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

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

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

<    1   2   3   4   >