businessman332211@hotmail.com Posted June 30, 2006 Share Posted June 30, 2006 EDIT- SOLVED THANKS FOR ALL THE HELPI am trying to do some basic db calls through php but I don't know how, how do I get this to format out, like how do I get a basic function call to atleast display then I can start working onlearning how to get it formatted looking nicer.http://www.betterloans.com/ratesheet.php?P...fc83c22e66f2435 Link to comment Share on other sites More sharing options...
businessman332211@hotmail.com Posted June 30, 2006 Author Share Posted June 30, 2006 I tried using$section1 = mysql_query("SELECT * FROM `arm3_1_417upto` LIMIT 0 , 30");echo "{$section1}";and it just saidresource #2 as the output Link to comment Share on other sites More sharing options...
ThePsion5 Posted June 30, 2006 Share Posted June 30, 2006 The problem is that results from a database in PHP are returned not as text but at a 'resource', a block of data representing the results you've recieved. To get the information out of it you need to use PHP's mysql functions, like mysql_num_rows() and mysql_fetch_array() and such. They're documented on PHP's website. Link to comment Share on other sites More sharing options...
rms230 Posted July 2, 2006 Share Posted July 2, 2006 wot you tying to do to the database just select a colum because that can be done very easy like SELCT columname FROM databasename 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