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 =
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
Hello list!
Does anybody knows how to send a mail through a php page using mail() function
including an attachment file?
Thanx
Nikos
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
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
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
--
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
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
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:
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
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
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
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
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
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
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] .
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
17 matches
Mail list logo