Re: [PHP-DB] Call to undefined function mysql_connect()

2004-08-01 Thread Lester Caine
Phpdiscuss - Php Newsgroups And Mailing Lists wrote:
I agree to you as my phpinfo does not show mysql at all. can you help me
as in how do i get the mysql support for the same, im using PHP/MYSQL on
windows 2000
By default on PHP5, MySQL is not now built in ( since more and more of 
us are no longer using it ;) ).

First thing to do is enable the php_mysql.dll line in the Extensions 
section of the php.ini file ( working copy should be in c:\WINNT )

Second thing - which I can't help with - is MySQL itself installed on 
the machine :)

Third thing - have a look at some of the alternatives ;)
--
Lester Caine
-
L.S.Caine Electronic Services
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP-DB] Call to undefined function mysql_connect()

2004-06-30 Thread Cole S. Ashcraft
Rinku's Response: I may be missing something, but hows that related?
The phpinfo() function generates a page that shows what is installed. 
See if the configure string has --with-mysql or something like it. There 
also should be a section called mysql. Take a look at 
http://ashcraftfamily.net/info.php.

Leandro de Oliveira wrote:
I don´t know how to see if mysq is enabled
but i tested this, it is like i have no php
file: form.php
html
head
titleForms/title
/head
body
?php
if ($text != )
echo You wrote \$text\ brbr;
?
form method=POST action=form.php
input type=text name=text value= size=10
br
input type=submit name=sub value=Send it!
/form
?php
echo $HTTP_USER_AGENT;
?
/body
/html
submit dont works, echo $HTTP_USER_AGENT too, but phpinfo() worked!
what is going on?

-
Crie seu Yahoo! Mail, agora com 100MB de espaço, anti-spam e antivírus grátis!
 


--
This message has been scanned for viruses and
dangerous content by MailScanner, and is believed to be clean.
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP-DB] Call to undefined function mysql_connect()

2004-06-29 Thread Leandro de Oliveira

I don´t know how to see if mysq is enabled

but i tested this, it is like i have no php

file: form.php

html
head
titleForms/title
/head

body

?php
if ($text != )
 echo You wrote \$text\ brbr;
?

form method=POST action=form.php
input type=text name=text value= size=10
br
input type=submit name=sub value=Send it!
/form

?php
echo $HTTP_USER_AGENT;
?

/body
/html

submit dont works, echo $HTTP_USER_AGENT too, but phpinfo() worked!

what is going on?




-
Crie seu Yahoo! Mail, agora com 100MB de espaço, anti-spam e antivírus grátis!

Re: [PHP-DB] Call to undefined function mysql_connect()

2004-06-29 Thread Rinku
if ($text != ) You had used this.
 
Pls use this so that you can access the value for the variable
if($_POST['text']!=)
 
I hope this will help you.

Leandro de Oliveira [EMAIL PROTECTED] wrote:

I don´t know how to see if mysq is enabled

but i tested this, it is like i have no php

file: form.php








if ($text != )
echo You wrote \$text\ 

;
?


 [input] 


 [input] 


echo $HTTP_USER_AGENT;
?




submit dont works, echo $HTTP_USER_AGENT too, but phpinfo() worked!

what is going on?




-
Crie seu Yahoo! Mail, agora com 100MB de espaço, anti-spam e antivírus grátis!

-
Do you Yahoo!?
New and Improved Yahoo! Mail - Send 10MB messages!

Re: [PHP-DB] Call to undefined function mysql_connect()

2004-06-28 Thread Rinku
And If you need any documentation for Apache, PHP,
Mysql and PhpMyAdmin Installation on WinXP or for
WinNt then pls do write me I'll send it to you.

Rinku
--- Larry E. Ullman [EMAIL PROTECTED]
wrote:
  But i received Call to undefined function
 mysql_connect() on line 5
 
  Can anyone help me?
 
 Your PHP installation apparently does not support
 MySQL. You can 
 confirm this by running a phpinfo() script. You may
 need to 
 reinstall/recompile PHP.
 
 Larry
 
 -- 
 PHP Database Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 
 




__
Do you Yahoo!?
Read only the mail you want - Yahoo! Mail SpamGuard.
http://promotions.yahoo.com/new_mail 

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP-DB] Call to undefined function mysql_connect()

2004-06-27 Thread Leandro de Oliveira
Hi!
 
I want test MySQL with PHP, for that I wrote this:
 
html
headtitleTest MySQL/title/head
body
?php
$con = mysql_connect(localhost, lehphyro, );
$success = mysql_select_db(mysql, $conexao);
if ($success  0)
 echo Success!!;
else {
 echo Failure!!;
 echo mysql_error();
}
?
/body
/html
 
But i received Call to undefined function mysql_connect() on line 5
 
Can anyone help me?
 
Thanks!



-
Crie seu Yahoo! Mail, agora com 100MB de espaço, anti-spam e antivírus grátis!

Re: [PHP-DB] Call to undefined function mysql_connect()

2004-06-27 Thread Larry E . Ullman
But i received Call to undefined function mysql_connect() on line 5
Can anyone help me?
Your PHP installation apparently does not support MySQL. You can 
confirm this by running a phpinfo() script. You may need to 
reinstall/recompile PHP.

Larry
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP-DB] Call to undefined function mysql_connect()

2004-06-27 Thread Cole S. Ashcraft
Create a page called phpinfo.php. In it put ?php phpinfo() ?. Search 
for MySQL. You probably don't have MySQL support in your installation.

Cole
Leandro de Oliveira wrote:
Hi!
I want test MySQL with PHP, for that I wrote this:
html
headtitleTest MySQL/title/head
body
?php
$con = mysql_connect(localhost, lehphyro, );
$success = mysql_select_db(mysql, $conexao);
if ($success  0)
echo Success!!;
else {
echo Failure!!;
echo mysql_error();
}
?
/body
/html
But i received Call to undefined function mysql_connect() on line 5
Can anyone help me?
Thanks!

-
Crie seu Yahoo! Mail, agora com 100MB de espaço, anti-spam e antivírus grátis!
 


--
This message has been scanned for viruses and
dangerous content by MailScanner, and is believed to be clean.
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP-DB] call to undefined function mysql_connect() [PHP / MySQL / Red Hat 8]

2004-02-26 Thread Jono
Hey.

I've just installed Red Hat 8 from a downloaded distribution and have set up
Apache, PHP and MySQL. The problem I have is my old code that I wrote in a
Windows environment doesn't work.

The error I get is: call to undefined function mysql_connect()

I know that Apache is running fine and I know that PHP and MySQL run okay
independantly of each other, but I can't work out how to get them working
together.

Any Ideas?

Thanks, Jono.

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php