Thank you for reading my post. I am not a programmer but have managed at my age to get along by copying and pasting code and getting things to work.
I am stuck.. i want to assign values that I pulled out of an database and applied to css Tabs so that i can use it again on later the same page. My problem is in the second area i want to use it i cannot pull the content the same way as in that area i am pulling other data from the database.
Thank you... you have given me the correcting wording i need to explain this properly!
I want the data to be available outside of the stepping thing... in other words once i have closed the connection and the loop or steps have run their course i want those records available in another place...Outside the Stepps(lol) Where they are they are being used for the purpose(Jquery Tabs..) so i need them without stepping through loops or "while" or "if"'s
Let me try an explain it this way !
(1)I have 4 tabs.. the script above calls the titles for those tabs! - it works well
(2)The body and content of each tab i want to call data from another table into those tabs. the thing is i cannot call the data properly because i need those 4 or 5 records to serve as filter to call the correct data from the other table!
See this page <snip>
Each tab has its own script calling data from the same table but filtered with the headings of the tabs
That is why i need the tabs headings or titles again without loop or stepping them through anything
[edited by: incrediBILL at 6:21 pm (utc) on Apr 20, 2014] [edit reason] URls removed. No site reviews. Please see forum charter and TOS [/edit]
I want the data to be available outside of the stepping thing...
That was why I assigned the table data to the variable $data - this is then available later in the page, wherever you want to use it. But by the very nature of this data (a series of records and fields) you are likely going to have to loop/step through it in order to be able to use it? Unless you generate your HTML in the initial data retrieval stage (assign this to a variable) and simply output the HTML later?
You don't need to step through the $data array if you just want to extract a single value from it. Like in my example above: $data;
If you need this data in an entirely different part of your site then you are likely going to have to open the database connection again to retrieve this information.