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 Quote Link to comment Share on other sites More sharing options...
Solution Anti-Moronic Posted January 13, 2011 Solution Share Posted January 13, 2011 Where is $eps? Should it not be $ep+1 or $ep++ ... Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.