bamfon Posted January 13, 2011 Share Posted January 13, 2011 <?php $con = database_connect(); $sql = "SELECT * FROM episode1 ORDER BY ep DESC LIMIT 1"; $result = mysql_query($sql); while ($row = mysql_fetch_assoc($result)) { $ep = $row['ep']; } ?> <?php echo ($eps +1); ?> Well what i am trying to do here is make it call the ep from the row and +1 on to it but it dont seem to be working :s i have tryed to do it other ways but none of them work Link to comment https://forums.phpfreaks.com/topic/224366-eps-1/ Share on other sites More sharing options...
Anti-Moronic Posted January 13, 2011 Share Posted January 13, 2011 Where is $eps? Should it not be $ep+1 or $ep++ ... Link to comment https://forums.phpfreaks.com/topic/224366-eps-1/#findComment-1159111 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.