undefined function mysql_connect
am 01.10.2006 11:30:26 von ljuljacka
I'm programming a simple poll that connects to the database. When I choose
an option from poll.html(calls action poll.php) and submit it, everything
works fine(the entry is recorded in the table), but when I debug the script
(poll.php) I get error: undefined function mysql_connect.
All of the extensions neccesery are uncommented, and paths are correct. When
I call phpinfo(), I get mysql information. I've tried setting an environment
variable named php with value C:\wamp\php and that's not doing the trick.
I've copied php_mysql(i).dll to folder where php is installed and that
doesn't work either. I've also tried copying libmysql.dll to system32
folder(got some suggestions)...also didn't work. I'm using wamp ver 5.
I'm out of ideas, so if you have any, they will be well appreciated.
Dejan
Re: undefined function mysql_connect
am 05.10.2006 20:37:48 von Peter
> I'm programming a simple poll that connects to the database. When I choose
> an option from poll.html(calls action poll.php) and submit it, everything
> works fine(the entry is recorded in the table), but when I debug the
> script
> (poll.php) I get error: undefined function mysql_connect.
>
> All of the extensions neccesery are uncommented, and paths are correct.
> When
> I call phpinfo(), I get mysql information. I've tried setting an
> environment
> variable named php with value C:\wamp\php and that's not doing the trick.
> I've copied php_mysql(i).dll to folder where php is installed and that
> doesn't work either. I've also tried copying libmysql.dll to system32
> folder(got some suggestions)...also didn't work. I'm using wamp ver 5.
>
> I'm out of ideas, so if you have any, they will be well appreciated.
Can you supply some code and the exact error. It seems strange that the
table is updated but you receive this error.
Alos sorry I originally sent this to your own email instead of the group
Re: undefined function mysql_connect
am 07.10.2006 12:30:58 von ljuljacka
I'vo solve this problem....it was strange to me also, but it was just the
editor I work in...it forgot location of php.ini somehow :)
"peter" wrote in message
news:eg3jdt$h27$1@emma.aioe.org...
>> I'm programming a simple poll that connects to the database. When I
>> choose
>> an option from poll.html(calls action poll.php) and submit it, everything
>> works fine(the entry is recorded in the table), but when I debug the
>> script
>> (poll.php) I get error: undefined function mysql_connect.
>>
>> All of the extensions neccesery are uncommented, and paths are correct.
>> When
>> I call phpinfo(), I get mysql information. I've tried setting an
>> environment
>> variable named php with value C:\wamp\php and that's not doing the trick.
>> I've copied php_mysql(i).dll to folder where php is installed and that
>> doesn't work either. I've also tried copying libmysql.dll to system32
>> folder(got some suggestions)...also didn't work. I'm using wamp ver 5.
>>
>> I'm out of ideas, so if you have any, they will be well appreciated.
>
> Can you supply some code and the exact error. It seems strange that the
> table is updated but you receive this error.
>
> Alos sorry I originally sent this to your own email instead of the group
>