Re: [PHP] Measurement Problem

2004-03-27 Thread Galen
How about a MySQL table, like you're saying, with the lengths? Two columns: English and Metric. Then just do a select metric where english = 6 1/8 (my pseudo-SQL) with MySQL and get the length. I suspect there are only a limited number of standard lengths and this would work nicely. You could a

Re: [PHP] Measurement Problem

2004-03-27 Thread Jim Kaufman
On Sat, Mar 27, 2004 at 07:55:31PM -0700, Karl Timmermann wrote: > Hi, > > I am working on a PHP/MySQL solution to have a webpage where users can > rate cigars. I ran into a problem though. One variable that exists is > the length of the cigar. In the cigar world, the lengths are usually > writ

[PHP] mysql table field choices

2004-03-27 Thread Andy B
just a short one here... what would be the best type of field for a combo box that looks like this: ---pick a month--- January February and the same thing with the year... was thinking either int(2) for the month and int(4) for the year but would enum(1, 2, 3, 4...12) be better for the

[PHP] Measurement Problem

2004-03-27 Thread Karl Timmermann
Hi, I am working on a PHP/MySQL solution to have a webpage where users can rate cigars. I ran into a problem though. One variable that exists is the length of the cigar. In the cigar world, the lengths are usually written like 6 1/8" or 155 mm or 4 15/16" or 125 mm. I don't want to make the le

Re: [PHP] slow script

2004-03-27 Thread Galen
Gustavo, 1) Read the manual - though I can understand how you might have missed this: http://us2.php.net/manual/en/function.microtime.php Basically, there's a function based on microtime that does benchmarking. This is vital to timing your script. Use it extensively. If you're not sure where t

RE: [PHP] slow script

2004-03-27 Thread electroteque
> 200mhz with 64-80mb ram, and in these machines the system is very > slow. Sorry dude you just answered your question. Also aparantly ODBC is slow. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] slow script

2004-03-27 Thread Luis Gustavo Faccioni Barcellos
Hi all. I am developing a system using php 4.3.2 + apache 1.3.29. The db is a mssql msde (we’re going to mysql, but not yet due to some internal reasons). All things are running in a local, standalone station, because we had to use the app on line and off line states. The off-line one should h

[PHP] Convert string and char in unicode format

2004-03-27 Thread edwardspl
Dear All, How to control php / freetds to convert data ( query / insert ) to unicode format ? Thank for you rhelp ! Edward. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

php-general Digest 27 Mar 2004 17:38:21 -0000 Issue 2671

2004-03-27 Thread php-general-digest-help
php-general Digest 27 Mar 2004 17:38:21 - Issue 2671 Topics (messages 181605 through 181616): REsource Identifier( PHP_MYSQL) 181605 by: Gimic 181606 by: David Robley 181607 by: Burhan Khalid 181609 by: Gimic 181610 by: Burhan Khalid Re: simple, but m

Re: [PHP] Re: Can't to insert data ( via variable ) into MS-SQL

2004-03-27 Thread edwardspl
Rob Adams wrote: > <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > Rob Adams wrote: > > > > > <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > > > $str = " INSERT INTO staff (name,job,subject) > > > 1 2

Re: [PHP] Re: Local sysadmin DFW needed

2004-03-27 Thread Don Read
On 26-Mar-2004 Roger Spears wrote: >> > I'm going to guess DFW is just south of BFE > It just seems like it. ;-> -- Don Read [EMAIL PROTECTED] -- It's always darkest before the dawn. So if you are going to steal the neighbor's newspaper, that's the time

Re: [PHP] Re: Can't to insert data ( via variable ) into MS-SQL

2004-03-27 Thread Rob Adams
<[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Rob Adams wrote: > > > <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > > $str = " INSERT INTO staff (name,job,subject) > > 1 2 3 > > > VALUES('$name','$job

[PHP] 4.3.5 compiler error

2004-03-27 Thread Jan Urbansky
Hi... I'd always use following settings to compile every PHP on my machine (SuSE 8.1) without any problems: ./configure --prefix=/usr/share --datadir=/usr/share/php --bindir=/usr/bin - -libdir=/usr/share --includedir=/usr/include --with-_lib=lib --with-config-f ile-path=/etc --with-exec-dir=/usr/

Re: [PHP] multi-dim array from text file

2004-03-27 Thread Burhan Khalid
Larry Pisani wrote: Hi, I need to do some text file manipulation of a text file from an html interface. I have a file with multiple lines where each line has 2 fields each (a mac address and an associated vlan). Here's an example of rht text file: /tmp/TEST: a1b2.c3d4.e5cc V

[PHP] PHP5RC1 Windows problem

2004-03-27 Thread Aidan Lister
Hi, Trying to run PHP5RC1 on Apache1.3 I get the following error in my syslog: Faulting application Apache.exe, version 0.0.0.0, faulting module php5ts.dll, version 5.0.0.0, fault address 0x0003c773. ... and Apache terminates. Anyone have a solution? -- PHP General Mailing List (http://ww

Re: [PHP] Re: REsource Identifier( PHP_MYSQL)

2004-03-27 Thread Burhan Khalid
Gimic wrote: The entire script looks like this: } function GetVals() { $db = mysql_connect("localhost", "root"); mysql_select_db("books",$db); $result = mysql_query($sqlQry,$db); echo mysql_errno($db); echo mysql_error($db); echo $result; } ?> GetVals() has no ide what is $sqlQry because it is ou