Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
 
  HOME    TRACKER    PHP




Connection To Mysql Working In Eclipse But Not On Apache?


I have installed apache, php5 and mysql on my laptop.

I write my code in eclipse and when I test it inside eclipse, the mysql
database connection is working, I can execute the script inside
eclipse. But when I put that same script into my htdocs on the apache
server running on the same laptop and access it using my browser, I get
a "Call to undefined function mysql_connect()" error message.




View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread
Is Mod_jk Connection Available In My Apache?
is mod_jk connection available in my apache which is installed my pc. how
can i know that. i use Apache/2.2.0 (Win32) and PHP 5.1.1.

Connection To MSSQL Server Has Stopped Working
I made all the necessary changes to my server (windows 2k3 r2) in
order to get my php page to read from my MS SQL (v6.5) server (on
another machine). I was able to pull data down last night with no
problem. Today, however, I get nothing. The server I'm pulling from
is up and has no errors. If I change the login/password for the
connection string to something wrong, I don't get an error message.
In fact, the page is blank as if there was an error within the code
(this is regardless of whether I use a correct or incorrect login).
Yesterday when it was working, if I used the wrong login, I got the
usual error message back. If I comment out all the lines regarding
the connection, it builds the table just fine.

I've attached my code below (stripped out some table columns and data
manipulation code).

I have copied ntwlibd.dll to my windowssystem32 directory and
enabled the "extension=php_mssql.dll" line in my php.ini file.

If anyone has seen this before or has any suggestions, please let me
know... this is quite frustrating.

<?php
$con = mssql_connect('server', 'login', 'password');
if (!$con)
{
die('Could not connect: ' . mssql_error());
}
mssql_select_db("CM", $con);
$sql="SELECT *FROM Private_Build";
$result = mssql_query($sql);
echo "<table border=&#391;'>
<tr>
<COL width=ï`'>
<th bgcolor='black' style ='color:white'>Patch ID</th>
</tr>";
while($row = mysql_fetch_array($result))
{
echo "<tr>";
echo "<td>" . $row['Packages'] . "</td>";
echo "</tr>";
}
echo "</table>";
mssql_close($con);
?>

Php Docs Not Working On Apache
I've installed php4.0.4 on a linux machine running apache 1.3.19 but the
php is not working properly. When I try to open a php doc all i get is the
actual code - not the output eg. <? echo "This isn't working" ?>

These line have been added to my httpd.conf file:

AddModule mod_php.c
AddModule mod_php3.c
AddModule mod_perl.c
LoadModule php_module modules/mod_php.so
LoadModule php3_module modules/libphp3.so
LoadModule php4_module modules/libphp4.so
LoadModule perl_module modules/libperl.so
AddType application/x-httpd-php3 .php
AddType application/x-httpd-php .php

Newline And Tab Not Working In PHP 5.0.3 | Apache 2.0.52 | Windows XP Pro
The following examples (see PHP 5 for Dummies, p. 82)
do not produce the expected results:

$string = "Hello
World";
echo $string;

and

$string = "Line 1
Line 2";
echo $string;

The first instance is for a line break such that the words are stacked:

Hello
World

The second instance is for a line break with a tabbed second line:

Line 1
Line 2

Do I need to change or add something in one of the configuration files?
Otherwise, is there a known fix for this?

Php/Apache Settings, Fsockopen Not Working?
I am having problems on my websites with certain things not working. My one site will not grab rss feeds, and the other wont report external torrent information. I thought it night be the allow_url_fopen in php.ini, but it was set to On.

What other options could be affecting this? I am running slackware 11, PHP 4.4.4, MYSQL 5.0.24a, apache-1.3.37-i486-2

Connection With MySQL. Navicat - CANNOT CONNECT TO MYSQL SERVER ON LOCALHOST
I am new in PHP & MYSQL. I installed PHP & MYSQL properly. To easy
operate for MYSQL I installed Navicat and it installed properly. But
when I am going to test the connection between MYSQL & Navicate the
error message showing CANNOT CONNECT TO MYSQL SERVER ON LOCALHOST
(10022) it should mention that my connection name = localhost, Ip =
localhost,port = 3306 , user name = root in Navicat.


Eclipse PHP IDE
Are using the PHPIDE from zend.
In my httpd I am loading the php module as "Action
application/x-httpd-php "/php/php-cgi.exe" and have replaced the php
binaries by the once delivered in
"pluginsorg.zend.php.debug.debugger_0.1.1".
The debugger works fine after this.

Now i want to load php as a module "LoadModule php5_module
"c:phpphp5apache2_2.dll" since I am using som "php_value
include_path" directives in my httpd file.

The problem is that loading php as an module makes the debuger stop
working and loading php as "php-cgi" forces me to not use "php_value"
since apache refuses to start with that configuration.

How do I make the debugger in php ide work loading php as a module in
httpd?
I am using Apache 2.2 and php 5.x.

PHP And Eclipse?
anyone of you know the "Eclipse" Editor? (www.eclipse.org)
It is a code editor, esspecially for programming in JAVA or C.
But is there a possibility to run it with a PHP Plugin? So I can create my
php scripts with Eclipse.

Eclipse, Charset And PHP
I'm trying to internationalize my PHP code, but some of the ISO-8859-2
characters don't show in the browser. I'm namely trying to use Croatian and
Russian, and some of the characters show and most don't. I did the header
(that's the one for Croatian)

header("Content-Type: text/html; charset=iso-8859-2");

but it doesn't work. When I type my strings in Eclipse it is all fine and I
see all the characters that I want. Is it maybe an Eclipse setting I need to
worry about? What am I missing? It is not the browser, as I can see all the
Croatian/Russian pages just fine. Server maybe?

PHP Is An Eclipse-project Now
Support has been expressed by:
a.. Actuate
b.. IBM
c.. Intel
d.. SAP
e.. Zend

Phpunit In Eclipse?
does anyone know if a phpunit plugin exists for eclipse?  i'd love for something like junit integrated into eclipse to work for php. 

PHP SSH And Mysql Connection
For a long time I've been trying to connect to mysql through a SSH tunnel. Although that si possible by setting up the tunnel manually (with 'ssh -L ...'), I'd like it to be done by PHP itself.

Now, with the SSH2 extension (http://www.php.net/manual/en/ref.ssh2.php) it is possible to issue a 'ssh2_connect' and then a 'ssh2_tunnel' command.
That returns a socket resource to the destination server.
So far, all fine.

Problem:
How can I force that socket onto 'mysql_connect'?
I mean, what I have is:
$tunnel = ssh2_tunnel($connection, &#3910;.0.0.101', 12345);

But $tunnel is a PHP resource, and not in the format ':/path/to/socket' that mysql_connect expects...

Is this possible at all?

MySql Connection
Is it necessary to close a db connection at the end of a session?? Or does it autoclose?

Getting Same Mysql Connection With Php?
I have a database class i made however when i create 2 instances of it, it gives me the same connect resource id, is that normal?  is there a way in php to have different resource connection id but connect to the same database with the same login on the same server?

Set Include_path For SimpleTest Under Eclipse
I am trying to set the include path for SimpleTest under Eclipse

I have the following config :
Eclipse : 3.2.0
PHPEclipse 1.1.8
SimpleTest plugin : 0.2.1

I ran a test I found on the SimpleTest plugin page and it worked fine
http://simpletest.org/en/extension_eclipse.html

I am now trying to test an existing class but when I call :

Quote:

Eclipse PHP IDE - 3 Nagging Questions
I've just installed Eclipse and PDT and I'm getting familiar without
major problems but I'm stuck with 3 issues:

1. do you know any plugin that would let me convert " to " in
selected text? (or enclose selection with braces, I mean basic
convertions that you use often in php when working with html tags)

2. how do I install Zend debugger? (I downloaded the plugin 'enabling
debbuging' from zend but probrably the server plugin too...?) Is it
worth instaling or maybe a better choice is Xdebug?

3. how do I safely remove plugins that I don't need? AFAI there are
eg. tools for developing Java apps. I would like to slim my Eclipse as
much possible to speed it up.

Zend Eclipse + Subversion
I am working on a project maintained in Subversion (SVN) and using Zend Eclipse. How do you have a zend project that works with subversion within the Eclipse framework?

Mysql Connection Problem
On one computer with win98 and apache 13.22+mysql+php and the dynamic server is www.xxx.dns2go.com. All running fine.

1. I tried the code( from DevShed ):

<?
$dbuser = 'name'
$dbhost = 'localhost'
$dbpass =' password'
$dbname = 'auth'
$dbtble = 'auth'
$mysql_link = mysql_connect($dbhost,$dbuser,$dbpass);
$column = mysql_list_fields($dbname,$dbtble,$mysql_link);
for($i=0; $i< mysql_num_fields($column); $i++ )
{
print mysql_field_name($column,$i )."<br>";
}
?>

This code worked fine.

2. If I replace 'localhost' with the server name, I got the error message:

Warning: Can't connect to MySQL server on 'www.xxx.dns2go.com' (10061) in d:homewebmasterpubhtm est_mysql2.php on line 13

Warning: MySQL Connection Failed: Can't connect to MySQL server on 'www.xxx.dns2go.com' (10061) in d:homewebmasterpubhtm est_mysql2.php on line 13

Warning: Supplied argument is not a valid MySQL-Link resource in d:homewebmasterpubhtm est_mysql2.php on line 15

Warning: Supplied argument is not a valid MySQL result resource in d:homewebmasterpubhtm est_mysql2.php on line 17

I tried to test from another machine. Also tried to look at the port but did not seem to work.

Secure Connection To MySQL
I need some explanation about connection to MySQL: should I encrypt data if:

1) MySQL server is on the same machine as HTTP serwer (IP: localhost),
2) I transfer data from/to MySQL server on another machine?

If yes, what must I do?

Connection To MySql Error
Whenwever I try to connect to the MySql server from php page, I get the following error:

WARNING: Lost connection to server during query.

On a second attempt to connect, it says, unable to connect to localhost. I can connect to the MySql server from a telnet session. But then after trying to use the php page connection. I get an error in back in the telnet session that it can't connect to a temp.socket. What kind of problem is this indicating?

Connection Problem To MySQL
I am having problem on connecting to my MySQL Server. I have Redhat 6.2 Linux Server with PHP4 and MySQL. i have written a simple code :

$link = mysql_connect("localhost","username","password") or die("error");

and it gives me error like :

Warning: MySQL Connection Failed: Can't connect to local MySQL server
through socket '/tmp/mysql.sock' (111)

MySQL Connection Problem
I just don't get it, I have searched everywhere and can not find what I am doing wrong. I am familiar with SQL, but I typically use ASP, Access so this MySQL thing is very new. Here's my attempt at inserting data into the database:

// Connection Strings
$username = "-------";
$password = "-------";
$hostname = "localhost";
$dbConnect = mysql_connect($hostname, $username, $password) or die("Unable to connect to the Database, please try again.");
mysql_select_db("database1") or die(mysql_error());
$theSQL = "insert into table (Item1, Item2, Item3) values ";
$theSQL = $theSQL."('".$Item1."','".$Item2."','".$Item3."')"
mysql_query($theSQL, $dbConnect) or die(mysql_error());

I know my connection is good, the problem is with the mysql_query line. I've tried it with and without the $dbConnect and neither works. What am I doing wrong?

Connection Problems MySQL
I am using Windows XP, IIS 5.1, PHP 5.1.4 and MySQL 5.0.23 and Dreamweaver 8. When I try to create a database connection I get the "Your PHP server doesn't have the MySQL module loaded or you can't use the mysql_(p)connect functions" error. I have downloaded the latest mysqli and mysql extensions (PHP 5.1.6 and MySQL Server 5.0.24a) and copied these into my C:PHPext directory. I believe I
have already made the required changes to the php.ini file however this may
not be 100% right.

Keeping MySQL Connection
Is there a way to open a mysql connection and have it remain open while a user is at my site? Is it better to just keep a connection throughout their visit or connect only when the database is needed? Right now I have these two lines at the beginning of most pages (about 6 pages):

mysql_connect($host, $user, $pwd)
mysql_select_db($dbase)

I was thinking something involving sessions would work, but I am having trouble with it...

PHP -> MySQL Connection Trouble
I'm currently running the latest build of PHP4 on server1. However, I am running mySQL on server2. When I goto connect to mysql, I keep getting, "connection failed." I am thinking maybe something isn't setup right.

For mySQL I am running mysqld and have it set up to work through port 3306. I've tried my hostname (what linux printed out0 and nothing works). I also have mySQL setup so you don't have to login to use it. PHP Code:

MySQL Existing Connection?
is there a way to check with PHP whether a mySQL connection already exist between a script and the database. In that case it can be decided to connect or leave things as is.

MySQL Connection Method With PHP..?
I have done a search and could not find an answer for this although I am sure someone has asked this before. What I am looking to do is this say I have 5 PHP files on a website and they all use the same database and mysql_connect string. PHP Code:

Mysql Connection Pooling
In my environment, I have two servers. Server A is hosting PHP while server B is hosting Mysql. Both servers are on the same LAN. I noticed that my PHP page takes foreever to load. It turns out that the MySql connection call takes almost one second to return. This is all based on my TCP trace.

To make matter worse, PHP is not reusing these MySql connection in other PHP pages, so the overall latency is pretty bad going from one page to another. I was wondering if anyone has any insight on why it takes so long to connect to Mysql server, and if there is a way to use connection pooling.

MySQL Connection Limit
Thought I read somewhere saying that there is a limit to how many
connections are available per mySQL account or something like that.

I wrote a PHP tool that uses a different PHP file whenever someone hit an
HTML form button (ie Submit). It turned out that each one of these PHP
files need to re-open the link to the mySQL database by the following
snippet or else that particular file won't work:

@ $link = mysql_connect("localhost", "myself", "");
if (!$link == 1)
echo "Connection to database failed.";

But I thought that PHP will use the already opened link from the previous
PHP file and as a result the above is not necessary. Is this true, or only
if it is within the same PHP file? And would having called the above code
snippet too many times cause mySQL to prevent user "myself" from connecting
again?

Connection PHP4 <> Mysql ?
Using Windows XP, PHP4.3.11 and Mysql 4.1.

PHP and Mysql.
Im trying to connect to the database with this script:

<?php
//list_db.php

$link_id = mysql_connect("localhost", "phpuser", "phppass");
$result = mysql_list_dbs($link_id);
$num_rows = mysql_num_rows($result);

while($db_data = mysql_fetch_row($result)) {
echo $db_data[0]. "<BR>";
$result2 = mysql_list_tables($db_data[0]);
$num_rows2 = mysql_num_rows($result2);
while($table_data = mysql_fetch_row($result2)) echo "--" .
$table_data[0]. "<BR>";
echo "==> $num_rows2 table(s) in " . $db_data[0] . "<P>";
}
?>
But it gives me this error:Warning: mysql_connect(): Client does not support
authentication protocol requested by server; consider upgrading MySQL client
in c:inetpubwwwrootPHP4info.php on line 5Warning: mysql_list_dbs():
supplied argument is not a valid MySQL-Link resource in
c:inetpubwwwrootPHP4info.php on line 6Warning: mysql_num_rows(): supplied
argument is not a valid MySQL result resource in
c:inetpubwwwrootPHP4info.php on line 7Warning: mysql_fetch_row():
supplied argument is not a valid MySQL result resource in
c:inetpubwwwrootPHP4info.php on line 9What did I do wrong?

Mysql Remote Connection
i have a db on my webhost, and a db at home. i currently have a db for etc, and a db for forums. my register page creates records in both db's. i recently moved my forums off of my webhost, and haven't been able to insert users into my db at home now. i changed the server/login/password/dbname here is what i currently have on my webhost: Code:

Mysql Backup Connection In PHP
I notice with PHP if a connection cannot be established to a mysql
server with mysql_connect() PHP will timeout and never try the backup
server. In this example:

$db = mysql_connect('db1.local.net', 'username', 'password');
if (!$db) {
$db = mysql_connect('db2.local.net', 'username', 'password');
}

This works great and connects to the 2nd database if the 1st one
rejects the connection completely; however, if the 1st db is under high
load and doesn't respond for 10+ seconds it never jumps to the 2nd one.
Curious if there's a better way to accomplish this. If the 1st db
doesn't respond in 1 second max I'd like to hop to the 2nd one.

Php Mysql Database Connection
i want to add my form details to the mysql database. i had done it with mysql_connect('localhost','root',''); but the error was localhost connection failed. Code:

MySQL Connection Problem
I recently setup mySQL and PHP on my Windows Small Business Server 2003 Server at my company. I have been wanting to write some php scripts to interact with a database on the server but have been unable to connect to the database via PHP. A simple connect function:

mysql_connect("localhost","root","*******");

Yields the error:
Can't connect to MySQL server on 'localhost' (10061)

The strange thing is, that I was able to connect with phpmyadmin just fine in "config" mode. Where it makes you enter your username and password.

Also I can easily connect via the command line on the server through the command mysql -u root -p.

I have read that this could possibly be a port issue of some sort. But when I do a phpinfo() on the server it says that the default port is 3306. There is no firewall running on the server. Please let me know if you need any more information.

Test MySql Connection
Is there any way to TEST wether a MySql connection is going to work? Without using mysql_connect that can throw an error?

Just to display on the web..."The connection is working" or "The connection is not working"

PHP MySQL Database Connection
I'm involved in a project where I have to create a web application with PHP and MySQL. My question is, usually we use one user name and password to connect to the database for the whole application, in which case all the users will connect to the database with that username we set in PHP script.

If we want to have different users with various access rights on the database this strategy will not work, because we give one username and give maximum access rights for that username. Is there any way where you can define the access rights of a user in the database(MySQL) and use the same username and password when the user connects to database through PHP application?

If so, we will have hundreds of users connecting through the PHP application with different usernames and password, will this have any impact on the web server or DB server? Is it secure? Is there any other way this can be done?

Help Installing Zend Debugger With Eclipse
I am trying to get the zend debugger to work with eclipse pdt. I have
read the other thread about installing the debugger.

I have installed:

* eclipse pdt,
* the client zend plugin for eclipse
* the server following instructions at ....

PHP/MySQL Database Connection Problem
when I'm doing an insert (using mysql database) it produces the following two error messages :

Warning: MySQL: Unable to save result set in [file].

Lost connection to MySQL server during query

These errors occur after the number of conncections increases, before this there is'nt any problem.

I am using PHP 4 with Apache on Redhat Linux 6.2.

What Is Going Wrong In The Database Connection With PHP MYSql
I am setting up a site for a client that requires signup and
login. I have written most fo the code but, for some reason am
have trouble with the database connection. The problem is with
the connection. I believe I have the right server but, have had
trouble getting the correct iser and password. Is there a way to
determine what is going wrong in the connection because
setting up die with a message doesn't tell me anything other
than the connection failed. I going back to client and getting the
support # from yahoo who set up the server and database.

Hopefully I can talk to the person who set up the server for him
and get the proper server, user and password. It would be nice
to know how to troubleshoot the connection in a more
meaningful way.

MySQL Server Sometimes Refusing Connection
My site is setup on two servers. One to serve apache and the other is a database server.

However, if you keep refreshing the site, sometimes it gives a mySQL server connection error, sometimes it connects fine.

Our chief technologist is away right now so I'm stuck...does anyone have any ideas?

Warning: MySQL Connection Failed:
I am trying to do a basic exercise to learn mysql. I am trying to access a database through php. Here is my php code. PHP Code:

Failing Connection Betw'n PHP And Mysql
I'm running a CMS based on PHP and MySql. Recently I've installed an ErrorHandler in my script which sends me an email every time a fatal error occurs. However this has meant that I receive ALOT of mysql errors like this:

Can't connect to MySQL server on 'db14.pair.com' (61)

The shortcomings seem only to take a few seconds - 10 at the most and affects all our accounts. I've contacted the company that hosts our sites, but they say that the database server runs fine.

PhpMyAdmin And MySQL Connection Collation
I must work with phpMyAdmin 2.6.0-pl3 installed on a client's Windows NT
web server. I've not previously encountered options for charset and
collation using phpMyAdmin, and am not sure what to set "MySQL
connection collation" for English-US type usage.

The default MySQL charset: UTF-8 Unicode (utf8)

I didn't notice this until exporting a backup, which for different
tables is giving me different "CHARSET=latin1" values.

Maybe I need to export existing work, manually remove the CHARSET
settings from the schema and re-insert it back into phpMyAdmin?

CREATE TABLE `code_library` (
`id` mediumint(6) unsigned NOT NULL auto_increment,
`name` varchar(50) NOT NULL default '',
`purpose` varchar(255) NOT NULL default '',
`clip` text NOT NULL,
`date_entered` date NOT NULL default &#55612;&#57200;-00-00',
`time_entered` time NOT NULL default &#3900;:00:00',
PRIMARY KEY (`id`),
UNIQUE KEY `id` (`id`),
UNIQUE KEY `name_2` (`name`),
KEY `name` (`name`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=2 ;

MySQL Connection Dies Randomly?
I've spent the morning searching google groups without success, so I'm
hoping someone has an idea of what's going on.

I connect to a database like this:
$catdb = @mysql_connect("localhost", "username", "password");
@mysql_select_db("mydatabase",$catdb);

I have a problem on one script where I'll do a query using this connection,
and it doesn't return anything. No results, no errors, nothing. But when
I copy those two lines and paste them right above the query, it works fine.
It's like the query dies between then and here.

The first connection string isn't inside a function, but is the first two
lines of the script. What would cause a connection to not respond? I'd at
least expect a "$catdb is not a valid mysql link" or similar, but no error?
What's going on?

MySQL Connection Persisting Redirect?
I'm working on a script where I would like a MySQL link identifier to persist over a redirect to another URL. I've tried using session variables to persist the identifier:

<?php
  session_start();
  $conn = @mysql_connect("localhost", "username", "pass");
  $_SESSION["conn"] = $conn;
  header("Location: $url");
  ?>

The variable persists the redirect, but the identifier seems to be getting modified. I know for a fact that it is a valid MySQL link identifier prior to the redirect, however after the redirect it is invalid. Is there any explanation for this???

Newbie Connection / Setup Problems With MySql
I'm a newbie to MySQL and just needs little help with a couple of
problems. I am currently working through a book on Dreamweaver MX
2004, and I'm using MySQL and PHP.

Unfortunately though I can't seem to connect to the database and I'm
not sure my user info was setup correctly in the first place.

The book says to copy the newland_tours.sql database to the c:mysql
folder. however I'm pretty sure that the test and mysql database
files that the root user has access to are in the c:mysqldata folder
so I have copied this file to this folder as well.

When I go back into Dreamweaver and click on Applications, Databases
and the Plus sign to add a MySql connection, if I click the button
that says Select, to choose the database, only test and mysql are
still listed.

I'm not entirely sure that I would be able to connect to the database
anyway even if it was showing because when I try one of the databases
listed with the following info:

Connection Name: conn_test
MySQL Server: localhost
Usename:root
Password:
Database:test

It asks me to select a password. It doesn't seem that I would be able
to connect as the root user without a password. When I click on the
traffic lights signal in the taskbar to go to WinMySqlAdmin, in the
MyIni Setup section it has the user down as House and a password that
is familiar to me, so I think I must have entered this info when I set
up the My.ini file. However, even if I enter the user as House and
enter the password I chose it gives me an error 1045, access denied.

Before trying to load this database that I want to use, I thought I
needed to sort out the user problems and to see if I could log into
MySql. So I opened a command prompt and CD to c:mysqlin. When I
get here I type C:mysqlin> mysql and I get the "welcome to the
mysql monitor" message and leaves me at a mysql> sign.

Someone told me that I should be able to get the database loaded seen
as I can get the mysql screen up by logging in as the root user
without any password or username. The person said to copy the
newland_tours.sql database into the c:mysqlin fodder which I did.

If I try to CD to that directory from the mysql> after logging in it
gives me errors saying unknown command 'm' and '' To be able to CD
to that directory again I have to exit from the mysql monitor by
typing exit or q and it returns me to the c:mysqlin> prompt.

If I now try and type this:

C:mysqlinmysql < newland_tours.sql

to load the database from the c:mysqlin> prompt, it gives me an
error saying:

Error 1044 at line 1, access denied for user "@localhost" to database
'database'

If I try this with the username and password that are listen in the
my.ini file I get the following error:

Error 1045: Access denied for user: 'house@localhost" <using password:
yes>

If you can help me with the user problems and connection/access
problems I'm having so I can get the connection set up I'd be very
grateful as I'm starting to get a tad confused by it all.

Lost Connection To MySQL Server During Query
I have php4/mysql/apache installed and working together in solaris 2.7. When ever I try to send a query to the MySql database it gives the following error "Lost connection to MySQL server during query"

I can do other stuff like create tables and databases and but sending a query is giving me problems. I searched through a forum and found someone else who encountered the same problem. he said that it was caused by the gcc version that was used to compile Php4. he said that gcc 2.8.1 is causing this error and the solution is to use gcc 2.91.x

Before I ask my sysadmin to update gcc I want make sure that this the solution to the problem. If you know of any other way that the above error can be resolved.

Msgbox For Form Validation And MYSQL Connection
I have a form on my website into which users can enter their email address. The form needs to validate the email is ok, replying with one msgbox if the format is invalid, and another msgbox ("Thanks!") plus an SQL command if the format is valid. Code:

Lost Connection To MySQL Server During Query
i am haveing an issue connecting to a mysql database i get the following error

Warning: mysql_connect() [function.mysql-connect]: Lost connection to MySQL server during query in /home/cutencud/public_html/testing.php on line 1

now testing.php only has one line and it looks like this

<?php mysql_connect("66.97.165.60", "root", "") ?>
anyone know what would cause that? (and i removed the password before posting


Copyright © 2005-08 www.BigResource.com, All rights reserved