I am getting Warning messages / Error like this:
Warning: SQL error: [Microsoft][ODBC Driver Manager] Data source
name not found and no default driver specified, SQL
state IM002 in SQLConnect in
c:\windows\system\inetsrv/karthick/display.php3 on line 2
Oops
Fatal error: Call to unsupported or undefined function mysql_connect()
in c:\windows\system\inetsrv/karthick/testdb.php3
on line 2
What to do ?. I have not yet solved the problem. It would be very
helpful for me if somebody writes me the steps that I should follow for
solving this problem.
Somebody...... Please...... help me on this. Thanx in advance. Bye
for now !.
Regards,
TV Karthick Kumar
karthick@stripped
http://www.karthick.com
Helmut Ebelt wrote:
> your server doesn't support the mysql - statements ... you have
> probably to load dynamically the mysql - library:
> dl("php3_mysql.dll"); at the beginning of the script !1 But there are
> many different ways !!! probably you have to load another module into
> your server !!! there isn't ONE answer !Helmut Ebelt
>
> -----Ursprüngliche Nachricht-----
> Von:TV Karthick Kumar
> An: PHP Mailing List ; Venky ; MySQL mailing list
> Gesendet: Freitag, 27. August 1999 15:17
> Betreff: [PHP3] Problem - Help
> Hi:
>
> As I am using PHP with mySQL, I downloaded the mySQL
> ODBC with mysql.com's website and installed just now. I am
> using under Windows machine / operating system. But even
> though I have installed the odbc I can't progress with the
> Database interface. It give me Error like this:
>
> Fatal error: Call to unsupported or undefined function
> mysql_connect() in
> c:\windows\system\inetsrv/karthick/testdb.php3
> on line 2
>
> I have written script for this, which I have attached
> with this mail <testdb.php3>. It doesn't works properly. I
> have installed mySQL ODBC in Windows platform (which I
> downloaded from mysql.com !). I have setup the mySQL odbc as
> it follows:
>
> host: localhost
> user: root
> password: <nothing, blank>
> port: 3306
>
> That's all.
>
> Do I need to start some separate service for starting
> this kind of ODBC Connectivity. If yes, somebody can help me
> ?.
>
> Thanx in advance. Bye for now !.
>
> --
> Best Regards,
> TV Karthick Kumar
> Aspire Systems, India
> karthick@stripped
>
>
> -------------------------------------------------------------
>
> <?php
> $dbh = mysql_connect("localhost:3306", "root", "");
> mysql_select_db("test");
> $query = "select * from test";
>
> $result = mysql_query($query, $dbh);
>
> $fields = mysql_num_fields($result);
>
> while ($row=mysql_fetch_array($result)) {
> for ($i=0; $i<$fields; $i++) {
> $name=mysql_field_name($result, $i);
>
> echo "$name = $row[$name]<BR>\n";
> }
> echo "<br><br>\n";
> }
> <?
>
>
> -------------------------------------------------------------
>
> --
> PHP 3 Mailing List <http://www.php.net/>
> To unsubscribe, send an empty message to
> php3-unsubscribe@stripped
> To subscribe to the digest, e-mail:
> php3-digest-subscribe@stripped
> To search the mailing list archive, go to:
> http://www.php.net/mailsearch.php3
> To contact the list administrators, e-mail:
> php-list-admin@stripped
>
--
Best Regards,
TV Karthick Kumar
Aspire Systems, India
karthick@stripped