Re: [PHP-DB] Help in learning PHP and MySQL

2004-12-30 Thread Janet Valade
Novice Learner wrote: I apologize if this is a very basic question. I just started learing PHP and MySQL, I am reading "PHP and MySQL" by Larry Ullman, I also have access to PHP 5 by Julie Meloni. I reached Chapter 6 of Ullman's book and got stuck. I have the following code: //to MYSQL and s

[PHP-DB] Help in learning PHP and MySQL

2004-12-30 Thread Novice Learner
I apologize if this is a very basic question. I just started learing PHP and MySQL, I am reading "PHP and MySQL" by Larry Ullman, I also have access to PHP 5 by Julie Meloni. I reached Chapter 6 of Ullman's book and got stuck. I have the following code: I have a normal MySQL user as "mas

RE: [PHP-DB] get primary key

2004-12-30 Thread Bastien Koert
http://ca.php.net/manual/en/function.mysql-field-flags.php is the php/mysql functions that should meet your needs bastien From: "Perry, Matthew (Fire Marshal's Office)" <[EMAIL PROTECTED]> To: [email protected] Subject: [PHP-DB] get primary key Date: Thu, 30 Dec 2004 16:20:41 -0600 This one sh

Re: [PHP-DB] Problem with permissions Win32 dba_open

2004-12-30 Thread Ian
Unchecking the read only box made no difference. A zero byte test database file is created and dba_open() results in 'Permission denied'. However, if the file is given a relative path (eg ../test.db), instead of an absolute address (eg C:/Apache/htdocs/test.db), the Permission denied warning

[PHP-DB] get primary key

2004-12-30 Thread Perry, Matthew (Fire Marshal's Office)
This one should be easy for most of you. What is the SQL query to select the column name for the primary key of a table? -Matthew

FW: [PHP-DB] why is it so?

2004-12-30 Thread Darryl
Make sure that you are sending the session_start() function before you send anything else to the web browser, it must be the first thing done as with setting cookies -Original Message- From: Nayyar Ahmed [mailto:[EMAIL PROTECTED] Sent: Thursday, December 30, 2004 5:56 PM To: php-db@lists.

Re: [PHP-DB] why is it so?

2004-12-30 Thread John Holmes
Nayyar Ahmed wrote: I am unable to understand when I execute etc.php, it give me the error "Warning: session_start(): Cannot send session cache limiter - headers already sent ." You need to have session_start() before _any_ output to the browser (such as HTML, spaces, newlines, etc). Sessions

Re: [PHP-DB] why is it so?

2004-12-30 Thread Nayyar Ahmed
On Thu, 30 Dec 2004 11:15:09 -0500, R. Van Tassel <[EMAIL PROTECTED]> wrote: > session_start() needs to be the first piece of code at the top of the page, > you must have something else before it. Hello, thanks it start working :) > > session_start() > // all php code follows > ?

RE: [PHP-DB] why is it so?

2004-12-30 Thread Bastien Koert
in this page somwhere, or perhaps in an include, there is a blank space or some html echoed out to the page bastien From: Nayyar Ahmed <[EMAIL PROTECTED]> Reply-To: Nayyar Ahmed <[EMAIL PROTECTED]> To: [email protected] Subject: [PHP-DB] why is it so? Date: Thu, 30 Dec 2004 20:56:21 +0500 Hell

RE: [PHP-DB] why is it so?

2004-12-30 Thread R. Van Tassel
session_start() needs to be the first piece of code at the top of the page, you must have something else before it. -Original Message- From: Nayyar Ahmed [mailto:[EMAIL PROTECTED] Sent: Thursday, December 30, 2004 10:56 AM To: [email protected] Subject: [PHP-DB] why is it so? Hel

[PHP-DB] why is it so?

2004-12-30 Thread Nayyar Ahmed
Hello All, I am unable to understand when I execute etc.php, it give me the error "Warning: session_start(): Cannot send session cache limiter - headers already sent ." can you solve this leral ? TIA -- Nayyar Ahmad Lecturer Faculty Of Computer Science, Institute Of Management Sciences, H

Re: [PHP-DB] Problem with permissions Win32 dba_open

2004-12-30 Thread Bastien Koert
make sure in the general tab that the read only checkbox is NOT checked bastien From: "Ian" <[EMAIL PROTECTED]> To: [email protected] Subject: Re: [PHP-DB] Problem with permissions Win32 dba_open Date: Thu, 30 Dec 2004 12:54:49 - "Bastien Koert" <[EMAIL PROTECTED]> wrote: > have you set the

RE: [PHP-DB] Math and mySQL

2004-12-30 Thread Bastien Koert
see intersperesed comments bastien From: "Ron Piggott" <[EMAIL PROTECTED]> To: "PHP DB" Subject: [PHP-DB] Math and mySQL Date: Thu, 30 Dec 2004 05:51:44 -0500 Is there any way of retreiving the last record of a mySQL table where I may specify one of the values in it? I know the SELECT command and

Re: [PHP-DB] Problem with permissions Win32 dba_open

2004-12-30 Thread Ian
"Bastien Koert" <[EMAIL PROTECTED]> wrote: > have you set the permissions in the folders? Right click on the folder and > choose Properties...then set the appropraiate permissions > > bastien [snip] Thanks, Bastien. Altering permissions doesn't appear to work, at least not the way it seems to

[PHP-DB] Math and mySQL

2004-12-30 Thread Ron Piggott
Is there any way of retreiving the last record of a mySQL table where I may specify one of the values in it? I know the SELECT command and just for example the field I know could be serial_number = 30612312-ABDEFG --- I have the serial_number field set as a varchar. Part two of my question is how