[PHP-DB] Converting from FoxPro to MySQL

2002-04-03 Thread ST Ooi
How can I convert from FoxPro to MySQL, any tools to help ? Thanks -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DB] Re: Inserting into Access

2002-04-03 Thread George Pitcher
the user and date fields > > George Pitcher wrote: > > > > Hi all, > > > > I'm having a problem inserting some php stuff into an Access table. > > > > This is what is being sent to Access: > > > > INSERT INTO ActivityLog (U

Re: [PHP-DB] Submitting Dynamic Form

2002-04-03 Thread Chris MacKenzie
Ah, I just knew there must be an easy way of doing it. Thanks Rick ! Is there a good reference on stuff like this with some examples ? Am I pushing the friendship ? :-) Rick Emery wrote: > > $HTTP_POST_VARS or $_POST is an associative array that holds the keys and > values for all inputs/select

Re: [PHP-DB] Inserting into Access

2002-04-03 Thread George Pitcher
rning. > (Something other than chickadees, blue jays, crows and starlings.) And the > coltsfoot bloomed on the edge of the ditch last Fri. /mt > > At 04:23 PM 4/3/2002 +0100, George Pitcher wrote: > >Hi all, > > > >I'm having a problem inserting some php stuff into

Re: [PHP-DB] grouping by category

2002-04-03 Thread olinux
Here's a start - take a look at the results in phpmyadmin to get an idea of how to loop the result SELECT url, author, name, category FROM hwureviews GROUP BY category olinux --- Alex Behrens <[EMAIL PROTECTED]> wrote: > Hey Guys, > > I'm trying to get my script to group all my reviews > by ca

[PHP-DB] Re: Date Question

2002-04-03 Thread Steve
One way you can do that is create a local variable and have that variable referenced in your form in either a hidden field or a text field. EXAMPLE $date = date("l F d, Y") (outputted that would be say Thursday April 4, 2002) then your field would look something like this depending how you wri

[PHP-DB] Re: Inserting into Access

2002-04-03 Thread Steve
, Time, CourseRef) > VALUES > (6, '15381', 20020403, '146.176.13.99', '15:08', 'Counselling') > > The error is: > > SQL error: [Microsoft][ODBC Microsoft Access Driver] Syntax error in INSERT > INTO statement., SQL state 37000 >

[PHP-DB] grouping by category

2002-04-03 Thread Alex Behrens
Hey Guys, I'm trying to get my script to group all my reviews by category now but now it just displays them all in a row a bunch of times and doesn't group them how I want it to group them. I want it too look like this: Processor Reviews - Review - Review Motherboard Reviews - Review -Review H

Re: [PHP-DB] Date Question

2002-04-03 Thread root
It would seem that on the page that you post your form to, you'll need to have a $date = date( "m.d.Y" ); to generate the actual date value.. That is if I understand correctly the date() function and the question. Later, Bob Weaver - Original Message - From: "Jennifer Downey" <[EMAIL PR

RE: [PHP-DB] Date Question

2002-04-03 Thread Beau Lebens
Jennifer, assuming you are using MySQL, then I would imagine the field which is updating itself automatically is actually a TIMESTAMP type, rather than plain DATE (or perhaps DATESTAMP?) The *STAMP ones will update themselves I am pretty sure - but you might want to check this. HTH Beau // ---

[PHP-DB] Date Question

2002-04-03 Thread Jennifer Downey
Hi all, If I have a feild called 'date' and the type is date when a form is submitted isn't it suppose to automatically enter the date or do I need to somehow enter it through the form? The reason I ask is that I have another form with a date type and no reference to it in the form and it is al

[PHP-DB] multiple oracle instances on one server

2002-04-03 Thread Florian Clever
Hello, I have two Oracle instances running on a Mandrake 8.1 box. SIDs are PM and QA. All the Oracle environment variables are set on Apache startup. And $ORACLE_SID=pm is set to. So connecting via ocilogon($user, $pass, '') to the db with SID=pm without specifying a service it works. As soon a

[PHP-DB] Re: help sorting by a column name

2002-04-03 Thread Alex Behrens
Rick, thanks a ton. Do you think you could help me construct to two selects? I am very new at this and don't know what I'm doing quite yet. Thanks! -Alex "Big Al" Behrens E-mail: [EMAIL PROTECTED] Urgent E-mail: [EMAIL PROTECTED] (Please be brief!) P

[PHP-DB] RE: help sorting by a column name

2002-04-03 Thread Rick Emery
First, please respond on list. Second, I know what max does. However, you'll be disappointed in its use here. This while() will execute ONLY ONCE so a while() construct is of no use here. The syntax I sent you is correct. It will select all categories and IDs by category, then ID in a descend

RE: [PHP-DB] sorting by colum name with nested loops

2002-04-03 Thread Rick Emery
you just cross-posted this to the mysql mailing list. is this a mysql issue or PHP issue? -Original Message- From: Alex Behrens [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 03, 2002 4:33 PM To: [EMAIL PROTECTED] Subject: [PHP-DB] sorting by colum name with nested loops Hey Guys,

[PHP-DB] sorting by colum name with nested loops

2002-04-03 Thread Alex Behrens
Hey Guys, I need to reorganize the list of reviews on my site so they are displayed by category. However, I want it to display all the reviews from all categories at once. How do I do this? Here is my syntax now for display all reviews at once, but not sorted by category: Hardware Reviews - %s A

Re: [PHP-DB] Re: What would be a propper way to back up a huge db while server is up

2002-04-03 Thread Mark Lee
or: mysqlhotcopy database /path/to/some/dir info here: http://www.mysql.com/doc/B/a/Backup.html mark Jason Wong wrote: > On Thursday 04 April 2002 01:29, andy wrote: > > oh ... on MySQL > > mysqldump --opt dbname > /some/where/backup.sql > > -- > Jason Wong -> Gremlins Associates -> www.grem

Re: [PHP-DB] Re: What would be a propper way to back up a huge db while server is up

2002-04-03 Thread Jason Wong
On Thursday 04 April 2002 01:29, andy wrote: > oh ... on MySQL mysqldump --opt dbname > /some/where/backup.sql -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk /* He who is in love with himself has at least this advantage -- he won't encounter many rivals. -- Geor

[PHP-DB] Re: What would be a propper way to back up a huge db while server is up

2002-04-03 Thread andy
oh ... on MySQL "Andy" <[EMAIL PROTECTED]> schrieb im Newsbeitrag [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi there, > > how would a backup procedure look like on a mysql server with root access to > make a backup while the db is up and running. As fast as possible The db is > more than 1

[PHP-DB] What would be a propper way to back up a huge db while server is up

2002-04-03 Thread andy
Hi there, how would a backup procedure look like on a mysql server with root access to make a backup while the db is up and running. As fast as possible The db is more than 100 MB. Would this be: - lock all tables writing (how would I do this on the whole db containing lots of tables?) - flusch

RE: [PHP-DB] Re: autoincrement

2002-04-03 Thread Jonathan Hilgeman
To add to that, yes, the column must be numeric and it must also be your PRIMARY KEY column to be able to have the autoincrement attribute, not just a regular index. - J -Original Message- From: Glenn Holden [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 02, 2002 6:12 PM To: [EMAIL PROT

Re: [PHP-DB] Inserting into Access

2002-04-03 Thread Miles Thompson
serting some php stuff into an Access table. > > This is what is being sent to Access: > > INSERT INTO ActivityLog (User, Docid, Date, ClientIP, Time, CourseRef) > VALUES > (6, '15381', 20020403, '146.176.13.99', '15:08', 'Counselling&#x

[PHP-DB] Inserting into Access

2002-04-03 Thread George Pitcher
Hi all, I'm having a problem inserting some php stuff into an Access table. This is what is being sent to Access: INSERT INTO ActivityLog (User, Docid, Date, ClientIP, Time, CourseRef) VALUES (6, '15381', 20020403, '146.176.13.99', '15:08', 'C

RE: [PHP-DB] Submitting Dynamic Form

2002-04-03 Thread Rick Emery
$HTTP_POST_VARS or $_POST is an associative array that holds the keys and values for all inputs/selects in form from the submitted page. Use array_keys() to determine the names of all your list boxes to examine each key and its value. Or you can use the list($key,$val) = each($HTTP_POST_VARS) c

Re: [PHP-DB] Submitting Dynamic Form

2002-04-03 Thread Chris MacKenzie
Hi Rick, Here's a code snippet (less error checking). Basically there could be as many as twnety questions listed with their associated listboxes of possible answers. Also be aware that ms-sql identity type is similar to mysqls autoincrement type except that once a record is deleted, that identit

[PHP-DB] Sybase: Unable to allocate connection record

2002-04-03 Thread JParrot
On RH 7.2, Apache 1.3.22, PHP 4.1 and ASE 11.9.2 I get : "Warning: Sybase: Unable to allocate connection record" Env $SYBASE is set ok as it is seen by PHP. After restarting apache (compiled with php and php is with-sybase-ct) it works well for about 3 hours than I start receiving this annoying m

[PHP-DB] Re: Problem with the beginning variable

2002-04-03 Thread Hugh Bothwell
"Ron Allen" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I have a problem with the inital load of my page > > When it loads it says that the variable is not defined. When I click on > search after that it works fine. > > How do I get PHP to recognize a varia

RE: [PHP-DB] Submitting Dynamic Form

2002-04-03 Thread Rick Emery
what happened when you extracted the form field names from the DB? -Original Message- From: Chris MacKenzie [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 03, 2002 3:13 AM To: [EMAIL PROTECTED] Subject: [PHP-DB] Submitting Dynamic Form Hi All, I'm pretty new to the whole php thing a

Re: [PHP-DB] to ora_bind or not to ora_bind

2002-04-03 Thread Rouvas Stathis
The net result is almost the same with the exception that by using ora_bind you don't have to worry about 'SQL Injection' techniques that could compromise your site. If you construct the DML statement in one big string, double check that you have escaped or otherwise nullified 'undesireable' chara

RE: [PHP-DB] Problem with the beginning variable

2002-04-03 Thread Rick Emery
show your code -Original Message- From: Ron Allen [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 03, 2002 5:43 AM To: [EMAIL PROTECTED] Subject: [PHP-DB] Problem with the beginning variable I have a problem with the inital load of my page When it loads it says that the variable is n

[PHP-DB] Re: odbc vs mysql

2002-04-03 Thread John Lim
Try odbc connection pooling. That should help. "Maris Kalnins" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > When connecting to database (Sybase) through ODBC it takes some time to > establish odbc connection with: > > $cx=odbc_pconnect($G_dbname, $G_dblogin,

[PHP-DB] Re: to ora_bind or not to ora_bind

2002-04-03 Thread John Lim
Don't forget to quote the strings and run addslashes. "Christian Schneider" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi, > > sorry to post just after subscribing but I didn't find anything in the faqs. > > I have to port an Oracle-based system to MySQL a

[PHP-DB] to ora_bind or not to ora_bind

2002-04-03 Thread Christian Schneider
Hi, sorry to post just after subscribing but I didn't find anything in the faqs. I have to port an Oracle-based system to MySQL and am now investigating how to get rid of the Oracle specialities. I neither wrote the system nor do I fully understand how it's working yet, so I might miss somethi

[PHP-DB] Problem with the beginning variable

2002-04-03 Thread Ron Allen
I have a problem with the inital load of my page When it loads it says that the variable is not defined. When I click on search after that it works fine. How do I get PHP to recognize a variable as a certain value without making it a static value? -- PHP Database Mailing List (http://www.php

[PHP-DB] Submitting Dynamic Form

2002-04-03 Thread Chris MacKenzie
Hi All, I'm pretty new to the whole php thing and I'm currently making an multiple choice exam type of thing with php/mssql. The two tables concerned are called tbl_exam_questions and tbl_exam_questions which are defined like so. [tbl_exam_questions] ( [question_id] [int] IDENTITY (1,