Re: [PHP-DB] Primary Key Value

2001-02-27 Thread Richard S. Crawford
Perfect! Thanks. At 01:05 PM 2/28/01 +0800, Beau Lebens wrote: >mysql_insert_id() >i *think* also >pg_lastiod() >or something similar... > >At 08:57 PM 2/27/01 -0800, Richard S. Crawford wrote: >>Suppose I put data into a table using an Insert query, and that the table >>generates a primary key

Re: [PHP-DB] Primary Key Value

2001-02-27 Thread Beau Lebens
mysql_insert_id() i *think* also pg_lastiod() or something similar... At 08:57 PM 2/27/01 -0800, Richard S. Crawford wrote: >Suppose I put data into a table using an Insert query, and that the table >generates a primary key for the data. Is there a way to get at that >primary key without runni

[PHP-DB] Primary Key Value

2001-02-27 Thread Richard S. Crawford
Suppose I put data into a table using an Insert query, and that the table generates a primary key for the data. Is there a way to get at that primary key without running a separate select query against the table? -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMA

Re: [PHP-DB] Can't connect to local MySQL server error

2001-02-27 Thread Joe Brown
Heh, hate this gotcha... The file permissions are good... ok, now check each directory up to mysql.loc /var /var/lib /var/lib/mysql Does the world have read and execute perms on all of the above (hehe made a funny)? Without read and execute perms on the parent directories, the world cannot see t

Re: [PHP-DB] MySQL join problem

2001-02-27 Thread Joe Brown
I doubt that a few thousand records would be more than mysql is capable of handeling. However my ignorance of Mysql is abundant. Does it use the /tmp directory and is your /tmp or root partition small? (guessing linux here). Does mysql use the /tmp directory for temporary tables? (Answer in Read

Re: [PHP-DB] Search engines & database driven sites

2001-02-27 Thread CC Zona
(re-ordered to bottom-posting, for clarity) In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] ("Scott Bernard") wrote: > I recently converted my sites from hardwired HTML to a PHP/MySQL > combination - with dynamic 'newsy' info held in a database, tailored for > each visitor. Unfortunately the

Re: [PHP-DB] Sorting alphabetically and Tv guide

2001-02-27 Thread Fernando Gabriel Ranea
Hi! You can order everything but you must be carefull in the database design. Select "program" from "table" order by "time" Where "time" is a DATE value in your database. In mysql you have a variety the formats. For example, DATETIME: -MM-DD hh:mm:ss Maybe you need use a good book related

RE: [PHP-DB] Search engines & database driven sites

2001-02-27 Thread Scott Bernard
What you can do is create an html page blank, with meta-tags for the search engines, but including the meta: at the first line. This is going to redirect to the indicated php page. I think its a solution, for the search enginges as for the users, because the will not see anything. Regards. id

[PHP-DB] MySQL join problem

2001-02-27 Thread Elliott Lee
Hi all, This may not necessarily be a PHP problem, but I was initially trying to do this in PHP. I was trying to do a join of two tables and I get a response from MySQL saying that some SQL temp file was out of space. One of my tables has a few thousand items in it and my other table that I'm j

[PHP-DB] Sorting alphabetically and Tv guide

2001-02-27 Thread Matthew Cothier
Thanks! The other thing that I have been asked to design is an online tv guide for a list of shows. Basically I want to be able to display a list of programmes on the front page for the current date in time order. Can this be done in the same way as alphabetical ordering? I will also have a s

Re: [PHP-DB] Sorting alphabetically

2001-02-27 Thread Fernando Gabriel Ranea
Hi! I guess that you want the following: Select "name" " from "Table" order by "name" For the search box, you need build a form, send the search value to the script (a PHP script for this list :-o) and the script must query in your database. The script depends on the complexity in the search an

[PHP-DB] Sorting alphabetically

2001-02-27 Thread Matthew Cothier
Thanks everyone for helping me with the resolution problems, its sorted now! Q. How do I sort a list of names onto a page into a table in alphabetical order? I am doing a link database and require that I have a list of catagorie names in alphabetical order with the links listed alphabetically

RE: [PHP-DB] Linux+PHP+Infomix....

2001-02-27 Thread Javier Morquecho Morquecho
Somebody has installed the informix support to php with the apxs (APache eXtenSion tool)?? -Mensaje original- De: Mark Farver [mailto:[EMAIL PROTECTED]] Enviado el: Viernes 9 de Febrero de 2001 11:53 AM Para: Javier Morquecho Morquecho CC: 'php-db list' Asunto: RE: [PHP-DB] Linu

[PHP-DB] Anyone tried a MySQL load data infile statement?

2001-02-27 Thread Miles Thompson
In the Python language, witht he appropriate module, one can construct a string like: "load data infile 'pwlist.txt' replace into table subscriber fields terminated by '\t' optionally enclosed by '"' lines terminated by '\r\n' ", pass it to the cursor.execute() function and it completes. I've

Re: [PHP-DB] Search engines & database driven sites

2001-02-27 Thread Karsten Dambekalns
On Tue, Feb 27, 2001 at 09:03:58PM +0100, Roel Mulder wrote: > Build the link above like this: http://www.site.com/dir/25.html this > document doesn't exist. > In that directory you refer the 404's to article.php where you call > getenv("REQUEST_URI") and look, it says 25.html which you can t

RE: [PHP-DB] Resolution detect and redirect

2001-02-27 Thread Thor M. Steindorsson
> -Original Message- > From: Darryl Friesen [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, February 27, 2001 12:57 PM > To: db > Subject: Re: [PHP-DB] Resolution detect and redirect > > > >>>Why not just create a table that will resize to any resolution? > >> > >> Because I am using differen

RE: [PHP-DB] Resolution detect and redirect

2001-02-27 Thread Ben - FCP
Would be a feat indeed if you could get PHP to do this! It does need Javascript to do (although having returned the result, you could then carry this forward by setting a variable server side (in php!) that identified the user and continued to display appropriate page versions). If you were feeli

Re: [PHP-DB] Resolution detect and redirect

2001-02-27 Thread Darryl Friesen
>>>Why not just create a table that will resize to any resolution? >> >> Because I am using different sized images for the different resolutions as >> well as other page thingys. >> >> And I need the script for other things too. >> >> So can anyone help? Is there anyway to convince you this i

Re: [PHP-DB] md5

2001-02-27 Thread bryan
Yeah, i am aware of the 32 byte character string. As a matter of fact, I md5 the password on initial sign-up. Then just compare it to the regular password. As for this case, I am trying to update the password that is already md5 'd in the database. The problem is, I am creating a random string

Re: [PHP-DB] Resolution detect and redirect

2001-02-27 Thread Joe Brown
This feat will require a java script (not appropriate for php/db). I saw something on a javascript site, perhaps www.webreference.com gl ""Matthew Cothier"" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > >Why not just create a table that will resize to any r

Re: [PHP-DB] md5

2001-02-27 Thread Joe Brown
You are aware that md5() generates a 32 byte character string? Working on the 10 digit password request, have you alotted enough space in your database columns to cater to a 32 byte string (64 for multibyte)? BTW: md5 has eaten everything I've thrown at it ;-) ""bryan"" <[EMAIL PROTECTED]> wrot

Re: [PHP-DB] Search engines & database driven sites

2001-02-27 Thread Roel Mulder
Hello Grant, Well the thing with search engines is as AltaVista puts it very nicely: Dynamic pages also block Web crawlers. 8>< 8>< 8>< Typically such pages have a question mark (?) in the URL. When a search engine crawler arrives at such a page, it captures the content but hal

[PHP-DB] md5

2001-02-27 Thread bryan
I need some advice on this I am creating a random password through a function. This creates a random password and updates it in the database. The sql query works if I make it : $sql = "UPDATE members SET password='$password', verify='$verify' WHERE username='$username' "; but if I make the

RE: [PHP-DB] Resolution detect and redirect

2001-02-27 Thread Matthew Cothier
>Why not just create a table that will resize to any resolution? Because I am using different sized images for the different resolutions as well as other page thingys. And I need the script for other things too. So can anyone help? __

Re: [PHP-DB] array awry

2001-02-27 Thread Darryl Friesen
> Perhaps I've misunderstood. > > I thought this IS a PHP list (see Rolf Hopkins below). It's a PHP/Database list, not just PHP. POsts should have something to do with BOTH. > Secondly, this list is not only for MySQL questions and issues (see Cal > Evans below). It is for all database questio

RE: [PHP-DB] array awry

2001-02-27 Thread Rick Emery
All, Perhaps I've misunderstood. I thought this IS a PHP list (see Rolf Hopkins below). Secondly, this list is not only for MySQL questions and issues (see Cal Evans below). It is for all database questions, as we've seen from uestins concerning other databases. Am I incorrect? Richard L. Em

[PHP-DB] unixODBC and Sybase ASE 11.9.2 on a linux box

2001-02-27 Thread Stefan Siefert
Hi, we are trying the above combination, but we do not find any hints how (which?) we configure an ODBC - Driver for Sybase in an odbc.ini file... if anyone has experience with this combination we would be very glad if you could post a small overview or a source, where we can find informations ab

RE: [PHP-DB] Resolution detect and redirect

2001-02-27 Thread Allsebrook_Richard/askr
BDY.RTF -- 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]

[PHP-DB] Resolution detect and redirect

2001-02-27 Thread Matthew Cothier
I am lookign for a piece of code that will detect the resolution of the user and return a page dependant on that i.e - The table will be adjusted to suit that. Is there a script where I can detect what the resolution is, and also redirect to a page depending on what resolution they are using?

Re: [PHP-DB] The dreaded 12154!!

2001-02-27 Thread Mark Farver
I'm assuming you're under Unix. Make sure you can use sqlplus as the webserver user (nobody under most Linuxes). I had to add the Oracle_home env variable to the system .profile script. Also try setting Oracle_home inside the httpd.conf script (SetEnv?) For windows users having the ORA-12154

RE: [PHP-DB] Can't connect to local MySQL server error

2001-02-27 Thread Rick Emery
MySQL is running; I can execute MySQL as ROOT. The /var/lib/mysql/mysql.sock file exists with read/write/execute permissions to user/group/world. Any other ideas are appreciated. Thanks rick Richard L. Emery IT Sr. Project Manager "There is no 'trying'... There is only 'Do' or 'Not Do' " -

Re: [PHP-DB] Fatal error: Call to undefined function: () in add2.php on line 11

2001-02-27 Thread Robert
I had a similar problem ( on 2000 ) until created a usr directory at the root ( C: )and put the mibs directory in it from the php directory - Original Message - From: "Joe Brown" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, February 27, 2001 12:19 AM Subject: Re: [PHP-DB] Fa

RE: [PHP-DB] Search engines & database driven sites

2001-02-27 Thread Leon Letto
Here is an article by Tim Perdue. Every time I lookup php stuff in google, phpbuilder shows up so he must be doing something right. http://www.phpbuilder.com/columns/tim2526.php3 Leon -Original Message- From: Grant Ballard-Tremeer [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 2

RE: [PHP-DB] array awry

2001-02-27 Thread Cal Evans
Hi Keith, 1: Don't cross-post. It's rude. Especially since this has nothing to do with MySQL. 2: You are not building a multi-dimensional array. The code below won't even build a single dimensional array because you didn't put your keys in quotes so it's probably blowing chunks. At the very leas

[PHP-DB] Search engines & database driven sites

2001-02-27 Thread Grant Ballard-Tremeer
Greetings I'm not sure my question fits into the remit of this list - so apologies in advance if it's off track... Please point me in a more suitable direction is necessary! I recently converted my sites from hardwired HTML to a PHP/MySQL combination - with dynamic 'newsy' info held in a databas

Re: [PHP-DB] array awry

2001-02-27 Thread CC Zona
In article <061201c0a063$08eab5a0$[EMAIL PROTECTED]>, [EMAIL PROTECTED] ("Keith Spiller") wrote: > 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 = my