Re: [PHP] Invalid Argument ??? Not sure how to debug this

2002-03-17 Thread Jason Wong
is. -- Jason Wong - Gremlins Associates - www.gremlins.com.hk /* I'm having an emotional outburst!! */ - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com

Re: Problem with some characters in tablename

2001-12-16 Thread Jason Wong
with this name. The request is rejected. Has anybody an explanation ? You need to enclose the table name with backticks, eg: CREATE TABLE `w4-1` ( name varchar(10) NOT NULL default '', email varchar(30) NOT NULL default '' ); hth -- Jason Wong - Gremlins Associates

Re: Associative Array from MySQL

2001-12-09 Thread Jason Wong
; } } return($result); } } -- Jason Wong - Gremlins Associates - www.gremlins.com.hk /* Peers's Law: The solution to a problem changes the nature of the problem

Re: Random

2001-12-09 Thread Jason Wong
| 0.200211824104387 | | Magnet | 0.565105185438977 | | Feng Shui| 0.811984655272201 | | Candle | 0.953237160996755 | +--+---+ -- Jason Wong - Gremlins Associates - www.gremlins.com.hk /* Boling's postulate

Re: Random

2001-12-08 Thread Jason Wong
: $select=$dbh-prepare(select * from $thetable where url is not null order by rand() limit 1); I have tried everything, but nothing seems to work. Can anyone help. Rob The solution presented by Kodrik does work. What is the problem? -- Jason Wong - Gremlins Associates

Re: Optimizing date queries

2001-12-05 Thread Jason Wong
portion from myfield. Thus you can have WHERE HOUR(myfield) = 14 will select only those rows in myfield where the time is 2:XX PM. hth -- Jason Wong - Gremlins Associates - www.gremlins.com.hk /* The Abrams' Principle: The shortest distance between two points is off the wall

Re: help needed on datetime functions

2001-12-05 Thread Jason Wong
this: SEC_TO_TIME(UNIX_TIMESTAMP(2001-11-03 16:11:50) - UNIX_TIMESTAMP(2001-11-03 15:48:00)) which would return 00:23:50 hth -- Jason Wong - Gremlins Associates - www.gremlins.com.hk /* Universe, n.: The problem. */ - Before

Re: Mysql apache php

2001-11-29 Thread Jason Wong
On Thursday 29 November 2001 02:01, Auri Net SAC wrote: Hi please who knows a package that install apache + php + mysql in linux, i know phptriad but its for windows Thanks for your answer rvj ApacheToolBox http://www.apachetoolbox.com -- Jason Wong - Gremlins Associates

Re: Newbie question

2001-11-29 Thread Jason Wong
are delimited with a '|' in the fields. If I wish to select all records which contain 'christmas', what is the correct sql syntax please? (This should return records 1 and 3 from the example shown above) SELECT * FROM table WHERE category LIKE '%christmas%' should do the trick. hth -- Jason Wong

Re: Large Unique Rows

2001-11-28 Thread Jason Wong
too many rows to deal with. hth -- Jason Wong - Gremlins Associates - www.gremlins.com.hk /* Baker's First Law of Federal Geometry: A block grant is a solid mass of money surrounded on all sides by governors

Re: What's wrong with this inplode / array / mysql-querry ??

2001-11-20 Thread Jason Wong
name your multiselect fields as name[]. In your case it would be zimmermulreg[]. This would then give you an array when the form is submitted and thus make implode happy. hth -- Jason Wong - Gremlins Associates - www.gremlins.com.hk /* Mencken and Nathan's Ninth Law of The Average American

Re: Dumb Question: Listing tables in telnet

2001-11-18 Thread Jason Wong
in commands and it just does another - What is that? The - indicates that it is waiting for the rest of the query. You need to end each query with a semi-colon. Thus: mysql show tables;ENTER hth -- Jason Wong - Gremlins Associates - www.gremlins.com.hk /* Professor Gorden Newell threw another

Re: Timestamp allways zero zero

2001-11-14 Thread Jason Wong
to the time at which the record was updated. You should probably be using a DATETIME field for this. -- Jason Wong - Gremlins Associates - www.gremlins.com.hk /* We'll cross that bridge when we come back to it later

Re: Mysql and Japanese Characters

2001-11-14 Thread Jason Wong
type does not support binary encoding? lease ... or i´ll do harakiri You could try using a BLOB. hth -- Jason Wong - Gremlins Associates - www.gremlins.com.hk /* After one week [visiting Austria] I couldn't wait to go back to the United States. Everything was much more pleasant in the United

Re: Hopefully easy SQL question

2001-11-14 Thread Jason Wong
BY storyCategoryID; hth -- Jason Wong - Gremlins Associates - www.gremlins.com.hk /* HR 3128. Omnibus Budget Reconciliation, Fiscal 1986. Martin, R-Ill., motion that the House recede from its disagreement to the Senate amendment making changes in the bill to reduce fiscal 1986 deficits. The Senate

Re: mysql and cgi

2001-11-03 Thread Jason Wong
. I think your problem is that you haven't quoted the VALUES that you're inserting. Try: $QRY = INSERT INTO bandbook (user, ect1, ect2...) VALUES ('$userdb', '$ect1', '$ect2', ...); print($QRY); ## For debugging $rows=$dbh-do($QRY) || die Error; hth -- Jason Wong Gremlins Associates

Re: Chinese - East Asian Languages

2001-10-26 Thread Jason Wong
-- Jason Wong Gremlins Associates www.gremlins.com.hk - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail [EMAIL

Re: faster inserts updates

2001-10-22 Thread Jason Wong
primary key of multiple fields. And I also have a unique index on each of these fields. There are 1,734,291 bytes of data in the table with an average row length of 61. Sometimes it's quicker to drop the indices, insert your data, then recreate the indices. hth -- Jason Wong Gremlins