[PHP] Re: mysql problem- I know it isn't strictly php

2005-07-20 Thread Ethilien
That last line always causes me problems, I think it is probably a difference in versions of mysql. Just change the last line to: ); without any of the text in their. It doesn't really do much anyway. Ross wrote: Hi all, I am trying to create a table on the remote server but it never seems t

Re: [PHP] Re: [mysql]Problem with PHP5

2004-07-19 Thread [EMAIL PROTECTED]
Ciprian, I may have missed whether or not you were able to resolve your problem from a couple days ago. In one of my development environments (Win2K), I decided to install PHP 5.0 with MySQL(i) 4.1.x support in IIS5.0 and Apache 2 (running on different ports). It took a bit more work than I in

[PHP] Re: [mysql]Problem with PHP5

2004-07-15 Thread Ciprian Constantinescu
I have included the extension. Now I get "Unable to load dynamic library 'C:\php\ext\php_mysql.dll' - The specified procedure could not be found" I have in Windows\System32 the file libmysql.dll. I have also put it in the php\ext directory without any result. -- PHP General Mailing List (http://

[PHP] Re: [mysql]Problem with PHP5

2004-07-14 Thread Ben Ramsey
Ciprian Constantinescu wrote: I have installed PHP5 and i get the following error from a script that was working on PHP4 "Fatal error: Call to undefined function mysql_pconnect() in D:\htdocs\cdalex\Connections\listacon.php on line 9 " MySQL is no longer embedded in PHP, as of PHP 5. Depending on

RE: [PHP] Re: Mysql Problem

2004-05-28 Thread Ian Barnes
Hi, Yes that was my mistake. But even with the code, it still doesnt display the last one. If i didnt put a " it wouldnt work at all. Thanks, Ian -Original Message- From: Torsten Roehr [mailto:[EMAIL PROTECTED] Sent: 28 May 2004 13:56 To: [EMAIL PROTECTED] Subject: [PHP] Re:

[PHP] Re: Mysql Problem

2004-05-28 Thread Torsten Roehr
"Ian Barnes" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi, > > I am generating a mysql statement and then printing it to a formatted field. > Here is my code: > > $sql="SELECT * from tablename where name in ('Web','HTML','PHP') group by > name; You are missing the closing quote

[PHP] Re: MySQL Problem

2003-06-06 Thread Esteban Fernandez
What's up Supposing that the filename of the you code is create_table.php. Try tipping in the URL: create_table.php?nueva_base=prueba EF. --- Que tal Suponiendo que el archivo del codigo se llama create_table.php. Prueba poniendo el la URL: create_table.php?nueva_base=prueba EF. "Felipe R."

Re: [PHP] Re: MySQL Problem

2002-10-03 Thread OrangeHairedBoy
Well, that's just a typo...of course there should be a () to make it call a function... The whole point to my postings is that I can't get the darn variable to stay in place!!! Look where it says "Prints NOTHING". Does anyone know why it doesn't print "Hello World"??? ::Lewis "Mike Ford" <[EM

RE: [PHP] Re: MySQL Problem

2002-10-03 Thread Ford, Mike [LSS]
> -Original Message- > From: OrangeHairedBoy [mailto:[EMAIL PROTECTED]] > Sent: 03 October 2002 09:39 > > Here's a simplier version...and I'm still having a problem > with it. It's > driving me insane!!! :) > > class MySQL > { > function SET ( ) > { > $this->MYVAR = "Hello World!"

[PHP] Re: MySQL Problem

2002-10-03 Thread OrangeHairedBoy
Here's a simplier version...and I'm still having a problem with it. It's driving me insane!!! :) class MySQL { function SET ( ) { $this->MYVAR = "Hello World!"; } function RETREIVE ( ) { print $this->MYVAR; } } $helpme = new MySQL; $helpme->SET; $helpme->RETREIVE; /* Prints NOTHIN

Re: [PHP] Re: MySQL Problem

2002-10-03 Thread OrangeHairedBoy
I thought someone might mention that, but that is actually correct. The problem is that the variable assigned on the line $this->DBLink[$MyVars[NAME]] = mysql_connect( $MyVars[HOST] , $MyVars[USERNAME] , $MyVars[PASSWORD] ); dissapears and can't be retreived on the line mysql_select_db( $MyVars[D

Re: [PHP] Re: MySQL Problem

2002-10-03 Thread Tom Rogers
Hi, Thursday, October 3, 2002, 6:01:53 PM, you wrote: O> You know...maybe I should mention where this code is... O> I have my main file which loads using 'require.once' a second file called O> 'everything.php'. O> Inside everything.php is a class called 'mainclass' which is called by the O> mai

[PHP] Re: MySQL Problem

2002-10-03 Thread OrangeHairedBoy
You know...maybe I should mention where this code is... I have my main file which loads using 'require.once' a second file called 'everything.php'. Inside everything.php is a class called 'mainclass' which is called by the mail file. This class ('mainclass') loads the MySQL class from the previ

Re: [PHP] Re: MySQL Problem with PHP

2002-06-26 Thread Erik Price
On Wednesday, June 26, 2002, at 08:58 AM, John Holmes wrote: >> I just preg_replace("/\'/","\'",$text) and all was good :o) > > That's what addslashes() is for. It handles single and double quotes, > backslashes, and nulls, so you won't have any problems... Plus IIRC it's a C extension so it'l

RE: [PHP] Re: MySQL Problem with PHP

2002-06-26 Thread John Holmes
> I just preg_replace("/\'/","\'",$text) and all was good :o) That's what addslashes() is for. It handles single and double quotes, backslashes, and nulls, so you won't have any problems... ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.p

[PHP] Re: MySQL Problem with PHP

2002-06-26 Thread BB
I just preg_replace("/\'/","\'",$text) and all was good :o) "David Robley" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > In article <[EMAIL PROTECTED]>, > [EMAIL PROTECTED] says... > > I am using PHP and MySQL on a 2k dev box to be uploaded to a linux box > >

[PHP] Re: MySQL Problem with PHP

2002-06-26 Thread David Robley
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] says... > I am using PHP and MySQL on a 2k dev box to be uploaded to a linux box > > I have a piece of SQL > > INSERT INTO `contracts` (`key`, `content`) VALUES (1,'blah blah blah > character 39 is a single speach mark '+CHAR(39)+' blah blah bla