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

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

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.