hansolo Posted February 27, 2013 Share Posted February 27, 2013 to my understanding the asterisk gives all the rows in a datbase table. How do get 1 the st row $result = mysql_query("SELECT * FROM $table"); while($row = mysql_fetch_array($result)) {echo$row['1st_name '] . " " .$row['2nd_namel'];} thankyou Link to comment Share on other sites More sharing options...
hansolo Posted February 27, 2013 Author Share Posted February 27, 2013 sorry the above should be in the php forum Link to comment Share on other sites More sharing options...
justsomeguy Posted February 27, 2013 Share Posted February 27, 2013 The asterisk tells it to return all columns, you use the WHERE clause to tell it which rows to return. http://www.w3schools.com/sql/sql_where.asp Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now