PHP and MySql

Reply

Join Date: Aug 2005
Posts: 22
Reputation: ashwinperti is an unknown quantity at this point 
Solved Threads: 0
ashwinperti ashwinperti is offline Offline
Newbie Poster

PHP and MySql

 
0
  #1
May 19th, 2006
Hello

As I am new to PHP I would like to know that

I am facing problem connecting to the Database.

And not able to find the reason of not connecting.

I also want to know about the difference between

mysql_query, mysql_fetch_row, mysql_fetch_num


Ashwin Perti
Reply With Quote Quick reply to this message  
Join Date: Jul 2004
Posts: 166
Reputation: Lafinboy is an unknown quantity at this point 
Solved Threads: 7
Lafinboy's Avatar
Lafinboy Lafinboy is offline Offline
Junior Poster

Re: PHP and MySql

 
0
  #2
May 19th, 2006
What problems are you having connecting to the db? Can you post your connection code and any error messages you receive.

mysql_query performs a query
mysql_fetch_row fetches a row of data from the array result of the query
mysql_fetch_num is shorthand for mysql_fetch_array($result, MYSQL_NUM) - it returns the result array with numeric keys
If I've been a help please confirm by clicking the Add to Lafinboy's Reputation link in the header of this reply.

Lafinboy Productions
:: Website Design :: Website Development ::

Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:




Views: 2268 | Replies: 1
Thread Tools Search this Thread



Tag cloud for PHP
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC