Search found 18 matches

by denz
Fri May 26, 2006 7:23 am
Forum: PHP - Code
Topic: merge array but force overwrite
Replies: 1
Views: 232

worked it out! $add_serv = mysql_query("select * from add_serv"); while ($add_serv_r = mysql_fetch_assoc($add_serv)) { $_SESSION[$add_serv_r['serv_code']] = null; } put this at the bottom of the page which gernates the form, so when passed to the next page the session vars are set only to ...
by denz
Fri May 26, 2006 7:08 am
Forum: PHP - Code
Topic: merge array but force overwrite
Replies: 1
Views: 232

merge array but force overwrite

Hi All, a little stumped here! I have a page of options on a from which are dynamically created from the DB, so i've no idea how many options will be passed to the next page, could 1 or 100. On the following page i need to convert the $_POST in to a Session variable, to anaylse it and remember it fo...
by denz
Fri Apr 21, 2006 4:25 pm
Forum: PHP - Code
Topic: Global Variables from Database
Replies: 1
Views: 300

Global Variables from Database

Hi All I would like to store all my global site variables in the database. I've created all the structure, and filled the data directly to the table, but i was wondering the best way to allow all these variables to be available to the application for all users. Would it be easiest to get all users t...
by denz
Thu Apr 20, 2006 9:37 am
Forum: PHP - Code
Topic: Calendar - Database Driven
Replies: 10
Views: 1055

Thanks ole

i think i get it now! :D
by denz
Wed Apr 19, 2006 5:36 pm
Forum: PHP - Code
Topic: Calendar - Database Driven
Replies: 10
Views: 1055

As crazy as it sounds, I ended up adding a record for each room/day. i have been thinking this could be the best way to go, but considering i may have 68 rooms (or more), each booked out every day, 7 days a week the number if records in the table would be massive. I would need to keep some kind of ...
by denz
Wed Apr 19, 2006 4:07 pm
Forum: PHP - Code
Topic: Calendar - Database Driven
Replies: 10
Views: 1055

i'll admit i'm a little stuck

ok, lets assume i only have one room. someone has booked the room from the 1st may - 5th may. someone else wants to book from the 2nd may 4th, how on earth could i query this to see it's already booked?
by denz
Wed Apr 19, 2006 3:26 pm
Forum: PHP - Code
Topic: Calendar - Database Driven
Replies: 10
Views: 1055

thanks guys. i think that give me lots to be getting on with!
by denz
Wed Apr 19, 2006 12:54 am
Forum: PHP - Code
Topic: Calendar - Database Driven
Replies: 10
Views: 1055

The number is rooms is likely to increase in time, also when people book they wont be able to select the room number as all rooms are effectivly the same.

Does this make things harder?
by denz
Tue Apr 18, 2006 5:14 pm
Forum: PHP - Code
Topic: Calendar - Database Driven
Replies: 10
Views: 1055

Calendar - Database Driven

HI All I'm just in the process of designing a new application, but having troubles getting my head around the schema design. I'm creating a date based booking system where customers can book a room for as many or few full days as they wish. There is of course a limit to the number of rooms available...
by denz
Mon Dec 12, 2005 5:08 pm
Forum: Javascript
Topic: Variables in the Javascript DOM
Replies: 2
Views: 674

Wonderful, you're a hero again!

8)
by denz
Mon Dec 12, 2005 4:56 pm
Forum: Javascript
Topic: Variables in the Javascript DOM
Replies: 2
Views: 674

Variables in the Javascript DOM

Hi all I would like to update a field on the web page based on a radio button checked. The radio button has the same id as an image, so if i select radio button with the id of 6 i would like to be able to get the src of img with the id of 6 and move it the the opener page i've tried this: opener.doc...
by denz
Wed Nov 23, 2005 3:28 pm
Forum: Javascript
Topic: Passing values between windows
Replies: 2
Views: 444

wonderful! Thank you very much
by denz
Wed Nov 23, 2005 2:35 pm
Forum: Javascript
Topic: Passing values between windows
Replies: 2
Views: 444

Passing values between windows

Hi All! I need to be able to pass a value between 2 windows, so for example, your filling out a form then you need to select something for one of the fields, so you click a button another window fires up and you can make your selection... how would i get that variable to pass back to my original pag...
by denz
Tue Sep 13, 2005 3:52 pm
Forum: PHP - Code
Topic: FYI: While problem
Replies: 3
Views: 332

FYI: While problem

Hi all Just to let you know a silly problem I've just encountered which took me a good while to fix and I didn't see it for a while at all - infact i only saw it here when I was composing a post on here! (shows what a help this site is!) anyway - here is the code, if it helps someone then my work he...
by denz
Thu Jul 28, 2005 2:50 am
Forum: PHP - Theory and Design
Topic: Database image storage versus disk based storage
Replies: 12
Views: 4957

great! thanks for your help guys