thelibertarian
Newbie
- Mar 13, 2013
- 9
- 0
Regarding the following line of code... I have broken the rules of programming, for the sake of breaking apart each component of a single line of code, and add comments to describe each...
My comments are probably incorrect & but thats my question... are they accurate comments?
If not accurate, please let me know
I am trying to fully undertand this...
Line of code in question...
same code... after being broken down to each component with comments...
**Thanks in Advance
**
My comments are probably incorrect & but thats my question... are they accurate comments?
If not accurate, please let me know
I am trying to fully undertand this...
Line of code in question...
PHP:
echo '<h2>' . $stuff['heading'] . '</h2>';
same code... after being broken down to each component with comments...
PHP:
//This is what I understand, probably incorrectly...
//this is defining the array name as $stuff
while($stuff = mysql_fetch_array($query)) {
//this tells the system to display on screen
echo
//this opens the header-2 css tag
'<h2>'
//this combines more than 1 thing's, as 1 group-thing
.
//this is the array name
$stuff
//this USES the data from the database already defined as heading (wherever that needs to be & whatever that is and can change via phpmyadin...
//this is a question on hold for later)
['heading']
//this combines more than 1 things, as 1 group-thing
.
//this closes the open header-2 css tag
'</h2>'
//this is the end
;
**Thanks in Advance