RE: [PHP-DB] MySQL Array

2002-12-06 Thread Mark
- From: 1LT John W. Holmes [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 05, 2002 3:26 PM To: Ryan Jameson (USA); Art Chevalier; [EMAIL PROTECTED] Subject: Re: [PHP-DB] MySQL Array I think he meant that he is only pulling one column, i.e. field1 with each mysql_fetch_array and he wants

Re: [PHP-DB] MySQL Array

2002-12-06 Thread Art Chevalier
nt(/trtr); } } -Original Message- From: 1LT John W. Holmes [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 05, 2002 3:26 PM To: Ryan Jameson (USA); Art Chevalier; [EMAIL PROTECTED] Subject: Re: [PHP-DB] MySQL Array I think he meant that he is only pulling one column, i.e

Re: [PHP-DB] MySQL Array

2002-12-06 Thread Antonio Bernabei
Hi, I want to insert the upper case of the strings written in the forn, so I put on the php file called these lines $NOME=strtoupper($nome); mysql_query (INSERT INTO anagrafe (codice,nome, cognome, codicefiscale) VALUES

Re: [PHP-DB] MySQL Array

2002-12-06 Thread Ignatius Reilly
Message - From: Antonio Bernabei [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, December 06, 2002 7:12 PM Subject: Re: [PHP-DB] MySQL Array Hi, I want to insert the upper case of the strings written in the forn, so I put on the php file called these lines $NOME=strtoupper($nome

RE: [PHP-DB] MySQL Array

2002-12-05 Thread Ryan Jameson (USA)
while ($ar = mysql_fetch_array($rs)) echo trtd. $ar['field1']./tdtd.$ar['field2']./td/tr; Make sense? -Original Message- From: Art Chevalier [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 05, 2002 12:44 PM To: [EMAIL PROTECTED] Subject: [PHP-DB] MySQL Array Hello, I am pulling

Re: [PHP-DB] MySQL Array

2002-12-05 Thread Art Chevalier
Yes that makes sense, but it is pretty much the same thing I was doing and it's producing the same results. Its basically putting the first element in all 4 table cells. The thing is...I am only selecting from one field. Im trying to get the 4 elements of the column with each pass. So in

RE: [PHP-DB] MySQL Array

2002-12-05 Thread Aaron Wolski
] Subject: Re: [PHP-DB] MySQL Array Yes that makes sense, but it is pretty much the same thing I was doing and it's producing the same results. Its basically putting the first element in all 4 table cells. The thing is...I am only selecting from one field. Im trying to get the 4 elements

Re: [PHP-DB] MySQL Array

2002-12-05 Thread 1LT John W. Holmes
and clean up the output, but hopefully that gives you an idea. ---John Holmes... - Original Message - From: Ryan Jameson (USA) [EMAIL PROTECTED] To: Art Chevalier [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Thursday, December 05, 2002 3:05 PM Subject: RE: [PHP-DB] MySQL Array while ($ar

Re: [PHP-DB] mysql - enum

2002-12-02 Thread Ignatius Reilly
DESCRIBE tbl_name col_name Ignatius - Original Message - From: Bastian Vogt [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, December 02, 2002 1:41 PM Subject: [PHP-DB] mysql - enum Hi, is it possible to get all possible values of

Re: [PHP-DB] mysql - enum

2002-12-02 Thread Ruth Zhai
This is what I use: SHOW COLUMNS FROM table LIKE field I use the query result for a select field in HTML table. Ruth - Original Message - From: Bastian Vogt [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, December 02, 2002 11:41 PM Subject: [PHP-DB] mysql - enum Hi, is it

RE: [PHP-DB] mysql problem

2002-11-28 Thread Peter Lovatt
Hi you need quotes around the values mysql_query(insert into tblquotehits (qoption,referer,browser,remoteaddr,dt) values ('$quotetype','$referer','$browser','$remoteaddress','$currentdtstring'),$d b); HTH Peter --- Excellence in internet and open

RE: [PHP-DB] mysql problem

2002-11-28 Thread John W. Holmes
So what's the problem? The data doesn't appear in the table? Did you try to see if mysql_error() had anything in it after your query? ---John Holmes... -Original Message- From: Bill Arbuckle, Jr. [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 28, 2002 5:56 PM To: [EMAIL

RE: [PHP-DB] MySQL connectiviy

2002-11-22 Thread Pedro M. S. Oliveira
Hi Jeremy, Probably you don't have all of php installed; you can pick it up in php.net and install the full php libs. Or in your php ini file, the php lib path can be incorrect, well these are just thoughts as I don't use red hat for some time (SuSE Forever). Hope you figure it out, Pedro

Re: [PHP-DB] MySQL connectiviy

2002-11-22 Thread Jason Wong
On Saturday 23 November 2002 02:34, Jeremy Wood wrote: Hello all, I'm new to PHP and would like to start using mySQL (or postgresql) but I keep having one problem. In a php file i have a simple call to the function mysql_connect() but i constantly get the error Fatal error: Call to

Re: [PHP-DB] MySQL connectiviy

2002-11-22 Thread Jeremy Wood
No, I was unable to find a new version of it. Is there a version for php 4.2 ? Jeremy -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP-DB] MySQL Problem

2002-11-21 Thread Michael Hazelden
Maybe I'm missing something - but the MySQL statement looks right ... How are you displaying the results? -Original Message- From: Griffiths, Daniel [mailto:[EMAIL PROTECTED]] Sent: 21 November 2002 16:37 To: PHP List Subject: [PHP-DB] MySQL Problem Hi, I have a problem with an MySQL

RE: [PHP-DB] MySQL Problem

2002-11-21 Thread Griffiths, Daniel
: 21 November 2002 16:41 To: Griffiths, Daniel; PHP List Subject: RE: [PHP-DB] MySQL Problem Maybe I'm missing something - but the MySQL statement looks right ... How are you displaying the results? -Original Message- From: Griffiths, Daniel [mailto:[EMAIL PROTECTED]] Sent: 21 November

RE: [PHP-DB] MySQL Problem

2002-11-21 Thread Jason Vincent
Still think we need to see the PHP code before determining that it is an SQL problem. Regards, J -Original Message- From: Jason Wong [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 21, 2002 11:55 AM To: [EMAIL PROTECTED] Subject: Re: [PHP-DB] MySQL Problem On Friday 22 November

RE: [PHP-DB] MySQL Problem

2002-11-21 Thread Griffiths, Daniel
the month starts at 1, at the moment I'm just hard coding the month into the statment. -Original Message- From: Jason Wong [mailto:[EMAIL PROTECTED]] Sent: 21 November 2002 16:55 To: [EMAIL PROTECTED] Subject: Re: [PHP-DB] MySQL Problem On Friday 22 November 2002 00:46, Griffiths

RE: [PHP-DB] MySql security

2002-11-19 Thread Joakim Andersson
Hi, Since i dont know any mysql group, i will try here - it is anyway related to php. When i want to make php/mysql application i have mysql on the server and i connect to it with mysql_pconnect(localhost,root,) and it works. I assume that any user or hacker could connect to mysql

Re: [PHP-DB] MySql security

2002-11-19 Thread Radovan Radic
how i do this in mysql. If this is offtopic can someone point me to any mysql newsgroup. I would say this is very offtopic, but this query should do the trick: GRANT select, update, insert ON your_db_name.* TO your_username@localhost IDENTIFIED BY 'your_password' Take a look in the MySQL

Re: [PHP-DB] MySql Update.

2002-11-12 Thread Adam Voigt
$query = UPDATE tablename SET ; foreach($_POST AS $key = $value) $query .= $key = '$value',; $query[strlen($query)-1] = ; $query .= WHERE id = '$_GET[id]'; Or something? On Tue, 2002-11-12 at 13:58, David Rice wrote: Making an update query that adapts to the number of fields that

Re: [PHP-DB] MySql Update.

2002-11-12 Thread Marco Tabini
How about: function do_query ($table, $fields, $where) { $sql = 'update ' . $table . ' Set '; foreach ($fields as $k=$v) $sql = $k . ' = \'' . $v . '\','; return mysql_query ($sql); } Not sure if it adapts 100% to your case but you can probably fix it

Re: [PHP-DB] MySQL password protection?

2002-11-07 Thread Adam Voigt
Make the include file (or wherever your page with the pass is) encrypted, see ioncube.com they charge by the amount of code you incrypt, for a simple database include file, I think it would be $1 or less. On Wed, 2002-11-06 at 16:04, William Trappeniers wrote: Hi all I was wondering if it is

Re: [PHP-DB] MySQL password protection?

2002-11-06 Thread 1LT John W. Holmes
I was wondering if it is possible to protect my password to the MySQL-server from being in a PHP-script. Now I can't do that, so everybody who gets to see my php-sourcecode also can see my (not protected/not encrypted) password. How can I change this? You can't, unless you want to put it in

RE: [PHP-DB] MySQL password protection?

2002-11-06 Thread SELPH,JASON (HP-Richardson,ex1)
;charter.net] Sent: Wednesday, November 06, 2002 4:16 PM To: William Trappeniers; [EMAIL PROTECTED] Subject: Re: [PHP-DB] MySQL password protection? I was wondering if it is possible to protect my password to the MySQL-server from being in a PHP-script. Now I can't do that, so everybody who gets

Re: [PHP-DB] MySQL password protection?

2002-11-06 Thread Steve Cayford
You could put it anywhere. Stick it in a text file somewhere, fopen() and read the file for the password. Or keep it in a php script outside of the web root if that's the issue, then just include() it when you need to. Of course any file you put it in will have to be readable by whatever user

Re: [PHP-DB] MySQL password protection?

2002-11-06 Thread 1LT John W. Holmes
John W. Holmes' [EMAIL PROTECTED]; William Trappeniers [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Wednesday, November 06, 2002 5:30 PM Subject: RE: [PHP-DB] MySQL password protection? actually you can make a .php file with your connection info, include it in your .php files at the top

RE: [PHP-DB] MySQL password protection?

2002-11-06 Thread Marco Tabini
in it. -Original Message- From: 1LT John W. Holmes [mailto:holmes072000;charter.net] Sent: Wednesday, November 06, 2002 4:16 PM To: William Trappeniers; [EMAIL PROTECTED] Subject: Re: [PHP-DB] MySQL password protection? I was wondering if it is possible to protect my password to the MySQL

Re: [PHP-DB] MySQL password protection?

2002-11-06 Thread Peter Beckman
And make sure you make sure the webserver will not SERVE that file!!! You see the source, see that you are fopening the file, I'll find it on your system and get it from the web server and I have your password! Make sure the file is NOT in the document root that the web server serves from. You

RE: [PHP-DB] MySQL password protection?

2002-11-06 Thread Josh Johnson
The standard apache install filters anything named .ht*. on the web tree. -- Josh -Original Message- From: Peter Beckman [mailto:beckman;purplecow.com] Sent: Wednesday, November 06, 2002 6:44 PM To: Steve Cayford Cc: [EMAIL PROTECTED]; William Trappeniers Subject: Re: [PHP-DB] MySQL

RE: [PHP-DB] MySQL password protection?

2002-11-06 Thread Josh Johnson
PROTECTED] Subject: Re: [PHP-DB] MySQL password protection? Create a user nobody with no password and give that user select, update, delete and insert capabilities in your DB and can only connect from localhost (or a certain host). This way they have to be on localhost in order to gain access

Re: [PHP-DB] MySQL password protection?

2002-11-06 Thread Dave Smith
One thing I do with Postgres that I'm not sure MySQL supports is Kerberos5 authentication. This way, a user logs in (and they have a user account on the DB) and I use their remote user name and their Kerberos ticket to authenticate them to the DB. That works without having to store a password

RE: [PHP-DB] MySql and displaying only yesterday's records

2002-10-21 Thread John W. Holmes
Given a datetime field in a MySql database, how can i list all the records that are dated back to yesterday or to 'N' days in the past? SELECT * FROM your_table WHERE TO_DAYS(date_column) = TO_DAYS(CURRENT_DATE) - N Where N is how many days you want to go back. ---John Holmes... -- PHP

Re: [PHP-DB] MySql and displaying only yesterday's records

2002-10-21 Thread Jason Wong
On Monday 21 October 2002 22:07, lallous wrote: TO_DAYS() applied on datetime field is returning different values on different times but same date! How can I pass to TO_DAYS() only the DATE part of my datetime field? As far as I can tell, TO_DAYS() does only use the DATE part regardless

RE: [PHP-DB] MySQL Insert Select statement

2002-10-19 Thread John W. Holmes
That's how you do it. Hopefully you've figured it out already. ---John Holmes. -Original Message- From: dwalker [mailto:dwalker;healthyproductsplus.com] Sent: Saturday, October 19, 2002 7:51 PM To: professional php; [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: [PHP-DB] MySQL

Re: [PHP-DB] MySQL Insert Select statement

2002-10-19 Thread dwalker
. -Original Message- From: John W. Holmes [EMAIL PROTECTED] To: 'dwalker' [EMAIL PROTECTED]; 'professional php' [EMAIL PROTECTED]; [EMAIL PROTECTED] [EMAIL PROTECTED]; [EMAIL PROTECTED] [EMAIL PROTECTED] Date: Saturday, October 19, 2002 7:24 PM Subject: RE: [PHP-DB] MySQL Insert Select statement That's

Re: [PHP-DB] MySQL Insert Select statement

2002-10-19 Thread Jeffrey_N_Dyke
] 10/19/2002 08:32 PM cc: Please respond to Subject: Re: [PHP-DB] MySQL Insert Select statement

RE: [PHP-DB] MySql Statement inside a function?

2002-10-18 Thread Rob Day
i'm certainly no expert, but here are my thoughts: the variable $tbn2 probabyl has no value inside of your function. so the query is really just select name from. i'd suggest you pass the $tbn2 value to the function. also, it is generally a bad idea to have a echo statements in function. rather

RE: [PHP-DB] MySql Statement inside a function?

2002-10-18 Thread Hutchins, Richard
Dave, I'd agree with Rob especially about returning the results. Plus it's always a good idea to add error checking to your SQL statement. Try replacing your existing line of code with this to make sure you query is actually returning valid results before trying to operate on them. $gnlistres =

Re: [PHP-DB] MySQL REGEXP functionality... any way to make this easier?

2002-10-14 Thread Ignatius Reilly
If you want to generalize the process to a n-set, a recursion method is clearly required. XSLT looks the best candidate to me to do this. I will tackle it when I find some time. Cheers Ignatius - Original Message - From: Xepherys [EMAIL

Re: [PHP-DB] MySQL REGEXP functionality... any way to make this easier?

2002-10-10 Thread Martin Adler
Hi, unfortunately i can't help you much, but listen you can make your pattern more readable if you delete [] there's no need for classes in your pattern SELECT * FROM ospd WHERE word REGEXP '^a?p?e?$|^a?e?p?$|^p?e?a?$|^p?a?e?$|^e?a?p?$|^e?p?a?$'; ? = one or none but if you need each letter

RE: [PHP-DB] MySQL 4.x and PHP

2002-10-02 Thread John W. Holmes
New MySQL is out I noticed (4.0.4). Is there any way to make it work correctly with PHP? I haven't seen any modules for download or comments about this issue. I'm just wondering if there is some modifications I can make or if I'm just stuck with MySQL 3.x until something new is released

RE: [PHP-DB] MySQL/PHP dropping characters

2002-09-24 Thread Ford, Mike [LSS]
-Original Message- From: Micah Stevens [mailto:[EMAIL PROTECTED]] Sent: 23 September 2002 18:09 I've been running into a strange problem on my server with scripts that take form input and reformat it into SQL. It only happens with statements that insert or update data, the

Re: [PHP-DB] Mysql vs postgresql

2002-09-24 Thread Adam Alkins
Hi peoples, The company I'm about to partner with for hosting my websites is using postgresql for their database server. I currently use mysql for all of mine. What I'm trying to find out is peoples experiences using postgresql, any plusses or minusses, is it worth using these guys or

Re: [PHP-DB] MySQL timestamp field update problem

2002-09-11 Thread Paul DuBois
At 11:59 -0500 9/11/02, Rob Day wrote: Hi all, I have a table in MySQL with the following field: 'time_date' timestamp(14) NOT NULL When a record is inserted into the table, NULL is inserted into the time_date field giving me a normal timestamp with the time of the INSERT. That much is

Re: [PHP-DB] MySQL order by in greek

2002-09-05 Thread Gurhan Ozen
Hi you have to restart your mysqld server with --default-character-set=greek option. You can either do this by explicitly giving it in the command line when restarting your mysqld, or you can add that line to your global my.cnf file. See: http://www.mysql.com/doc/en/Command-line_options.html

Re: [PHP-DB] [mysql] query atomicity

2002-09-04 Thread :B nerdy
i am unfarmillar with InnoDB, i am currently using MyISAM i believe. just the default one. i am a complete noobie with InnoDB, do i have to convert my db? cheers Andrey Hristov [EMAIL PROTECTED] wrote in message

RE: [PHP-DB] MySQL/PHP

2002-08-30 Thread Beau Lebens
try a little thought... http://www.google.com/search?sourceid=navclientq=php+mysql+tutorial // -Original Message- // From: Bryan McLemore [mailto:[EMAIL PROTECTED]] // Sent: Friday, 30 August 2002 2:52 PM // To: PHP LIST // Subject: [PHP-DB] MySQL/PHP // // // Where can I find a

Re: [PHP-DB] MySQL Database Connection Error ?

2002-08-28 Thread Jason Wong
On Wednesday 28 August 2002 20:48, R Strang wrote: i have a simple guest book script from a book by jay greenspan i think , when i run seems oikay i fill in the form and click submit, after submitting iam getting this error ? PHP Warning: Failed opening 'dbconnect.php' for inclusion

Re: [PHP-DB] MySQL and BLOB

2002-08-22 Thread Martin Adler
8:17 AM Subject: Re: [PHP-DB] MySQL and BLOB On Thursday 22 August 2002 13:57, Andy wrote: Hi there, I am storing via PHP pictures into BLOB fields. Worked fine so far for over 200 images. Now an error has occured with a particular picture. No error msg. Just does not work

Re: [PHP-DB] MySQL and BLOB

2002-08-21 Thread Jason Wong
On Thursday 22 August 2002 13:57, Andy wrote: Hi there, I am storing via PHP pictures into BLOB fields. Worked fine so far for over 200 images. Now an error has occured with a particular picture. No error msg. Just does not work. The wired thing is that the thumbnail does. So I guess the

Re: [PHP-DB] mySQL settings

2002-08-18 Thread Joni Järvinen
Read about GRANT function in the MySQL manual. -Joni- -- // Joni Järvinen // [EMAIL PROTECTED] // http://www.reactorbox.org/~wandu On Sunday 18 August 2002 09:54, Georgie Casey wrote: rite, i run a web server and sell space to workers. my admin setup apache, mysql and php with all the

RE: [PHP-DB] mySQL settings

2002-08-18 Thread MET
As Joni said you need to read about the GRANT functions in the MySQL manual. But basically here's what's happening. Each person your hosting has a specific login/pass into the database. When they login MySQL looks in the 'MySQL' database and checks the users privileges. By default Ensim sets

Re: [PHP-DB] mySQL settings

2002-08-17 Thread Jason Wong
On Sunday 18 August 2002 09:54, Georgie Casey wrote: rite, i run a web server and sell space to workers. my admin setup apache, mysql and php with all the settings. each customers gets one sql db with a host acc. the system runs ensim. but now i want one of my accounts do be able to access

Re: [PHP-DB] MySQL queries

2002-08-14 Thread Miles Thompson
George, It is likely that your win32 system did not care about case. If you are using a *nix host it is case sensitive, and its installation of MySQL, by extension, is as well. Try echo'ing the select statement to see what you have. Miles At 10:42 PM 8/14/2002 +0100, Georgie Casey wrote:

Re: [PHP-DB] mySQL max connections

2002-07-30 Thread Rasmus Lerdorf
I would suggest looking into MySQL's replication support. Split reads and writes so they go to separate servers. That is, create a master server where you send all database writes. And do all reads on the replicated slave servers. Have a look at this presentation I gave last week on this

RE: [PHP-DB] Mysql syntax error - phpMyAdmin ??

2002-07-10 Thread Ryan Jameson (USA)
desc is a key word. :-\ -Original Message- From: Michael Zornek [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 10, 2002 10:50 AM To: [EMAIL PROTECTED] Subject: [PHP-DB] Mysql syntax error - phpMyAdmin ?? I was using phpMyAdmin to do an export from one machine to another and on import

RE: [PHP-DB] Mysql syntax error - phpMyAdmin ??

2002-07-10 Thread Ryan Jameson (USA)
Try [desc] -Original Message- From: Ryan Jameson (USA) Sent: Wednesday, July 10, 2002 10:51 AM To: [EMAIL PROTECTED] Subject: RE: [PHP-DB] Mysql syntax error - phpMyAdmin ?? desc is a key word. :-\ -Original Message- From: Michael Zornek [mailto:[EMAIL PROTECTED]] Sent

Re: [PHP-DB] Mysql syntax error - phpMyAdmin ??

2002-07-10 Thread Chip Atkinson
I can't say for sure, but perhaps desc is a reserved word, short for describe. What happens if you say something like description? Chip On Wed, 10 Jul 2002, Michael Zornek wrote: I was using phpMyAdmin to do an export from one machine to another and on import I got an error: Error

Re: [PHP-DB] Mysql syntax error - phpMyAdmin ??

2002-07-10 Thread Martin Clifford
DESC is a reserved word in SQL, standing for Descending Order. That is why you can't use it as a table column name. HTH Martin Michael Zornek [EMAIL PROTECTED] 07/10/02 12:49PM I was using phpMyAdmin to do an export from one machine to another and on import I got an error: Error

RE: [PHP-DB] Mysql syntax error - phpMyAdmin ??

2002-07-10 Thread Ryan Jameson (USA)
Sorry, [desc] won't work either. :-( -Original Message- From: Chip Atkinson [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 10, 2002 10:54 AM To: Michael Zornek Cc: [EMAIL PROTECTED] Subject: Re: [PHP-DB] Mysql syntax error - phpMyAdmin ?? I can't say for sure, but perhaps desc

Re: [PHP-DB] Mysql syntax error - phpMyAdmin ??

2002-07-10 Thread Jason Wong
On Thursday 11 July 2002 01:00, Ryan Jameson (USA) wrote: Sorry, [desc] won't work either. :-( Try `desc`. But it's best not to use 'desc' at all, it will save you confusion in the long run. -- Jason Wong - Gremlins Associates - www.gremlins.com.hk Open Source Software Systems Integrators *

Re: [PHP-DB] Mysql syntax error - phpMyAdmin ??

2002-07-10 Thread Michael Zornek
Twas 7/10/02 12:55 PM, when Martin Clifford [EMAIL PROTECTED] said: DESC is a reserved word in SQL, standing for Descending Order. That is why you can't use it as a table column name. Ok, that makes sence - thanks! Although I find it a bit curious that building the DB in phpMyAdmin let me

Re: [PHP-DB] Mysql syntax error - phpMyAdmin ??

2002-07-10 Thread Gurhan Ozen
: http://www.mysql.com/doc/L/e/Legal_names.html Gurhan - Original Message - From: Michael Zornek [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, July 10, 2002 1:30 PM Subject: Re: [PHP-DB] Mysql syntax error - phpMyAdmin ?? Twas 7/10/02 12:55 PM, when Martin Clifford [EMAIL

RE: [PHP-DB] MySQL test database creation...

2002-07-05 Thread NIPP, SCOTT V (SBCSI)
Thanks, but I finally stumbled across the answer. Thankfully it was simple enough even for me. In case anyone else had this question also, all you have to do is browse for your dump file in the 'SQL' window of phpMyAdmin and click 'Go'. That's it. -Original Message- From:

RE: [PHP-DB] MySQL test database creation...

2002-07-05 Thread Peter Lovatt
hi If the database is not too much data you can export using phpMyAdmin and select 'complete inserts' which generates complete queries. you could also do INSERT INTO db_2.tablename SELECT * FROM db_1.tablename if both databases are on the same server. There may be better answers, but these

RE: [PHP-DB] MySQL Update failing...

2002-06-27 Thread Ryan Jameson (USA)
I didn't get your attachements. Maybe paste them in a row into the email? -Original Message- From: NIPP, SCOTT V (SBCSI) [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 27, 2002 10:07 AM To: '[EMAIL PROTECTED]' Subject: [PHP-DB] MySQL Update failing... In need of some help. I

RE: [PHP-DB] MySQL Update failing...

2002-06-27 Thread NIPP, SCOTT V (SBCSI)
Figured it out. Thanks to anyone who started looking at this. The problem was not having my variables in the correct order in the $updateSQL. Once I corrected this, the posting now works fine. -Original Message- From: NIPP, SCOTT V (SBCSI) [mailto:[EMAIL PROTECTED]] Sent:

Re: [PHP-DB] MySQL Indexing Size

2002-06-27 Thread olinux
hmm... index it - and you will know olinux --- [EMAIL PROTECTED] wrote: hi all I want to know storage required for my database. How i can determine size required for indexing a column ? (my column's type that indexed is varchar(15)) Thanks -- PHP Database Mailing List

Re: [PHP-DB] MySql password

2002-06-24 Thread Paul DuBois
At 14:58 -0400 6/24/02, Page Works Web Solutions wrote: Hi all, I have a Cobalt Raq 4 running Linux. I've installed the .pkg file RaQ3-RaQ4-MySQL-3.23.37-1.pkg I can telnet into the server and I type mysql, now I see that I'm in MySql, but when I type bin/mysqladmin -password and put a

Re: [PHP-DB] MYSQL Socket error :\

2002-06-22 Thread Marco Lanini
neficial to check the event log. More clues may lie in there. If the webserver has any type of error log check that as well. Aaron Weiker -Original Message- From: Marco Lanini [mailto:[EMAIL PROTECTED]] Sent: Saturday, June 22, 2002 1:10 AM To: [EMAIL PROTECTED] Subject: Re: [PHP-D

RE: [PHP-DB] MYSQL Socket error :\

2002-06-22 Thread Aaron T. Weiker
Are you able to connect to the MySQL server using a client? Aaron Weiker -Original Message- From: Marco Lanini [mailto:[EMAIL PROTECTED]] Sent: Saturday, June 22, 2002 8:39 AM To: [EMAIL PROTECTED] Subject: Re: [PHP-DB] MYSQL Socket error :\ PHP Warning: MySQL Connection Failed: Can't

Re: [PHP-DB] MYSQL Socket error :\

2002-06-22 Thread Marco Lanini
, 2002 8:39 AM To: [EMAIL PROTECTED] Subject: Re: [PHP-DB] MYSQL Socket error :\ PHP Warning: MySQL Connection Failed: Can't create TCP/IP socket (10106) in c:\flashinlabs\web\http\provamysql.php on line 3 this is the LOG error. i'm into panic. Aaron T. Weiker [EMAIL PROTECTED] ha scritto nel m

Re: [PHP-DB] MySQL and datatime field and displaying on page

2002-06-21 Thread Jason Wong
On Friday 21 June 2002 21:42, Charlie Grosvenor wrote: Hi I have a mysql table that has a field in it called 'DATETIMEADDED' which has data type 'datetime' I want to display the contents of the field on my page. I have tried usng the following code but the value in the 'DATETIMEADDED'

RE: [PHP-DB] MYSQL Socket error :\

2002-06-21 Thread Dan Harrington
I'm no expert on XP, but you may want to check the firewall settings, to make sure that windows XP isn't preventing the connection. For the $host, you may want to either use 'localhost' or 127.0.0.1 Cheers, Dan -Original Message- From: Marco Lanini [mailto:[EMAIL PROTECTED]]

Re: [PHP-DB] MYSQL Socket error :\

2002-06-21 Thread Marco Lanini
Thanks Dan, but i have already tested this solution... i have build a very little test script, who generate this error. ?php mysql_connect(127.0.0.1,root,admin) or die(mysql_error()); print(connected!!!); ? i am in localhost and i use very simple root admin login but the message is always

RE: [PHP-DB] MYSQL Socket error :\

2002-06-21 Thread Aaron T. Weiker
] Subject: Re: [PHP-DB] MYSQL Socket error :\ Thanks Dan, but i have already tested this solution... i have build a very little test script, who generate this error. ?php mysql_connect(127.0.0.1,root,admin) or die(mysql_error()); print(connected!!!); ? i am in localhost and i use

Re: [PHP-DB] MySQL Clustering, redundancy

2002-06-18 Thread Adam Voigt
Yes,it's called Replication in the MySQL documentation. However, since the info in the manual is kind of sparse so I would hop on google and do a search for specific instructions on how to do it when your ready, but to answer your question, yes, MySQL does do Redundancy/Failover. (Ofcourse you

RE: [PHP-DB] MySQL Clustering, redundancy

2002-06-18 Thread Matt Babineau
://www.criticalcode.com PO BOX 601 Manchester, NH 03105 -Original Message- From: Adam Voigt [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 18, 2002 8:55 AM To: [EMAIL PROTECTED] Cc: Matt Babineau Subject: Re: [PHP-DB] MySQL Clustering, redundancy Yes,it's called Replication in the MySQL documentation

RE: [PHP-DB] MySQL Clustering, redundancy

2002-06-18 Thread Adam Voigt
-Original Message- From: Adam Voigt [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 18, 2002 8:55 AM To: [EMAIL PROTECTED] Cc: Matt Babineau Subject: Re: [PHP-DB] MySQL Clustering, redundancy Yes,it's called Replication in the MySQL documentation. However, since the info in the manual

Re: [PHP-DB] MySQL Clustering, redundancy

2002-06-18 Thread Edward Marczak
On 6/18/02 9:19 AM, Adam Voigt [EMAIL PROTECTED] pressed the keys forming the message: I have never actually tried to program against something which talks to multiple DB's, the quickest way would be in your DB connection code to have something that will either: A. Try the first DB and

RE: [PHP-DB] MySQL timestamp field in different time zone

2002-06-13 Thread Ryan Jameson (USA)
I had a similar issue where I wanted timestamps to be relative to the user. I didn't find any better way then to create some profile data that contained their timezone and allow them to save that data. Then anytime I displayed a timestamp I added the timezone shift to the stamp. It would be

RE: [PHP-DB] MySQL timestamp field in different time zone

2002-06-13 Thread Ryan Jameson (USA)
BTW... are you saying that you plan to move the MySQL server around to different time zones? Why would you do that? -Original Message- From: Ryan Jameson (USA) Sent: Thursday, June 13, 2002 9:44 AM To: [EMAIL PROTECTED] Subject: RE: [PHP-DB] MySQL timestamp field in different time zone

Re: [PHP-DB] MySQL timestamp field in different time zone

2002-06-13 Thread bill
saying that you plan to move the MySQL server around to different time zones? Why would you do that? -Original Message- From: Ryan Jameson (USA) Sent: Thursday, June 13, 2002 9:44 AM To: [EMAIL PROTECTED] Subject: RE: [PHP-DB] MySQL timestamp field in different time zone I had

RE: [PHP-DB] MySQL timestamp field in different time zone

2002-06-13 Thread Ryan Jameson (USA)
the calculation either on the sql or upon displaying but it has to happen on the client. Ryan -Original Message- From: bill [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 13, 2002 2:03 PM To: [EMAIL PROTECTED] Subject: Re: [PHP-DB] MySQL timestamp field in different time zone No, it is similar

Re: [PHP-DB] MySQL problem on Yellow Dog Linux

2002-06-09 Thread Garrett Nelson
Woo-hoo! Fixing the extensions directory worked. I am now all set with MySQL support ... Thanks for all the help! -- -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DB] MySQL problem on Yellow Dog Linux

2002-06-08 Thread Jason Wong
On Saturday 08 June 2002 05:29, Garrett Nelson wrote: I now downloaded php-mysql-4.1.2-1a.ppc.rpm from rpmfinder, and again I get rpm -ivh php-mysql* Preparing...### [100%] package php-mysql-4.1.2-1a is already installed (Same error

Re: [PHP-DB] MySQL problem on Yellow Dog Linux

2002-06-08 Thread Jason Wong
On Saturday 08 June 2002 23:20, Garrett Nelson wrote: I have both the lines in httpd.conf. As I said, PHP is working fine, it's just an issue with MySQL support I believe. Sorry my mistake. Check in php.ini for this line: extension=mysql.so -- Jason Wong - Gremlins Associates -

Re: [PHP-DB] MySQL problem on Yellow Dog Linux

2002-06-08 Thread Jason Wong
On Sunday 09 June 2002 01:28, Garrett Nelson wrote: Well, we're getting closer now, maybe. I added the line extension=mysql.so, and I still get the same error when trying to run the web-based PHP apps, but in the command line when I type php I get back, PHP Warning: Unable to load dynamic

RE: [PHP-DB] MySQL won't return results to screen.

2002-06-07 Thread Ray Hunter
Edit your php.ini and log all errors to a file and then review the filesalso you can turn on all errors and warnings to be displayed---this has helped me many times... Thank you, RAY HUNTER -Original Message- From: Blaine Dinsmore [mailto:[EMAIL PROTECTED]] Sent: Friday, June 07,

RE: [PHP-DB] MySQL won't return results to screen.

2002-06-07 Thread Gary . Every
Do you have SELECT permissions for your httpd user on the DB? Gary Every Sr. UNIX Administrator Ingram Entertainment (615) 287-4876 Pay It Forward mailto:[EMAIL PROTECTED] http://accessingram.com -Original Message- From: Blaine Dinsmore [mailto:[EMAIL PROTECTED]] Sent: Friday, June 07,

Re: [PHP-DB] MySQL problem on Yellow Dog Linux

2002-06-07 Thread Garrett Nelson
On 6/6/02 4:48 PM, Jason Wong [EMAIL PROTECTED] wrote: On Friday 07 June 2002 04:36, Garrett Nelson wrote: I'm a relative newbie to the Linux/web server world, having worked with Macs most of my life. I recently installed the Server install of Yellow Dog Linux, with no window managers, CLI

Re: [PHP-DB] Mysql and DBF files

2002-06-06 Thread Achilleas Maroulis
Than you very much. I'm talking about dbase files so it must work... - Original Message - From: Viliam Frtala [EMAIL PROTECTED] To: Achilleas Maroulis [EMAIL PROTECTED] Sent: Wednesday, June 06, 2001 1:14 PM Subject: RE: [PHP-DB] Mysql and DBF files if it's like dbase DBF files

Re: [PHP-DB] MySQL problem on Yellow Dog Linux

2002-06-06 Thread Paul Burney
on 6/6/02 4:36 PM, Garrett Nelson at [EMAIL PROTECTED] appended the following bits to my mbox: What needs to be configured? I was under the impression that MySQL support was built into PHP now and that it needs no extension. I downloaded the RPM of PHP 4.1.2 (the latest PPC RPM available at

Re: [PHP-DB] mysql exclusion in php

2002-05-30 Thread Ed Gorski
You need to parse the string and PHP and generate the appropriate query based on that parsing... ed At 09:22 PM 5/29/2002 -0700, Chris Payne wrote: Hi there everyone, How can I do a search which excludes certain words if they put a - in the search string? I can do a search easily, but if

RE: [PHP-DB] mysql exclusion in php

2002-05-29 Thread Beau Lebens
chris, you'll need to do a little PHP manipulation, perhaps (pseudo) if -word. (regular expression?) for each -word SQL .= NOT LIKE '%word% AND' endforeach endif for each other word SQL .= LIKE '%word%' AND endforeach strip trailing AND clean up SQL as

RE: [PHP-DB] MySQL Problem

2002-05-21 Thread Gurhan Ozen
That means PHP is not compiled with the MySQL support... Configure it with mysql support, I bbelieve there were a lot of questions about this in the list, so you may wanna search the archives.. Gurhan -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Tuesday,

Re: [PHP-DB] MySQL Query

2002-05-03 Thread Alnisa Allgood
At 1:01 PM +0100 5/3/02, CM wrote: SELECT Periode.LibPeriode, PaysPeriode.RefPaysPeriode, PaysPeriode.DateDebut,PaysPeriode.DateFin FROM Periode, PaysPeriode, Pays WHERE Pays.RefPays = PaysPeriode.Refpays AND Periode.RefPeriode = PaysPeriode.RefPeriode AND PaysPeriode.DateDebut 2002020700

Re: [PHP-DB] MYSQL: INsert html form data;

2002-05-01 Thread [EMAIL PROTECTED]
I'm not sure what you're asking but the fields are set to varchar(40) which will accommodate the information I have been insertinging... /T on 4/30/02 9:00 PM, Neil at [EMAIL PROTECTED] wrote: Have you checked to see that id tidying is set to the amount equal to the fields in your form.

<    2   3   4   5   6   7   8   9   10   >