Code: Select all
while ($row = mysql_fetch_array($sql)) {
echo $row['displayOrder']."<br />";
next ($row);
echo $row['displayOrder']."<br />;
}
Moderator: General Moderators
Code: Select all
while ($row = mysql_fetch_array($sql)) {
echo $row['displayOrder']."<br />";
next ($row);
echo $row['displayOrder']."<br />;
}
Could you explain a bit more here; this bit is quite confusingreyes99 wrote:I am reading the menu items in from the db. displayOrder is a numeric value that I have with values 100, 110, 120, 130 and I want to reorganize the menu by adding or subtracting from the next and previous number but I can't figure out how to get the next value.