[PHP-DB] Code problem - need help.

2003-01-12 Thread Ron Clark
Hello all, I have the following code: echo td\n; echo table width=\100%\ border=\0\ align=\center\ cellpadding=\2\\n; $sql2 = mysql_query(SELECT signature FROM event ORDER BY cid DESC LIMIT 10); while ($row = mysql_fetch_array($sql2)) { // $cid_alert =

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 the

[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] - 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

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] ? include common.php; include setup.php; global $user_name, $user_pass; banner(); function

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 --

[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

[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

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 OOphp, but a good site:

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 form 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

[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

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

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

[PHP-DB] Insertion upon upload

2003-01-12 Thread Bruce Levick
Hi all, I have a simple upload form. /// upload.php ## form enctype=multipart/form-data method=post action=process.php?tsk=?php echo $tsk; ? pstrongFile to Upload:/strongbr input type=file name=img1 size=30/p Pinput type=submit name=submit value=Upload File/p

[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 am

[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] .

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?? If you're