# mySQL connectivity problem (ODBC)

**URL:** <https://forum.kirupa.com/t/mysql-connectivity-problem-odbc/131599>\
**Category:** Uncategorized\
**Created:** [December 17, 2004, 10:16am UTC](https://forum.kirupa.com/t/mysql-connectivity-problem-odbc/131599 "2004-12-17T10:16:08Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![NovemberRain](https://avatars.discourse-cdn.com/v4/letter/n/73ab20/32.png) [@NovemberRain](https://forum.kirupa.com/u/NovemberRain)\
**Post date:** [December 17, 2004, 10:16am UTC](https://forum.kirupa.com/t/mysql-connectivity-problem-odbc/131599/1 "2004-12-17T10:16:08Z")

</div>

I’m a newbie using PHP and mySQL. I’ve managed to make a database from DOS promt and the installation of  
mySQL and PHP. But I can’t read the data from the database  
I’ve done some sites using ASP and MS Access. Is there any ODBC driver installation  
needed to Run PHP and mySQL. Actuall the code and information i’ve retyped in notepad  
so any mistakes in the code apologised.  
Is this portion need any change

“mysql\_connet”

```php
 <?php $db = mysql_connect ("localhost", "root");
mysql_select_db ("mydb", $db);
$result = mysql_query ("SELECT * FROM employees", $db);
printf ("First Name : %s s<br>
", mysql_result ($ result, 0, "first"));
?> 

```

In the mySQL tab environment showing like this  
Localhost Name : ASD  
Local Computer Name: abc  
Local IP Address : 127.0.0.1  
myODBC  
Not Found  
Driver 3.51 Not found  
UserName = abhilash  
Password = inertia

Any suggestion will really appreciable. Thanks in advance
