Re: [PHP] Class in PHP

2001-12-05 Thread andreas
On Wed, 5 Dec 2001 10:41:53 -0500 Wee Chua <[EMAIL PROTECTED]> wrote: >Hi all, >How many extension of subclass can PHP have? Can I extend subclass to more >different subclass? Do you mean how deep a inheritance you can have? e.g. A \ B | \ C D | \ E F

Re: [PHP] xml header

2001-12-05 Thread Tyler Longren
Hi Bill, I don't believe there are any. Tyler - Original Message - From: "bill" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, December 05, 2001 1:42 PM Subject: [PHP] xml header > What is the proper header to send when presenting dynamic xml pages to > the browser? >

Re: [PHP] xml header

2001-12-05 Thread bill
Hmmm. I'm thinking of the http headers. Assume you have an xml file in memory as a variable ($xmlfiledata) and you want to send it to the browser. If you just echo it, you are sending it as text (which isn't necessarily bad, it just isn't as good as it should be, I think). So far, I've been

[PHP] session question: session.auto_start vs. session_register.

2001-12-05 Thread Kurt Lieber
I am working on an open source e-commerce package and have hit a wall with sessions. If I have session.auto_start turned on, I get the following error message: Fatal error: The script tried to execute a method or access a property of an incomplete object. Please ensure that the class definitio

RE: [PHP] xml header

2001-12-05 Thread Matthew Loff
The proper content type is text/xml. --Matt -Original Message- From: bill [mailto:[EMAIL PROTECTED]] Sent: Wednesday, December 05, 2001 3:11 PM To: Tyler Longren Cc: [EMAIL PROTECTED] Subject: Re: [PHP] xml header Hmmm. I'm thinking of the http headers. Assume you have an xml file

[PHP] multi-dimensional array

2001-12-05 Thread Jordan
Is there any way to pass a multi-dimenstional through a url. something like /cart.exe?item[1][1]=3 just curious. -Jordan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list adminis

Re: [PHP] multi-dimensional array

2001-12-05 Thread Mike Eheler
Should work. Why not give it a try, and let the good people of this list know? Mike Jordan wrote: >Is there any way to pass a multi-dimenstional through a url. something like >/cart.exe?item[1][1]=3 > >just curious. > >-Jordan > > > -- PHP General Mailing List (http://www.php.net/) To uns

Re: [PHP] multi-dimensional array

2001-12-05 Thread Mike Eheler
Sorry, I sent that too soon.. here's my test results: http://localhost/test.php?var[test][5][]=test [HTTP_GET_VARS] => Array ( [var] => Array ( [test] => Array ( [5] => Array

[PHP] Compare strings

2001-12-05 Thread Mainolfi, Joe
Is there another way to compare the values of 2 strings other than strcmp(). This function is not consistent with its results and is causing so many headaches. I am somewhat new to Php so any help is appreciated. Thanks __ Joseph D. Mainolfi Jr

Re: [PHP] Compare strings

2001-12-05 Thread Mike Eheler
if ($str1 == $str2) ? If that's not it, check http://download.php.net/manual/en/ref.strings.php Mike Mainolfi, Joe wrote: >Is there another way to compare the values of 2 strings other than strcmp(). >This function is not consistent with its results and is causing so many >headaches. I am som

Re: [PHP] Large file uploads timeout - ouch!

2001-12-05 Thread Fred
I believe that you must normally restart apache for php.ini changes to take affect. The fact that the changes show up in phpinfo() may or may not indicate that the changes are actually in effect. If your ISP has not restarted apache, you may want to ask them to do so in order to save yourself a

[PHP] Xml Parse Extended Chars

2001-12-05 Thread Chris Noble
Ive ran into a stumbling block trying to parse an xml document. I control the parsing and the creation of the xml document so I can do any changes from either side of it. Problem I have run into is my xml document has a é in it. Ive ran htmlentities on it and it converts it to é but everytime I tr

[PHP] PHP shopping cart packages

2001-12-05 Thread rory o'connor
I need a new cart program and would like to use something based in PHP. I was using a CGI paltform written in C, but we had session problems out the wazoo when traffic was really high. I need something that can manage sessions with vim and vigor. I have only see phpshop - which looks nice, b

[PHP] PHP + MySQL problem (strange behavior)

2001-12-05 Thread Javier Muniz
Hello, I'm having trouble determining what's going wrong with a MySQL query that I'm doing from PHP. Now before you go blaming MySQL read on :) I have a table with the following columns: id (int) name (varchar 20) starttime (int) duration (int) now, i have a row that has a starttime of 60, whe

[PHP] Simple(?) Question

2001-12-05 Thread Andrew Forgue
Hello, Is there a way to "post" to a script without any user interventions... e.g The user posts to a script, and the script posts back to the original one. Thanks!

[PHP] Forms lose data when going "back" in browser

2001-12-05 Thread Zavier Sheran
I have a submission form distributed over 5 pages. When the user hits the "back" button in the browser on one of the pages to make changes on a previous page, all fields are emptied. This is only when I have a session running. When I use the same pages without the session, the data stays in the fo

RE: [PHP] Simple(?) Question

2001-12-05 Thread Martin Towell
if you want the browser to do it (as opposed to getting php to do it), then you could use a "hidden" form, like: ... etc (all hidden fields) ... -Original Message- From: Andrew Forgue [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 06, 2001 9:32 AM To: [EMAIL PROTECTED] Subject:

[PHP] off

2001-12-05 Thread faeton
Linux is like a wigwam - no windows, no gates, aðache inside! Ivan 'Faeton aka xetrix' Danishevsky ICQ(240266) [EMAIL PROTECTED] www.xemi.info -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional comm

Re: [PHP] PHP shopping cart packages

2001-12-05 Thread Kurt Lieber
On Wednesday 05 December 2001 02:05 pm, you wrote: > Your thoughts appreciated! Check out The Exchange Project. http://www.theexchangeproject.org/ I've been using it for a few months now. My biggest complaint is there doesn't seem to be a clear sense of direction in the development process.

[PHP] URGENT: IIS doesn't like GET or POST

2001-12-05 Thread Ron Newman
Hi, When I pass form variables to PHP using either GET or POST it works under PWS running on "localhost", but when I run the same script remotely on a Win2K Advanced Server and IIS machine, I get "Warning, not defined" errors for all the variables passed. Is there some configuration problem with

[PHP] Pulling data out of a domain name

2001-12-05 Thread rdkurth
Is there a more efficient way of doing what this script does is check a domain name and separate the domain name from the ext. The domain names could be in a few different formats. Like the samples below. This script works but I was just wondering does it have to be so long winded www

Re: [PHP] Pulling data out of a domain name

2001-12-05 Thread Brian Clark
* [EMAIL PROTECTED] <[EMAIL PROTECTED]> [Dec 05. 2001 18:05]: > Is there a more efficient way of doing what this script does is check > a domain name and separate the domain name from the ext. > The domain names could be in a few different formats. Like the > samples below. This script wo

[PHP] Looking for help in making a Mulit Page Form

2001-12-05 Thread Ben Clumeck
How do I make a multi page form with the ability to attach a file. The form will be about 3 different pages and the last will be a place to attach the file. Then I results will be sent to me via email. Please provide recommendations or any help! Thanks, Ben -- PHP General Mailing List (http

Re: [PHP] Simple(?) Question

2001-12-05 Thread Brian Clark
* Andrew Forgue <[EMAIL PROTECTED]> [Dec 05. 2001 17:35]: > Is there a way to "post" to a script without any user interventions... e.g The user >posts to a script, and the script posts back to the original one. (Please set your mail client to wrap at 72 chars) cURL can do this, among other thi

Re: [PHP] Looking for help in making a Mulit Page Form

2001-12-05 Thread Brian Clark
* Ben Clumeck <[EMAIL PROTECTED]> [Dec 05. 2001 18:27]: > How do I make a multi page form with the ability to attach a file. The form > will be about 3 different pages and the last will be a place to attach the > file. Then I results will be sent to me via email. > > Please provide recommendat

Re: [PHP] PHP shopping cart packages

2001-12-05 Thread B. van Ouwerkerk
At 16:05 5-12-01 -0600, rory o'connor wrote: >I need a new cart program and would like to use something based in PHP. I >was using a CGI paltform written in C, but we had session problems out the >wazoo when traffic was really high. I need something that can manage >sessions with vim and vigor.

Re[2]: [PHP] Pulling data out of a domain name

2001-12-05 Thread rdkurth
Hello Brian, actually no parse_url() will return various components of the URL like $url[scheme] = http $url[host] = www.php.net $url[path] = /download-php.php3 $url[query] = csel=br I what to split the host name up not the whole URL. Wednesday, December 05, 2001, 3:21:38 PM, you wrote: BC> *

Re: Re[2]: [PHP] Pulling data out of a domain name

2001-12-05 Thread Brian Clark
* [EMAIL PROTECTED] <[EMAIL PROTECTED]> [Dec 05. 2001 18:38]: > Hello Brian, > actually no parse_url() will return various components of the URL > like > $url[scheme] = http > $url[host] = www.php.net > $url[path] = /download-php.php3 > $url[query] = csel=br > I what to split the host name up n

[PHP] Re: Pulling data out of a domain name

2001-12-05 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] wrote: > Is there a more efficient way of doing what this script does is check > a domain name and separate the domain name from the ext. > The domain names could be in a few different formats. Like the > samples below. This script works b

[PHP] Re: Simple(?) Question

2001-12-05 Thread Chris Lee
do a header re-direct. header("Location: http://domain.com/page.php";); include any variables you want, inc session vars if needed. -- Chris Lee [EMAIL PROTECTED] "Andrew Forgue" <[EMAIL PROTECTED]> wrote in message 001d01c17ddc$a898fc40$6701a8c0@ajf">news:001d01c17ddc$a898fc40$6701a8c0@

[PHP] Re: session question: session.auto_start vs. session_register.

2001-12-05 Thread Chris Lee
session.auto_start is only usefull when not using classes as session variables. because a class must be defined before it can be created (or brought back to life from a session) it must be defined, this cant be done with session.auto_start. I dont use session.auto_start. I find the ability to use

[PHP] Re: Looking for help in making a Mulit Page Form

2001-12-05 Thread Manuel Lemos
Hello, Ben Clumeck wrote: > > How do I make a multi page form with the ability to attach a file. The form > will be about 3 different pages and the last will be a place to attach the > file. Then I results will be sent to me via email. > > Please provide recommendations or any help! I think

[PHP] Re: Recursive Threading with PHP and MySQL.

2001-12-05 Thread Chris Lee
recursion is something that can be fun and practical at times, other times its a bad coder trying to do something they think is clever. use it wisly. this example is purposely coded bad to show you how recursion can mess up with bad error checking. this example will work. change to power(30) a

[PHP] Re: serialize object & session_auto_start

2001-12-05 Thread Chris Lee
to be blunt. then dont use session.auto_start. classes must be defined before variables can be created based on that class, obviously. the proper order has to be. - class definition - session initialized -- Chris Lee [EMAIL PROTECTED] "Matthieu Brunet" <[EMAIL PROTECTED]> wrote in messag

[PHP] Re: folver view options

2001-12-05 Thread Chris Lee
wrong newsgroup. -- Chris Lee [EMAIL PROTECTED] "Caspar Kennerdale" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I have just installed mandrake > > something that is annoying me with KDE is that the default view within the > file manager is with icons

Re: [PHP] Re: Recursive Threading with PHP and MySQL.

2001-12-05 Thread Prottoss
Recursive functions are generally a bad idea especially in php. By using a recursive function it is possible you may "smash the stack", which will crash an apache child (segfaults) and on a multi-threaded server take down the whole webserver. Even with a default memory limit of 8 megs an attacke

[PHP] Re: automatic forward URL to other URL

2001-12-05 Thread Chris Lee
header("Location: www.domain2.com"); -- Chris Lee [EMAIL PROTECTED] "Manu Verhaegen" <[EMAIL PROTECTED]> wrote in message 001301c17c93$53be4620$[EMAIL PROTECTED]">news:001301c17c93$53be4620$[EMAIL PROTECTED]... I want automatic forward URL (www.mydomain.com) to (www.mydomain2.com) If i ty

Re: [PHP] PHP + MySQL problem (strange behavior)

2001-12-05 Thread David Robley
On Thu, 6 Dec 2001 08:32, Javier Muniz wrote: > Hello, > > I'm having trouble determining what's going wrong with a MySQL query > that I'm doing from PHP. Now before you go blaming MySQL read on :) > > I have a table with the following columns: > id (int) > name (varchar 20) > starttime (int) >

Re: [PHP] session question: session.auto_start vs. session_register.

2001-12-05 Thread Jason G.
You may want to check out something like auto_prepend_file. Look at the PHP configuration help. I was thinking that you may be able to include your class definition there - IF auto_prepend_file IS INCLUDED BEFORE session.auto_start starts the session. Otherwise, use auto_prepend_file to incl

Re: [PHP] multi-dimensional array

2001-12-05 Thread Michael Sims
At 03:41 PM 12/5/2001 -0500, Jordan wrote: >Is there any way to pass a multi-dimenstional through a url. something like >/cart.exe?item[1][1]=3 > >just curious. > >-Jordan I haven't personally done this myself, but theoretically you could accomplish this by first using the serialize function:

[PHP] Newbie question on Tutorials?

2001-12-05 Thread Geoff E
Okay, probably been asked zillions of times already, but I couldn't find reference to it in the last 5 minutes. :) Where can I find newbie-novice tutorials on php/mysql? My server is PHP4/MySql on a Apache/FreeBSD. I want to learn how to make these types of sites: Dating, Buy&Sell, Forums, etc.

Re: [PHP] Newbie question on Tutorials?

2001-12-05 Thread Kurt Lieber
On Wednesday 05 December 2001 05:16 pm, Geoff E wrote: > Okay, probably been asked zillions of times already, Yep >but I couldn't find reference to it in the last 5 minutes. :) Didja try the archives? http://marc.theaimsgroup.com/?l=php-general -- PHP General Mailing List (http://www.php.ne

RE: [PHP] multi-dimensional array

2001-12-05 Thread Martin Towell
or you could use the method you wrote - /cart.exe?item[1][1]=3 but if you have lots of items then the url will get pretty large... -Original Message- From: Michael Sims [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 06, 2001 12:34 PM To: Jordan; [EMAIL PROTECTED] Subject: Re: [PHP] m

[PHP] eregi_replace help!

2001-12-05 Thread David
Hi, I have a rather annoying eregi_replace which I can't get to work. I have a string, $page which contains a webpage. In the page links are denoted like so: ###LINK###Link Name###URL or Section###ELINK### There are a number of these in $page. I need to use eregi_replace() to replace the above s

[PHP] a strange question when installing php+oracle8.1.16+apache1.3.14 (in linux)

2001-12-05 Thread ydok
hi,sir; i am installing php4.0.2+oracle8.1.16+apache1.3.14 in redhat7.0 ,first i installed apache at /opt/apache ,it run well. then i installed oracle at /opt/oracle and /opt/oraclient,as you see,i installed oci at /opt/oraclient.now oracle works well,too. at last,i try to install

[PHP] HELP XML XML XML HELP

2001-12-05 Thread Olivier Masudi
http://www.test.com/test.php?orderid=xyz test.php has to make a request to DB mysql and return a xml page like this : How can I do that ? Should I just use echo ? Help -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

[PHP] Problems producing an image

2001-12-05 Thread Harshdeep S Jawanda
I am using the following code to try to produce a test image: I am trying to display this image on the page http://www.harshdeepjawanda.com/t2.html . Phpinfo() shows that PHP was compiled with: --with-gd, --with-jpeg-dir and --with-png-dir, among others. Why then am I not able to see any image?

[PHP] PHP outside HTML

2001-12-05 Thread John Kolvereid
Hi, I'm a little confused. I see the advantage of PHP within HTML. However, a few of the examples of ECHO include the '\n' char. Since this is not valid within HTML, I conclude they are addressing this for OUTSIDE HTML. Please advise. Thanks. -- John Kolvereid http://www.odinf

Re: [PHP] PHP outside HTML

2001-12-05 Thread Tyler Longren
PHP can be used on the command line if necessary. Or the \n characters can be printed to a text file or some other document that use's \n. To compile PHP for use on the command line, don't specify a web server to compile it with. Example...instead of this: ./configure --with-apxs2=/usr/local/ap

[PHP] TR: HELP XML XML XML HELP

2001-12-05 Thread Olivier Masudi
http://www.test.com/test.php?orderid=xyz test.php has to make a request to DB mysql and return a xml page like this : How can I do that ? Should I just use echo ? Help -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands

RE: [PHP] PHP outside HTML

2001-12-05 Thread Martin Towell
it's so it's easier to read the output -Original Message- From: John Kolvereid [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 06, 2001 5:24 PM To: [EMAIL PROTECTED] Subject: [PHP] PHP outside HTML Hi, I'm a little confused. I see the advantage of PHP within HTML. However, a fe

Re: [PHP] PHP outside HTML

2001-12-05 Thread David Robley
On Thu, 6 Dec 2001 16:54, John Kolvereid wrote: > Hi, > I'm a little confused. I see the advantage of PHP within HTML. > However, a few of the examples of ECHO include the '\n' char. Since > this is not valid within HTML, I conclude they are addressing this for > OUTSIDE HTML. Please advis

Re: [PHP] Problems producing an image

2001-12-05 Thread David Robley
On Thu, 6 Dec 2001 13:50, Harshdeep S Jawanda wrote: > I am using the following code to try to produce a test image: >//phpinfo(); > $gif = ImageCreate(200,200); > $bg = ImageColorAllocate($gif,0,0,0); > $tx = ImageColorAllocate($gif,255,128,128); > ImageFilledRectangle($gif,0,0,200,200,$bg

[PHP]I know I know, but quick Apache/PHP question

2001-12-05 Thread Chris Cocuzzo
hey- I have php 4.0.6 on Win 2k with Apache 1.3.20 ... I figure I'm close to getting this installed correctly. I've edited my httpd.conf file to the point where if I call the php file I want, I get the source in the browser here's what my .conf file says? ScriptAlias /php/ "c:/php/" and then

Re: [PHP] PHP outside HTML

2001-12-05 Thread Michael A. Peters
On Wed, 05 Dec 2001 22:24:08 -0800 John Kolvereid <[EMAIL PROTECTED]> mentioned: > Hi, > I'm a little confused. I see the advantage of PHP within HTML. > However, a few of the examples of ECHO include the '\n' char. Since > this is not valid within HTML, I conclude they are addressing this

Re: [PHP] PHP shopping cart packages

2001-12-05 Thread Attila Strauss
Heya, http://www.hotscripts.com/PHP/Scripts_and_Programs/E-Commerce/Shopping_Carts / best regards Attila Strauss > >I need a new cart program and would like to use something based in PHP. I > >was using a CGI paltform written in C, but we had session problems out the > >wazoo when traffic was

[PHP] very urgent assistance

2001-12-05 Thread Adewale.Johnson
Dr.Adewale.Johnson. 16 Kingsway Road Ikoyi, Lagos Nigeria.. [EMAIL PROTECTED] 6th, December , 2001. Sir, Request for Urgent Business Relationship. First I must solicit your confidence in this transaction. This is by virtue of its nature as being utterly confidential and top secret. We

RE: [PHP] very urgent assistance

2001-12-05 Thread Smith, Benjamin
This would have to be the most bizarre spam I have ever read. -Original Message- From: Adewale.Johnson [mailto:[EMAIL PROTECTED]] Sent: Tuesday, 6 March 2001 6:18 PM To: [EMAIL PROTECTED] Subject: [PHP] very urgent assistance Dr.Adewale.Johnson. 16 Kingsway Road Ikoyi, Lagos Nigeria

Re: [PHP] XHTML compatible error messages

2001-12-05 Thread Matt McClanahan
On Fri, Aug 17, 2001 at 05:40:07PM +0200, Jan wrote: > Hi out there! > > I have got a problem with PHP's standard way of reporting errors. The > in the error messages are making the XML invalid (should be > ). Is there an easy way to do this? This was done in CVS a few months ago. It should b

RE: [PHP] XHTML compatible error messages

2001-12-05 Thread Jason Lotito
There is a way to turn off HTML in Errors in PHP. This is done in php.ini or you can use the ini_set() function to change the value. html_errors boolean Turn off HTML tags in error messages http://download.php.net/manual/en/configuration.php Jason Lotito [EMAIL PROTECTED] www.NewbieNetwork.ne

Re: [PHP] very urgent assistance

2001-12-05 Thread George Pitcher
Ben, Except that its been around for a couple of years now, in various guises. SPAM! George - Original Message - From: "Smith, Benjamin" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, December 06, 2001 6:20 AM Subject: RE: [PHP] very urgent assistance This would have to

[PHP] HELP XML XML XML HELP

2001-12-05 Thread Olivier Masudi
http://www.test.com/test.php?orderid=xyz test.php has to make a request to DB mysql and return a xml page like this : How can I do that ? Should I just use echo ? Help -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional comm

[PHP] Re: Class in PHP

2001-12-05 Thread Roko Roic
"Wee Chua" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi all, > How many extension of subclass can PHP have? Can I extend subclass to more > different subclass? I didn't really understand the question, but maybe this is it. PHP class can extend only one p

[PHP] 5928 Would you like to lose weight while you sleep? 537417

2001-12-05 Thread 753741ultimate
As seen on NBC, CBS, CNN, and even Oprah! The health discovery that actually reverses aging while burning fat, without dieting or exercise! This proven discovery has even been reported on by the New England Journal of Medicine. Forget aging and dieting forever! And it's Guaranteed! Click

[PHP] Help required MySql + PHP

2001-12-05 Thread Karthikeyan
Dear Members, I installed RedHat 7.1, Apache, PHP4 and MySQL in a Intel Pentium processor system. Everything works fine (i.e. MySQL, PHP, etc). But when I want to connect MySQL through PHP. It is giving an error 'call to unknown function "mysql_connect" in line in __' . Can any one provide a solut

[PHP] FOLLOW UP on "column names not liked by odbc/php/access"

2001-12-05 Thread mweb
Hello, On the same database, this query works: $SQL_Exec_String = "INSERT INTO Multimedia (Titolo,Descrizione,Logo,Link) VALUES ('prova titolo','prova descrizione','.gif','prova link');"; $cur= odbc_exec( $cnx, $SQL_Exec_String ); This one gives this error: ISQL_exec_String = "Insert Into (Art

Re: [PHP] FOLLOW UP on "column names not liked by odbc/php/access"

2001-12-05 Thread George Pitcher
Just a thought. 'Label' might be a reserved name on win as it is/was used to describe the name of a volume (drive). But then again, maybe not. George - Original Message - From: "mweb" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Wednesday, December 05, 2001 10:

[PHP] Partial answer to "FOLLOW UP on "column names not liked by odbc/php/access"

2001-12-05 Thread mweb
OOPS... of couse the query below doesn't work, it doesn't have the table name (see below however) > ISQL_exec_String = "Insert Into (Artista, Opera, Label, Anno, Nazione, > CDNow, Autore, AutoreNome, Genere, GenereCustom, SulWeb, Autorizzato, > Unico, VALUES ('prova2', 'inedita', 'ignota', > '

[PHP] Re: FOLLOW UP on "column names not liked by odbc/php/access"

2001-12-05 Thread Dr. Michael Wittmann
hi, in your sql command there are several errors: it has the form INSERT INTO () VALUES (); but: - there are more items in the list of values than in the list of fieldnames. these lists should match. - there's an extra comma after fieldname 'unico', and the closing ) is missing. - you dont n

[PHP] Re: FOLLOW UP on "column names not liked by odbc/php/access"

2001-12-05 Thread mweb
On Wednesday 05 December 2001 12:21, Dr. Michael Wittmann wrote: > - you dont need apostrophes for numeric fields. you get the table > definition using sql command 'DESC tablename' Thanks to Michael and all the others who pointed out my errors. The query works now. The real problem however, whi

[PHP] Re: Mac OSX and MySQL

2001-12-05 Thread René Fournier
>> I have to create a MySQL for my PHP scripts. How do I do this in Mac >> OSX? There are a bunch of command line tools, but I'm not sure which >> one[s] to use. > > Not sure I understand this question. What do you mean by "create a > MySQL for my PHP?" oops, I meant to write "create a MySQL

RE: [PHP] Re: FOLLOW UP on "column names not liked by odbc/php/access"

2001-12-05 Thread Andrew Hill
mweb, I suggest you use the ODBC Metadata functions in PHP to describe your database, e.g. odbc_tables, odbc_columns, odbc_primarykeys, odbc_foreignkeys, etc. Best regards, Andrew Hill Director of Technology Evangelism OpenLink Software http://www.openlinksw.com Universal Data Access & Data Int

Re: [PHP] Mac OSX and MySQL

2001-12-05 Thread Erik Price
On Wednesday, December 5, 2001, at 12:24 AM, René Fournier wrote: > > I have to create a MySQL for my PHP scripts. How do I do this in Mac > OSX? There are a bunch of command line tools, but I'm not sure which > one[s] to use. Well, if you already have MySQL installed, then just use them as

Re: [PHP] Re: Mac OSX and MySQL

2001-12-05 Thread Erik Price
Oh, okay, you want to know how to use NetInfo. Do "man niutil" and read the man pages on niutil. Also very useful, in the following link is a brief description of how to use NetInfo Manager to do the same thing if you prefer GUI: http://developer.apple.com/internet/macosx/osdb.html It tells

[PHP] Dumped OK, Restore NOT

2001-12-05 Thread René Fournier
Little problem with MySQL 3.23.46 under Windows ME. I'm trying to create a database from an .sql file (the dumped remains of a functioning database--also MySQL). The dumping was easy, but I'm having a problem putting it back. I have a dumped file called smarts.sql that starts this way: ---

Re: [PHP] Dumped OK, Restore NOT

2001-12-05 Thread René Fournier
That's why I cross-posted there as well. But I've found that posting to the mysql list doesn't help, more often than not--perhaps fewer subscribers. Anyways, if any PHP people here are--god forbid--actually using MySQL as their database, I would GREATLY appreciate any help in this matter. I've

RE: [PHP] Dumped OK, Restore NOT

2001-12-05 Thread Jon Haworth
> Anyways, if any PHP people here are--god forbid--actually using MySQL as > their database, I would GREATLY appreciate any help in this matter. I've > thoroughly read the mysqldump chapter in the docs, and gone through > several tutorials, but have found nothing on actually restoring a > data

[PHP] What is causing duplicate keys?

2001-12-05 Thread mweb
Hello, Always struggling on my php-odbc-MS access project, I managed to successfully add a record to a table. Now, no matter what I write in the first field (random numbers, AUTO, AUTO_INCREMENT...) I get this: Insert Into recensioni VALUES (300, 'riee', 'reworew', 'wer', 2001,'IT', 2.5, 'd

[PHP] RE: What is causing duplicate keys?

2001-12-05 Thread Rick Emery
it should read: INSERT INTO recensioni VALUES( NULL,... In order fot auto_increment to work, you must use NULL. When you tried NULL, what SPECIFIC error did you get when it complained? FYI: it complains about the "duplicate key" because you already inserted a record with 300 in the PRIMARY KEY

Re: [PHP] Dumped OK, Restore NOT

2001-12-05 Thread René Fournier
You know, I tried that, it it STILL didn't work. Then, after remembering to reboot my brain, I took a look at the smarts.sql that my ISP kindly dumped for me, to see what code/statements it might be missing--and lo and behold!--it didn't have a USE database; statement! Adding this one wee line

<    1   2