Jump to content

Recommended Posts

and obviously dreamweaver will also be adding code that might not be necessary.....but I wouldn't know what to remove - noob, remember....using dreamweaver might not be the best way to learn (or not as the case may be) but that is what I am using.

 

Is Dreamweaver writing the code for you...or are you just using it as a text editor? Using Dreamweaver in Code view doesn't add extra code that I'm aware of.

I will take a look at a while loop, and find out you mean by the other fetch

 

You're currently fetching the first row of data after executing the query...and then again in your do/while loop. If you switch to a while loop, you would only need to have the fetch in there once.

 

 

<?php
//...
 
$recordset1 = mysql_query($query_recordset1, $Connection1) or die(mysql_error());
$row_recordset1 = mysql_fetch_assoc($recordset1);
 
//...
?>
 
<?php } while ($row_recordset1 = mysql_fetch_assoc($recordset1)); ?>
This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.