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 i

Re: [PHP-DB] transactions and persitent connections

2002-09-01 Thread Paul DuBois
At 12:52 +0900 9/1/02, Jean-Christian Imbeault wrote: >Paul Dubois wrote: >> > > >>>I am worried that if I use persistent connections it might be >>>possible for more than one PHP script to be inside the same >>>transaction at the same time. >>

Re: [PHP-DB] transactions and persitent connections

2002-08-31 Thread Paul DuBois
At 17:46 +0900 8/31/02, Jean-Christian Imbeault wrote: >I'm a little confused/worried about database transactions, >persistent connections and PHP. > >I am worried that if I use persistent connections it might be >possible for more than one PHP script to be inside the same >transaction at the s

Re: [PHP-DB] Pulling the Enum Values from MySQL

2002-07-25 Thread Paul DuBois
At 14:40 -0700 7/25/02, Mark Middleton wrote: >Hi there, > >I've got a Form I'm building, and would like the drop down boxes to contain >the values for one of the fields of type "enum" (not from the actual records >in the DB, but the definition of the enum field in MySQL) > >For example: A field

Re: [PHP-DB] delete multiple records with one query

2002-07-01 Thread Paul DuBois
At 22:37 -0400 7/1/02, Matt Nigh wrote: >hi, i'm trying to delete multiple records at once from a mysql db and can't >seem to figure out how to do so. >here's the code i've been trying to troubleshoot with: > >$result_insert = mysql_query("delete from $mysql_table where id = '8' AND >where id = '1

Re: [PHP-DB] Excel to MySQL??

2002-06-29 Thread Paul DuBois
At 15:21 -0600 6/29/02, Chase wrote: >Does anyone know of a way that I can export an Excel spreadsheet to >a file that I can import to MySQL? I found a program that will do >this for Access, but I would rather leave Access out of this if >possible. Thanks!! > >Chase Does it have to be written

[PHP-DB] Re: XML

2002-06-27 Thread Paul DuBois
At 21:33 -0400 6/27/02, MikeParton wrote: >Would be interesting to hear from Peter on why he feels the urge to store >XML docs in MySQL (or, better said: I would be interested in hearing what >he is trying to accomplish and why he...or someone...feels XML stored in a >relational database is the w

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

Re: [PHP-DB] how expensive is mysql_connect in performance

2002-06-21 Thread Paul DuBois
At 22:39 -0400 6/21/02, Michael Zornek wrote: >I'm just getting into some stuff where I seem to be making a lot of >mysql_connect and mysql_close calls. I wonder, how taxing is this on the >server? Not very. MySQL's connection-establishment sequence is pretty efficient. mysql_pconnect() by cont

RE: [PHP-DB] Innodb and transactions.

2002-06-21 Thread Paul DuBois
At 8:55 -0400 6/21/02, Steve Bradwell wrote: >So should I be using Innodb tables or BDB tables? You have to be using *some* kind of transaction-safe tables (InnoDB and BDB qualify). If you use a table type like MyISAM, then all statements are committed as they execute, and use of a transaction h

Re: [PHP-DB] resource id#2 - ????

2002-06-12 Thread Paul DuBois
At 11:42 -0600 6/12/02, Jas wrote: >Not sure how to over come this, the result of a database query keeps giving >me this: >/* Get Ip address, where they came from, and stamp the time */ >if (getenv(HTTP_X_FORWARDED_FOR)){ > $ipaddy = getenv(HTTP_X_FORWARDED_FOR); >} else { > $ipaddy = get

Re: [PHP-DB] Anyone know why this won't return results?

2002-06-07 Thread Paul DuBois
At 17:45 -0400 6/7/02, Blaine Dinsmore wrote: > > >Results Test > > > > >$server = "mdotlims"; >$user = "httpuser"; >$pass = "pass"; > > > $db = @mysql_connect($server,$user,$pass); > if (!$db) { > echo( "Unable to connect to the " . > "d

Re: [PHP-DB] translating password($var) back to text

2002-05-03 Thread Paul DuBois
At 15:47 -0700 5/3/02, John Hughes wrote: >I am setting up a PHP-mySQL login script. One key feature I need is >the ability automatically to e-mail people their password when they >forget it. > >Obviously, I can store the password without using password() and >retrieve it at any time. Is it possib

Re: [PHP-DB] OS X Security Update Change to Mysql

2002-04-07 Thread Paul DuBois
At 18:09 -0600 4/7/02, Gale & Tammy Allen wrote: >Hello, > I'm pretty new to MYSQL, but wanted to share this info. With the >most recent OS X Security update, MYSQL 4.1.2 is installed. I had >installed the update MySQL 4.1.2 doesn't exist. I think you mean PHP 4.1.2. >prior to this security

Re: [PHP-DB] Maintain MySQL Transactions

2002-02-09 Thread Paul DuBois
At 2:00 +0800 2/10/02, Jason Wong wrote: >On Sunday 10 February 2002 00:21, Miles Thompson wrote: >> Unless there has been a very recent development, MySQL doesn't support >> transactions. Use PostgreSQL, DB, etc. > >The v4 series of MySQL does support transactions. MySQL has supported transact

Re: [PHP-DB] Round a float to the next highest value despite thevalue after the point

2002-02-08 Thread Paul DuBois
At 15:31 -0400 2/8/02, Renaldo De Silva wrote: >how can I round a float to the next highest value reguardless of the value >after the point, does anyone have any suggestion, any help would be >apreciated. Define "next highest value". -- PHP Database Mailing List (http://www.php.net/) To unsubsc

Re: [PHP-DB] Simple Display

2002-02-08 Thread Paul DuBois
At 7:46 +1300 2/9/02, Barry Rumsey wrote: >I am trying to do a simple fetch of the lastest add name. I have the >following code : >$query = "SELECT name FROM name ORDER BY name DESC LIMIT 1"; >$latename = mysql_query($query) or die("Select Failed!"); >$latename = mysql_fetch_array($latename); >ech

RE: [PHP-DB] addslashes()

2002-02-08 Thread Paul DuBois
ize it due to having not tried a sufficient range of values. If the one that works continues to work and the one that fails continues to fail, then clear they're not really *exactly* the same. > >-Original Message- >From: Paul DuBois [mailto:[EMAIL PROTECTED]] >Sen

RE: [PHP-DB] addslashes()

2002-02-08 Thread Paul DuBois
conversion. None of these are particularly attractive. It's an ugly problem; I suspect it has no pretty solution. >I don't need the problem re-explained to me 8) > >-Original Message- >From: Paul DuBois [mailto:[EMAIL PROTECTED]] >Sent: Friday, February 08, 2002 1

RE: [PHP-DB] addslashes()

2002-02-08 Thread Paul DuBois
At 10:06 -0600 2/8/02, Todd Williamsen wrote: >Paul, > >Sorry for the confusion... > >Ok.. > >I have an application where it organizes candidates for positions for >HR. There is a Notes field where they can update actions with the >potential candidate. Now this can be when this person has been >

RE: [PHP-DB] addslashes()

2002-02-08 Thread Paul DuBois
nting it? Storing it into the database? Storing it into the database so that you can print it as a Web page later? > >-Original Message- >From: Paul DuBois [mailto:[EMAIL PROTECTED]] >Sent: Friday, February 08, 2002 9:40 AM >To: Todd Williamsen; [EMAIL PROTECTED] >Subj

Re: [PHP-DB] addslashes()

2002-02-08 Thread Paul DuBois
oing in to db, stripslashes() coming out :) >> HTH Joe :) >> >> >> Todd Williamsen <[EMAIL PROTECTED]> wrote in message >> 002601c1b033$382a4700$f6b2d83f@goofy1">news:002601c1b033$382a4700$f6b2d83f@goofy1... >> > Paul, >> > >&g

Re: [PHP-DB] addslashes()

2002-02-07 Thread Paul DuBois
At 16:54 -0600 2/7/02, Todd Williamsen wrote: >Ok.. > >i tried it out... and it almost works like I want it... weird though > >1. when I put in this is BLUE > >it prints it in like a bright green. but if i use the RGB # then its fine. >weird > >2. if there is an apostrophe in the notes, then

Re: [PHP-DB] request and response objects?

2002-01-30 Thread Paul DuBois
At 12:30 -0600 1/30/02, Matthew Crouch wrote: >basically a yes or no question my brother wants me to ask: >Does PHP support these objects? If not, Can they be faked? What, like in Java servlets/JSP pages? -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTE

Re: [PHP-DB] UPDATE query to add to a field

2002-01-28 Thread Paul DuBois
At 9:06 -0800 1/28/02, Adv. Systems Design wrote: >hello all: > >I need to be able to update a field in MySQL, the catch is that I >have to add on to text that is already there and I have to be able >to do it within MySQL (phpMyAdmin). My first idea was to do: > >SET prod_desc = prod_desc + "mor

[PHP-DB] Re: [PHP] PHP and MYSQL Security`

2002-01-27 Thread Paul DuBois
At 16:59 -0800 1/27/02, Fred wrote: >If this file has a .php extension remote users will not have access to the >variables because the file is parsed by php and they never see the actual >file contents when requesting the document via the web. If you are >concerned with users on localhost having

Re: [PHP-DB] Sum Columns

2002-01-25 Thread Paul DuBois
At 23:19 -0600 1/25/02, [EMAIL PROTECTED] wrote: >Hello, > >I've been experimenting with adding decimal columns. From the mysql docs I >got this SELECT sum(value) FROM pets; > >So I did this $result = mysql_query("SELECT sum(value) FROM pets",$db); > $myrow = mysql_fetch_a

Re: [PHP-DB] distinct - how to do

2002-01-19 Thread Paul DuBois
At 2:28 +1300 1/20/02, Barry Rumsey wrote: >I have the following query: >$query = "SELECT * FROM xp_topics, xp_stories WHERE >xp_topics.topicid = xp_stories.topicid AND >xp_topics.artistname='Faith Hill' ORDER BY topictext DESC LIMIT >0,20"; >It returns the lot but a lot of doubles. > I want

Re: [PHP-DB] Checkboxes, PHP, and MySQL

2001-12-20 Thread Paul DuBois
On Thu, Dec 20, 2001 at 11:40:14AM -0500, SpyProductions Support Team wrote: > I've looked around in a few of the PHP lists for an answer to this, but > can't come up with one. On this question, you'd be better off just reading an HTML reference. It doesn't matter what the value of a checkbox is.

Re: [PHP-DB] Decrypting PASSWORD() from MySQL

2001-12-19 Thread Paul DuBois
On Wed, Dec 19, 2001 at 12:24:02PM -0700, Zach Curtis wrote: > I have a form for a user to request their forgotten username and password by > entering their email address. I then process this and use mail() to send > them their username and password. However, the password is stored in an > encrypt

Re: [PHP-DB] Re: Dynamically populating a dropdown box

2001-12-14 Thread Paul DuBois
At 10:46 -0800 12/14/01, Richard S. Crawford wrote: >At the risk of sounding like a browser-snob... > >The quotes probably don't matter in IE, but that's primarily IE >allows (and, in my opinion, encourages) bad coding practices. > >Your "echo" command really ought to look like this: > >echo "" .

Re: [PHP-DB] Replace like

2001-12-06 Thread Paul DuBois
On Fri, Dec 07, 2001 at 09:30:47AM +0550, [EMAIL PROTECTED] wrote: > Can anyone tell me how would i replace the following query with a "=" > > SELECT * from table_name WHERE name LIKE "%name%"; > > I want to have the same functionality like "LIKE" but having no LIKE word in > it. > Basically i w

Re: [PHP-DB] adding an auto-incrementing id field to an existingdatabase

2001-12-04 Thread Paul DuBois
At 7:08 PM -0800 12/3/01, chip wrote: >I have an existing database, created a while back, which I need to add a id >field to, there isn't one currently. Will simply adding a new auto-increment >field be okay? Will the existing rows receive id numbers and will they be >numbered properly? Or will it

Re: [PHP-DB] PHP & MySql

2001-11-23 Thread Paul DuBois
At 4:16 PM -0700 4/8/01, Jonathan Underfoot wrote: >I'm getting an Invalid Query error after inputting the following > > > > >$sql_query = "UPDATE commentary SET com_num=$com_num, com_by=$com_by, >com_band=$com_band, com_title=$com_title, com_release=$com_release, >com_rating=$com_rating, com_body

Re: [PHP-DB] Re: PostgreSQL versus MySQL

2001-11-23 Thread Paul DuBois
Has this thread got anything at all to do with PHP? -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

Re: [PHP-DB] Result is not empty

2001-11-22 Thread Paul DuBois
>Take out the while statement-- >i.e. simply use: > >$row = mysql_fetch_array($result); > >the way you have things constructed now, the while statement >evaluates true on the first iteration and $row equals the result row >from the query. Because the while returned true, it is evaluated a >seco

Re: [PHP-DB] Combination of SQL statements invalid in MySQL?

2001-11-22 Thread Paul DuBois
At 4:08 PM +0100 11/22/01, Andy wrote: >Hi there, > >I am trying to do a combination of SQL statements like described in a SQL >bÛok. Is it possible, that mysql does not allow this syntax? According to the MySQL Reference Manual, subselects are not supported. > >Thanx Andy > >Error: > >Occured d

Re: [PHP-DB] Not a valid MySQL result resource

2001-11-08 Thread Paul DuBois
At 2:04 AM +0100 11/9/01, MPropre wrote: >//.../... first part of the code is to connect to the right DB on a MySQL >server. It works fine > > >//This code to show the query. It runs well under MySQL and gives 1 result : > $query="SELECT Login, Password FROM `user` WHERE user.login=''$login'' and

Re: [PHP-DB] Session Broken

2001-11-08 Thread Paul DuBois
At 9:25 AM + 11/8/01, Russ Michell wrote: >1: Rid any whitespace between '2: You need to populate the variable you wish to use as a session >variable before registering it Is 2 actually true? The sessions chapter in the PHP manual doesn't seem to specify any order for using and registering,

[PHP-DB] Re: AW: JOBS in mysql

2001-11-07 Thread Paul DuBois
At 5:31 PM -0600 11/7/01, Paul DuBois wrote: >At 12:23 AM +0100 11/8/01, Christian Sage wrote: >>Your best bet is probably to hunt around for a freeware utility. There's >>bound to be something somewhere on the net. > >For Windows, a free version of cron is

[PHP-DB] Re: AW: JOBS in mysql

2001-11-07 Thread Paul DuBois
At 12:23 AM +0100 11/8/01, Christian Sage wrote: >Hi, > >> Harpreet wrote: >> >> > I have run JOBs in sql server and was wondering if we have ne thign >similar >> > in mysql or use PHP to write a script that would automatically run >every 10 >> > minutes. >> >> Unix has cron: 'man crontab' >>

Re: [PHP-DB] MySQL alphabetical listing

2001-09-18 Thread Paul DuBois
le (so that you can, for example, avoid generating a page for 'X' if no names begin with that letter), do this: SELECT DISTINCT LEFT(last_name,1) AS letter FROM tbl_name ORDER BY letter -- Paul DuBois, [EMAIL PROTECTED] -- PHP Database Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP-DB] auto fill field with value from another

2001-08-07 Thread Paul DuBois
t;field? No. The MySQL manual says default values must be constants: http://www.mysql.com/doc/C/R/CREATE_TABLE.html > >thanks, > >bill hollett -- Paul DuBois, [EMAIL PROTECTED] -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For addit

Re: [PHP-DB] mysql_fetch_array missing first record

2001-08-07 Thread Paul DuBois
very first record in the table. The first record in the table, or the first record in the result set? >Why is this and how can I get round it? Hard to say without seeing the surrounding context. > >Thanks. > >Jamie Saunders -- Paul DuBois, [EMAIL PROTECTED] -- PHP Database Mail

Re: [PHP-DB] Grouping functions inside WHERE clause - may or not

2001-08-04 Thread Paul DuBois
t;-- > >Ventsyslav Vassilev >Comel Soft Multimedia >Sofia, Bulgaria >ICQ UIN: 11199819 >e-mail: [EMAIL PROTECTED] -- Paul DuBois, [EMAIL PROTECTED] -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] F

Re: [PHP-DB] UPDATE Not Updating

2001-08-01 Thread Paul DuBois
hone\", >HomePhone = \"$HomePhone\", >Mobile = \"$Mobile\", >EmailName = \"$EmailName\", >Birthday = \"$Birthday\" >WHERE ContactID = \"$ContactID\" >"; > > >$result = @mysql_query($update_contact_sql, $connection) o

RE: [PHP-DB] WHERE field = str

2001-07-25 Thread Paul DuBois
a way to do this? >| >| WHERE fieldname LIKE "%$string%" >| >| Chris >| > >[EMAIL PROTECTED] > >SeaPortNetHosting: Reliable Web Hosting >Plans from $17.95 www.yourname.com >http://www.SeaPortNet.com/ >1(209)551-7028 -- Paul DuBois, [EMAIL PROTECTED] -- PHP Database M

[PHP-DB] mysql_[p]connect() and mysql_error()/mysql_errno()

2001-07-23 Thread Paul DuBois
/mysql_errno() after a failed connection is with *no* argument, because when a failure occurs $conn_id won't have any reasonable value and shouldn't be passed to those functions. -- Paul DuBois, [EMAIL PROTECTED] -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-

[PHP-DB] PEAR DB, prepare(), and placeholders

2001-06-30 Thread Paul DuBois
PEAR DB, I tried both null and an unset variable, with the result that an empty string was placed into the query string in both cases. -- Paul DuBois, [EMAIL PROTECTED] -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

Re: [PHP-DB] MySQL connection: Change on syntaxis?

2001-06-29 Thread Paul DuBois
quot; > > Russ Michell > Anglia Polytechnic University Webteam > > e: [EMAIL PROTECTED] > w: www.apu.ac.uk/webteam > t: +44 (0)1223 363271 x 2331 > > www.theruss.com > >#---# > > >-- >

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

2001-06-29 Thread Paul DuBois
, because you don't use negative numbers in the column. Something like this: ALTER TABLE tbl_name MODIFY col_name INT UNSIGNED NOT NULL > >Thanks, > >B R I A N G R A Y L E S S > Web Administrator > Premier Resorts > www.premier-resorts.com > >P: 435-655-4

Re: [PHP-DB] Is MySQL in 4.0.6?

2001-06-26 Thread Paul DuBois
you can connect to. > >-Adam Lundrigan > CEO, VPU > http://www.vpu-virtual.com/ > > ICQ # 73617446 > [EMAIL PROTECTED] > > -- Paul DuBois, [EMAIL PROTECTED] -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Re: [PHP-DB] Apache+PHP+MySQL installation at once - HOW?

2001-05-04 Thread Paul DuBois
hree at once. >Don't you now where I can find it? >Thanks >Vojtech http://www.nusphere.com/ > > > >-- >PHP Database Mailing List (http://www.php.net/) >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] >To contact the

Re: [PHP-DB] hide passing value

2001-04-18 Thread Paul DuBois
On Wed, Apr 18, 2001 at 06:55:57PM +0100, Russ Michell wrote: > Do you mean like: > > > The script this value gets passed to will now have available the > varible: pswd with a value of the password field.. As will any user who knows about their browser's View Source command. :-) > > ??? >

Re: [PHP-DB] Returning a formated dat

2001-02-02 Thread Paul DuBois
ot;/", RIGHT(d,4)) FROM t; > >-- Ben Cairns - Head Of Technical Operations >intasept.COM >Tel: 01332 365333 >Fax: 01332 346010 >E-Mail: [EMAIL PROTECTED] >Web: http://www.intasept.com > >"MAKING sense of >the INFORMATION >TECHNOLO

Re: [PHP-DB] ENUM type

2001-01-15 Thread Paul DuBois
n values, then use them to construct a set of radio buttons or a popup menu in a web form. That way your form always presents exactly the legal options for the column. You can also use the column definition when validating submitted forms to make sure the value submitted is legal. -- Paul DuBois,

[PHP-DB] Re: [PHP] Re: [PHP-DB] Easy MySQL question

2001-01-12 Thread Paul DuBois
(open db connection) >> > >> > $query = "SELECT count(*) FROM Movie"; >> > $result = mysql_query($sql, $dbLink); >> > $myrow = mysql_result($result); >> > echo $myrow; >> > >> > > $myrow = mysql_result($result,0,"count(*)"); -- Paul DuBois, [EMAIL PROTECTED] -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]