Php/Mysql problem - undiefined method mysql_connect()

2005-05-16 Thread CIKALA Frédéric ROSI/SIPROD
Hello everyone,
 
I've installed mysql server on my fedora box and it works great when i use the 
console =)
 
But, i want my php sources to work with these bases but it doesn't work =(
In fact it seems that the function mysql_connect() cannot be called, here is 
the error on the web page :
Fatal error: Call to undefined function: mysql_connect() in 
/var/www/html/TechUnix/include/connexion.php on line 10

 
So i checked google and found out that a special rpm was needed .. so i've 
looked for it and when i try to install it, it tells me that :
 
[EMAIL PROTECTED] dl]# rpm -ivh php-mysql-4.3.12-alt0.cvs20050406.i586.rpm
warning: php-mysql-4.3.12-alt0.cvs20050406.i586.rpm: V3 DSA signature: NOKEY, 
key ID 68e31e54
error: Failed dependencies:
libMySQL is needed by php-mysql-4.3.12-alt0.cvs20050406.i586
php-libs = 1:4.3.12-alt0.cvs20050406 is needed by 
php-mysql-4.3.12-alt0.cvs20050406.i586
libmysqlclient.so.12 is needed by php-mysql-4.3.12-alt0.cvs20050406.i586

 
So i tried :
 
[EMAIL PROTECTED] dl]# rpm -ivh libMySQL-3.23.55-alt1.i586.rpm
warning: libMySQL-3.23.55-alt1.i586.rpm: V3 DSA signature: NOKEY, key ID 
eac91ca0
error: Failed dependencies:
/sbin/postun_ldconfig is needed by libMySQL-3.23.55-alt1.i586

 
:(
 
the only thing i know is 
[EMAIL PROTECTED] dl]# rpm -qa  |grep mysql
mysql-3.23.58-13
libdbi-dbd-mysql-0.6.5-9
mysql-devel-3.23.58-13
mysql-server-3.23.58-16.FC3.1
[EMAIL PROTECTED] dl]#

 
I'm quite a newby and do not really understand how i can install this pakage  

if someone could help ...^^
 
(I run a fedora Core 3)


RE: Need help in running MySql in PHP script

2005-05-16 Thread CIKALA Frédéric ROSI/SIPROD
It seems like you got the same problem' as me :
Php (? ) do not have the librairies include, and you need to run a kink of 
daemon in order to make t works.
Under linux, it is just a question of the good rpm to install (for me it was 
php-mysql-4.3.9-3.i386.rpm).
Under windows, you'll need to install some kind of bridge whose name begins 
with php-mysql*.
Check weather the php.ini has got the extension ligne uncommented ...

Hope it helps

-Message d'origine-
De : madderla sreedhar [mailto:[EMAIL PROTECTED]
Envoyé : lundi 16 mai 2005 14:52
À : sql firm
Objet : Need help in running MySql in PHP script


Hi,
  Iam using mysql 5.04 , php 5.0 with IIS 5.0
webserver  and written some scripts and executed
on IE webbrowser but getting an fatal error
undefined function mysql_connect() in the code 
kindly tell me where iam going wrong and also tell
the mysql username how to find it out becoz when
Iam opening the Mysql from start button it only
asks the password and doesnot prompt for an
username tell the porcedure to create a new user
an tell me how to identify the current user in
Mysql.
Is there any special code to be written in .ini
file of php to link Mysql with php to run the
Mysql code in php scripts,if so please tell the
code required  in detail.

Any sort of help is welcome.

Thanks 


Sreedhar

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]


--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]