Spot on, I forgot that because I was working on a 'test' page, it wasn't going to run under the same Session as my Live page, So I just started a new Session on there and it's fine.
cheers
Search found 173 matches
- Thu Aug 09, 2012 2:19 am
- Forum: PHP - Code
- Topic: read/write Session Variables from a class
- Replies: 2
- Views: 664
- Wed Aug 08, 2012 10:41 am
- Forum: PHP - Code
- Topic: read/write Session Variables from a class
- Replies: 2
- Views: 664
read/write Session Variables from a class
I have created a class to handle some Debugging code, but I am stuck at how to make it read / write to a Session Variable. I have a $Counter variable that normally holds an incrementing Page Counter, which is then stored to a SESSION Variable between page loads. But I can't see how to do it in a cla...
- Thu Aug 02, 2012 7:32 am
- Forum: PHP - Code
- Topic: fopen - many times per page
- Replies: 4
- Views: 726
Re: fopen - many times per page
My only concern with that is that if I am opening and closing a DB connection 25+ times per page (apx 400 times for a complete load, including all includes etc.), isn't that going to add a lot of overhead, and time?
- Wed Aug 01, 2012 11:26 am
- Forum: PHP - Code
- Topic: fopen - many times per page
- Replies: 4
- Views: 726
fopen - many times per page
I've put together a debug function, that is set to run at various point in my site. But as I add more instances of this function I am starting to get more and more errors in the form of: [text]Warning: fopen(.\DebugData\PageListing_20120801_17.txt): failed to open stream: No such file or directory i...
- Thu Jul 26, 2012 5:50 am
- Forum: Javascript
- Topic: Selecting within a selection
- Replies: 1
- Views: 1415
Re: Selecting within a selection
After a good sleep, I realise the answer is as simple as I thought it was: var b = 1; function showRows2() { var $rows2 = $('#dbTable2 tr'); //Get ALL Rows var $rowsST2 = $('#dbTable2 tr.Group1'); //Get Group1 Rows var $rowsBE2 = $('#dbTable2 tr.Group2'); //Get Group2 Rows var $rowsOK2 = $('#dbTable...
- Wed Jul 25, 2012 11:27 am
- Forum: Javascript
- Topic: Selecting within a selection
- Replies: 1
- Views: 1415
Selecting within a selection
I have the following javascript: var b = 1; function showRows2() { var $rows2 = $('#dbTable2 tr'); $rows2.css('display','none'); $rows2.eq(0).css('display','table-row'); //Display Header $rows2.eq(b).css('display','table-row'); //Show Row b = (b == $rows2.length-1) ? 1 : b + 1; //increment by one };...
- Thu Jul 19, 2012 3:48 am
- Forum: Javascript
- Topic: Change Cell Colour and attr in a different Table
- Replies: 4
- Views: 2572
Re: Change Cell Colour and attr in a different Table
No, unless you can see a way to improve it, then it currently does what I need it to,
cheers.
cheers.
- Thu Jul 19, 2012 1:55 am
- Forum: Javascript
- Topic: Change Cell Colour and attr in a different Table
- Replies: 4
- Views: 2572
Re: Change Cell Colour and attr in a different Table
Cheers, that was in fact part of the problem. What I (well not me per se) came up with is: $(document).ready(function() { $("#DBSelectIgnTable").on('click','input:checkbox',function() { if ($(this).prop('checked')) { var val = $(this).val(); $(this).closest('td').removeClass('CellWhite').a...
- Mon Jul 16, 2012 9:33 am
- Forum: Javascript
- Topic: Change Cell Colour and attr in a different Table
- Replies: 4
- Views: 2572
Change Cell Colour and attr in a different Table
Hi Guys, I have a form, which contains 5 tables. Each table has the same headers <th> as the others. Three tables have checkboxes, the others have radio buttons in each <td>. I have a piece of Javascript for each table, which changes the background colour of the selected items. What I am looking to ...
- Fri Jul 13, 2012 10:40 am
- Forum: Javascript
- Topic: Change Cell Colour Based on Checkbox
- Replies: 2
- Views: 1543
Re: Change Cell Colour Based on Checkbox
I see. I have removed the CellWhite as suggested, and modified the statement, and now it works.
cheers.
cheers.
- Fri Jul 13, 2012 8:10 am
- Forum: Javascript
- Topic: Change Cell Colour Based on Checkbox
- Replies: 2
- Views: 1543
Change Cell Colour Based on Checkbox
I have a table set up which contains a set of checkboxes, and am looking for a way to change the background colour of the cell, based on whether the checkbox is checked or not. I have got as far as: <!--THE TABLE --> <form name="DBReturn" action="#" method="post"> <tabl...
- Wed May 09, 2012 9:51 am
- Forum: Javascript
- Topic: Force page reload, new javascript doesn't work
- Replies: 2
- Views: 1939
Re: Force page reload, new javascript doesn't work
thanks, but that is already what I use to reload the page. I think I have narrowed it down to window.location = 'system.SessionDestroy.php'; As the #Alertbox (a table that is changed from 'hide' to 'block' after 180 seconds) appears, but the page isn't refreshed / forwarded / replaced with the syste...
- Wed May 09, 2012 5:42 am
- Forum: Javascript
- Topic: Force page reload, new javascript doesn't work
- Replies: 2
- Views: 1939
Force page reload, new javascript doesn't work
I have a page that reloads every 60 seconds. Periodically though, it just hangs. Previously I used the following javascript to check if the page had refreshed after 180 seconds, and if not forces a refresh, clears all my PHP variables and SESSION data. //n.b. timeout = 0 is for when the page is conf...
- Tue Apr 17, 2012 8:32 am
- Forum: PHP - Code
- Topic: Merge AND Order multiple MySQL Results in PHP
- Replies: 2
- Views: 1013
Merge AND Order multiple MySQL Results in PHP
Is it possible to take the result from 4 different MySQL connections (assuming the query and the tables were the same for all 4), and then merge the results, AND sort the result before presenting it (without writing it back into the database, sorting it, and then exporting it again). $query = "...
- Fri Apr 13, 2012 8:50 am
- Forum: HTML, CSS and other UI Design Technologies
- Topic: CSS or style?
- Replies: 5
- Views: 3020
Re: CSS or style?
From what I was reading, I was told it (multiple classes) wasn't guaranteed to be compatible with all browsers.