slj90 Posted February 6, 2014 Share Posted February 6, 2014 (edited) I have a SQL code that works when I run it through phpmyadmin but I can't get PHP to display the results on a page. Here is my attempt: <?php require 'connect.php'; $query = "SELECT * FROM table003 WHERE status='pending' ORDER BY id ASC LIMIT 1"; $result = mysql_query($query); $row = mysql_fetch_row($result); echo $row[1]; echo $row[2]; ?> It displays nothing. Thanks --- Update: I got it working now and edited the code in this forum. Edited February 6, 2014 by slj90 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.