Jump to content

translation please.


villain222

Recommended Posts

I'm having some trouble working on a site that i started a few years ago.  I'm basically relearning how it was working, or not working.  I've been able to figure out most, but I've come across something that I'm not finding online. 

What is the purpose of this $i here?

$catSQL = "SELECT * from category";
$stSQL = mysql_query($catSQL) or die ("<br><font color='red'><b>There was a problem!</b></font><br><br>" . mysql_error()); 
while ($i < mysql_num_rows($stSQL)) { 
$catname=mysql_result($stSQL,$i,"name");
$catid=mysql_result($stSQL,$i,"id");
$categoryDropdown .= "<option value=".$catid.">".$catname."</option>";
++$i;
}

Link to comment
https://forums.phpfreaks.com/topic/220450-translation-please/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.