MySQL Sort by Array

2008-10-22 Thread Keith Spiller
Hi Guys, I'm trying to sort by a particular order: SELECT * FROM tablename WHERE id='5' OR id='9' OR id='25' OR id='34' ORDER BY id(5, 34, 9, 25) Can anyone tell me the proper syntax to accomplish this task? Thanks for your help. Keith

Time Zone Support

2008-08-26 Thread Keith Spiller
Hi, We need to add support for time zone to our existing PHP "Board Member" Extranet applications. Could those of you with experience supporting a time zone field in your MySQL data tables offer some advice? Would you use a single field? Would you use just an offset value? How would you rep

Re: Zip Codes with Leading Zeros

2008-08-21 Thread Keith Spiller
;[EMAIL PROTECTED]> To: "Keith Spiller" <[EMAIL PROTECTED]>; Sent: Thursday, August 21, 2008 8:28 PM Subject: RE: Zip Codes with Leading Zeros Keith (I'm not very familiar with phpMyAdmin): what is the underlying datatype of your zip code field? On the command line

Re: Zip Codes with Leading Zeros

2008-08-21 Thread Keith Spiller
the printer. I'm working on either finding or producing a script that will repair the 12,000 rows of mixed zip (5 digit) and zip+4 data. I appreciate your taking the time to help us Johnny. Keith - Original Message - From: Johnny Withers To: Keith Spiller Sent: Thu

Zip Codes with Leading Zeros

2008-08-21 Thread Keith Spiller
Hi, RE: Zip Codes with Leading Zeros We need to export a MySQL table with a zip code field to Excel. We currently use PhpMyAdmin to export to CSV or Excel files. We have had problems with zip codes with leading zeros. The leading zeros are removed so that we are left with incomplete codes.

MySQL Application Builder

2008-04-16 Thread Keith Spiller
Hi, I've been building my PHP/MySQL applications by hand for years. Now I am wondering after seeing a Flex demo if some sort of instant or super easy mysql application builder existings. I want something for rapid development with a graphical user interface. Maybe drag and drop table query c

Re: Sort Select by List

2006-12-17 Thread Keith Spiller
ent: Saturday, December 16, 2006 9:48 PM Subject: Re: Sort Select by List In the last episode (Dec 16), Dan Nelson said: In the last episode (Dec 16), Mark Leith said: > Pintér Tibor wrote: > >Keith Spiller írta: > >>I'm wondering how I would turn three different queries:

Re: Sort Select by List

2006-12-16 Thread Keith Spiller
Hi Hal, I appreciate your help, but the order can not be alphabetical. It must be explicitly Exec, VP, Dir... Keith - Original Message - From: "Hal Wigoda" <[EMAIL PROTECTED]> To: "Keith Spiller" <[EMAIL PROTECTED]> Sent: Saturday, December 16, 2006

Sort Select by List

2006-12-16 Thread Keith Spiller
Hello, RE: Sort Select by List I'm wondering how I would turn three different queries: SELECT * FROM team WHERE office = 'Exec' SELECT * FROM team WHERE office = 'VP' SELECT * FROM team WHERE office = 'Dir' Into one query with the sort order of office = 'Exec', 'VP', 'Dir'... Thank

Re: Manually Inserted Data

2006-11-01 Thread Keith Spiller
27; as z ) ORDER BY z, Start ASC, Status DESC, Time ASC a Does anyone see my mistake? Keith - Original Message - From: "Rolando Edwards" <[EMAIL PROTECTED]> To: "Keith Spiller" <[EMAIL PROTECTED]> Cc: "MySQL" Sent: Wednesday, November 01, 2006

Manually Inserted Data

2006-11-01 Thread Keith Spiller
Hi, I'm trying to manually insert data into a mysql query so that the data will be sorted by the query but not inserted into the table. Here's what I have so far: ( SELECT ID, Title, Label, Location, Start, End, Time, Description, Organization, Department, Contact, Phone, Email, Global, Board

Ftp of Mysql Files

2003-11-03 Thread Keith Spiller
Hello, I already use phpmyadmin to dump the mysql data into sql files, but I would like to back up the original database files as well. I found the actual database files on my server in var/lib/mysql and want to download copies, but I do not know wether I should use binary or ascii format. Wha

Now() and Timestamp

2002-11-21 Thread Keith Spiller
Hello, I am trying to figure out how to use the NOW() function with a MySQL Insert command on a Timestamp field. Here is my mysql command: INSERT INTO $tablename (sender, recipient, whenread, whensent, subject, messagetext, folder, priority, condition) VALUES ('$directorid', '$SendTo', '

mysqlimport

2002-03-25 Thread Keith Spiller
Hello, mysqlimport --replace --fields-terminated-by=\| --verbose --user=user --password=mysql database tables.sql I'm trying to use the mysqlimport command. I have multiple tables listed in my table.sql file. But the command requires that the filesname be the same as the table you try to im

Opps: Proper Case NOT lower case

2001-08-16 Thread Keith Spiller
-Opps: I meant to say I would like to convert to Proper Case, rather than lower case or UPPER CASE. I'm reading data from a mysql table that is entirely in uppercase letters. I'd very much like to convert them to Proper Case. After searching a while, I found that there is are php commands to

Proper Case Conversion

2001-08-16 Thread Keith Spiller
Hello, I'm reading data from a mysql table that is entirely in uppercase letters. I'd very much like to convert them to lowercase. After searching a while, I found that there is are php commands to convert text strings between upper and lower case, but I was unable to find anything that can c

LIMIT with mysql_num_rows

2001-07-10 Thread Keith Spiller
d, which I already knew. Is it possible to get this figure without doing a separate query? Thanks for any help... Keith Spiller [EMAIL PROTECTED]

LIMIT with mysql_num_rows

2001-07-10 Thread Keith Spiller
d, which I already knew. Is it possible to get this figure without doing a separate query? Thanks for any help... Keith Spiller [EMAIL PROTECTED]

array awry

2001-02-26 Thread Keith Spiller
This associative array embedded within a function and declared as a global at the start of the function, is meant to be a multidimensional array, but with every loop of the while ($myrow = mysql_fetch_row($result)) statement, it's previous values are replaced by the new ones. Any ideas on how

Join causing Error?

2001-02-25 Thread Keith Spiller
= '1' ORDER BY qorder",$db); Works perfectly? Keith Spiller a.k.a. Larentium