Re: [PHP] "My truth comes out" [1]

2010-10-21 Thread Alexander Schrijver
On Thu, Oct 21, 2010 at 08:15:40PM +1000, Russell Dias wrote: > Whats wrong with an if *construct* ? I understand that the ternary > operator is another way of doing it. Using it in such a small scenario > is perfectly justifiable. Its ridiculous to use in more complicated > scenarious because of r

Re: [PHP] Weird Behavior

2010-10-21 Thread Alexander Schrijver
On Wed, Oct 20, 2010 at 07:02:49PM -0400, ad...@buskirkgraphics.com wrote: > Hm > > I guess the little person inside, just hates the long way of doing > something. > > > My suggestion > > $CD = 1287583899; > $q1s = 1283313600; > $q1e = 1291093200; > $q2s = 1291179600; > $q2e = 1298869200; >

Re: [PHP] Weird Behavior

2010-10-20 Thread Alexander Schrijver
On Wed, Oct 20, 2010 at 07:35:26AM -0700, Don Wieland wrote: > Little help please ;) > > $CD = 1287583899 > $q1s = 1283313600 > $q1e = 1291093200 > $q2s = 1291179600 > $q2e = 1298869200 > $q3s = 1298955600 > $q3e = 1306814400 > $q4s = 1306900800 > $q4e = 1314763200 > > Why does the following not

Re: [PHP] odd while behavior...

2010-10-16 Thread Alexander Schrijver
On Sat, Oct 16, 2010 at 11:12:03AM -0400, Jason Pruim wrote: > Okay so I'm just playing around with some stuff trying to learn more > and expand my knowledge and I ran into something I don't > understand... Take the following code: > > > echo ""; > $i ="0"; > while($i <="12") { > > $dat

Re: [PHP] References in Sessions

2010-10-14 Thread Alexander Schrijver
On Thu, Oct 14, 2010 at 05:36:29PM +0200, Sebastian Detert wrote: > Alexander Schrijver schrieb: > >Is my message unclear? or didn't anyone ran into this problem? > > > If you want an atomic solution, you need to save the session to your > database. How often do you nee

Re: [PHP] References in Sessions

2010-10-14 Thread Alexander Schrijver
Is my message unclear? or didn't anyone ran into this problem? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Scripts running twice

2010-10-12 Thread Alexander Schrijver
On Tue, Oct 12, 2010 at 07:52:46PM +0100, Ashley Sheridan wrote: > >On Tue, 2010-10-12 at 20:45 +0200, Alexander Schrijver wrote: > > On Tue, Oct 12, 2010 at 05:29:39PM +0100, [1]...@ashleysheridan.co.uk wrote: > > That's probably it then! Some browsers make multip

Re: [PHP] Unknown Table i field list

2010-10-11 Thread Alexander Schrijver
On Mon, Oct 11, 2010 at 03:09:35PM -0400, Gary wrote: > I have used this same script a number of time, this is the first time I am > getting this error did you also check the db name is correct? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.p

Re: [PHP] References in Sessions

2010-10-11 Thread Alexander Schrijver
On Mon, Oct 11, 2010 at 04:43:06PM +0200, Sebastian Detert wrote: > Why don't you write a small function checking for invalid IDs and > delete them and referenced subIDs? If you guess it's to hard/slow to > find out all referenced subIDs you could change your Session array > to an multi-dimensional

[PHP] References in Sessions

2010-10-11 Thread Alexander Schrijver
Hi list, I'm working on a project which uses a MySQL database to store some data. The database looks something like this: Companies - id (PK) - name - sector_id -> Sectors (id) - etc Locations - id (PK) - company_id -> Companies (id) - name - etc Sectors - id (PK) - name - etc And we're using