Re: [PHP-DB] A weird images database/web page problem

2002-01-17 Thread chip
The next part I tackled and won! Hard to believe actually, but I got the problem with last page fixed. On Tuesday 15 January 2002 10:20 pm, Steven Cayford banged out on the keys: > To find out if $new_pic pointed to a valid image you would probably need > to do a "select count(*) from ab" to get

Re: [PHP-DB] A weird images database/web page problem

2002-01-17 Thread chip
On Thursday 17 January 2002 08:00 am, Steve Cayford banged out on the keys: > Sorry, I think I got you off track. In this case you *do* want to set > $pic from the GET vars. I guess how I would do this would be something > like this: > > if(! isset($pic)) { $pic = 0; } Thanks, that fixed that par

Re: [PHP-DB] A weird images database/web page problem

2002-01-17 Thread Steve Cayford
Hello again. On Thursday, January 17, 2002, at 01:06 AM, chip wrote: > On Wednesday 16 January 2002 08:57 pm, Steven Cayford banged out on the > keys: >> On 2002.01.16 19:59:37 -0600 chip wrote: >>> Let's tackle the first one first - >> OK. >>> On Tuesday 15 January 2002 10:20 pm, Steven Cayfo

Re: [PHP-DB] A weird images database/web page problem

2002-01-16 Thread chip
On Wednesday 16 January 2002 08:57 pm, Steven Cayford banged out on the keys: > On 2002.01.16 19:59:37 -0600 chip wrote: > > Let's tackle the first one first - > OK. > > On Tuesday 15 January 2002 10:20 pm, Steven Cayford banged out on the > > keys: > > > On 2002.01.15 23:30:25 -0600 chip wrote: >

Re: [PHP-DB] A weird images database/web page problem

2002-01-16 Thread Steven Cayford
On 2002.01.16 19:59:37 -0600 chip wrote: > Let's tackle the first one first - OK. > > On Tuesday 15 January 2002 10:20 pm, Steven Cayford banged out on the > keys: > > On 2002.01.15 23:30:25 -0600 chip wrote: > > > won't work) > > > > > > > > $new_pic=$pic+12; > > > > Is $pic already set by th

Re: [PHP-DB] A weird images database/web page problem

2002-01-16 Thread chip
Let's tackle the first one first - On Tuesday 15 January 2002 10:20 pm, Steven Cayford banged out on the keys: > On 2002.01.15 23:30:25 -0600 chip wrote: > > won't work) > > > > > $new_pic=$pic+12; > > Is $pic already set by the HTTP_GET_VARS here? I don't know. How do I set this? I was reading

Re: [PHP-DB] A weird images database/web page problem

2002-01-15 Thread Steven Cayford
On 2002.01.15 23:30:25 -0600 chip wrote: > I have a database set up with tables of images. I have pages set up to > display the images 12 per page in a table of 2 rows/6 cols. There is a > next > link that loads the next 12 images from the database. All works just fine > > except for one little p

[PHP-DB] A weird images database/web page problem

2002-01-15 Thread chip
I have a database set up with tables of images. I have pages set up to display the images 12 per page in a table of 2 rows/6 cols. There is a next link that loads the next 12 images from the database. All works just fine except for one little problem - the first time the page is loaded the firs