Re: [PHP-DB] Insertion upon upload

2003-01-12 Thread Jason Wong
On Monday 13 January 2003 06:23, Bruce Levick wrote: [snip] > The upload works great. But I need to pass the three variables created > in the above code to a table "files" in the database. > > $fnme > $fid > $flctn > > Any ideas on how to incorporate an insertion method into the code > above?? I

[PHP-DB] inserting spaces in the select combo box

2003-01-12 Thread Rajesh Fowkar
Hi, I am trying to align the three values in the select combo box but it is not working. The code is below : for($nRow=0; $nRow < $nNumRows; $nRow++) { $aAns = pg_fetch_array($lResult, $nRow, PGSQL_ASSOC); $JoinedValue = $aAns[location_code] . $aAns[section_code] . $aA

[PHP-DB] Re: Array printing

2003-01-12 Thread V.Y.JR
Much simpler: foreach ($arrText as $text) { print $text; } Use that code. Just add in your HTML tags and it will be much cleaner and faster. "Michael Conway" <[EMAIL PROTECTED]> wrote in message news:!~!UENERkVCMDkAAQACABgAeI4MkiQKXEijmrrs5/EPIcKA [EMAIL PROTECTED] > I

[PHP-DB] Array printing

2003-01-12 Thread Michael Conway
I am using an array to return the contents of a file. The file root is located on the db and the file content is correctly rendered using the following code: echo "\n\t" . $arrText= file($row["description"]); for ($i=0; $i$arrText[$i]"); } Everything works fine except that the paragraph

[PHP-DB] Insertion upon upload

2003-01-12 Thread Bruce Levick
Hi all, I have a simple upload form. /// upload.php ## File to Upload: //# Which loads up a process page. //## process.php ### // The upload works g

Re: [PHP-DB] php-mysql connect

2003-01-12 Thread Larry E. Ullman
I've setup a form to submit data into my MySQL database and it appears to connect properly and whatnot but when I check to see that the data has been inserted properly using phpMyAdmin, the table refelcts a new row entry but the fields are empty. ??? I suspect this is a register_globals problem

Re: [PHP-DB] php-mysql connect

2003-01-12 Thread Jeffrey_N_Dyke
does this have anything to do with register_globals being off. are you using $_POST['var_name']? or $_GET['var_name']? can you send some code? jeff "Jared

[PHP-DB] php-mysql connect

2003-01-12 Thread Jared Price
I've setup a form to submit data into my MySQL database and it appears to connect properly and whatnot but when I check to see that the data has been inserted properly using phpMyAdmin, the table refelcts a new row entry but the fields are empty. ??? Anyone have this problem before?? Any help is gr

RE: [PHP-DB] PHP and mySQL help!

2003-01-12 Thread John W. Holmes
It looks like the problems is because $date and $host are in different tags. So if one is set, then the other won't be. ---John W. Holmes... PHP Architect - A monthly magazine for PHP Professionals. Get your copy today. http://www.phparch.com/ > -Original Message- > From: Dzung Nguyen

Re: [PHP-DB] php oop books

2003-01-12 Thread Pierre-Alain Joye
On Sun, 12 Jan 2003 14:58:36 -0500 "Michael Scappa" <[EMAIL PROTECTED]> wrote: > I know this is a bit off topic, can anyone recommend a good php / oop > book? I've been through php.net's library and nothing really on there. > Thanks I do Not a good book about OO&php, but a good site: http://www.

[PHP-DB] php oop books

2003-01-12 Thread Michael Scappa
I know this is a bit off topic, can anyone recommend a good php / oop book? I've been through php.net's library and nothing really on there. Thanks -Mike

[PHP-DB] RE: mysql_errno() list?

2003-01-12 Thread James Booker
Thanks for replying Adam, I know how to trap an error and how to show errors in the document, what i was aiming for is to build my own system of user-friendly errors into my database layer of my server application to make the errors nicer, and wanted to write myself an include file with nicer vers

Re: [PHP-DB] - mail() with atachment

2003-01-12 Thread Manuel Lemos
Hello, On 01/12/2003 09:21 AM, Nikos Gatsis wrote: Does anybody knows how to send a mail through a php page using mail() function including an attachment file? Just try this class that provides exactly what you need and more and is very easy: http://www.phpclasses.org/mimemessage -- Regard

Re: [PHP-DB] Re: Session on PHP with MySQL

2003-01-12 Thread Afif
Dear Bayu, Sunday, January 12, 2003, 10:27:50 AM, you wrote: BS> it seem to me you didn't use session at all, BS> so where is the session problem? yup now I use seesion,here my script [hope you ca help me] User ID atau Password yang anda masukkan tidak benar "; } else { echo " Welcome $

RE: [PHP-DB] - mail() with atachment

2003-01-12 Thread Rene Groothuis (Aeqis)
Take a look at http://phpmailer.sourceforge.net/ a very usefull php class for sending e-mail including attachements. Rene. -Original Message- From: Nikos Gatsis [mailto:[EMAIL PROTECTED]] Sent: Sunday, January 12, 2003 3:21 AM To: PHP-mailist Subject: [PHP-DB] - mail() with atachment H

[PHP-DB] - mail() with atachment

2003-01-12 Thread Nikos Gatsis
Hello list! Does anybody knows how to send a mail through a php page using mail() function including an attachment file? Thanx Nikos

Re: [PHP-DB] Code problem - need help.

2003-01-12 Thread Chase Urich
> When I view on my web page, the $number value comes out fine, but the $name > comes out as "Resource ID #x" where x is some number. Currently is says > "Resource ID #6". I know the SQL syntax is right, I have tested it. But what > is wrong here? The mysql_query command returns a result set, not

[PHP-DB] Code problem - need help.

2003-01-12 Thread Ron Clark
Hello all, I have the following code: echo "\n"; echo "\n"; $sql2 = mysql_query("SELECT signature FROM event ORDER BY cid DESC LIMIT 10"); while ($row = mysql_fetch_array($sql2)) { // $cid_alert = $row["cid"]; $number = $row["signature"]; $n