Create a function like error_handling()
in it have it do echo We're sorry, we are currently experiencing technical
difficulties blah blah blah and have it email you whatever mysql_error()
says.
then do:
mysql_query(SELECT whatever FROM whatever) or die(error_handling());
-Original
After getting very frustrated with arrays, I ended up using eval() in the
following way:
function top10() {
$i = 0;
$res = mysql_query(SELECT orders.pid, products.pid, orders.amount,
products.pname FROM orders, products WHERE orders.uid!='' AND
orders.pid=products.pid) or
getting paid enough for
what I was doing so I took the easy way out. It's the only time I ever used
eval() in PHP.
-Original Message-
From: Rasmus Lerdorf [mailto:[EMAIL PROTECTED]]
Sent: January 20, 2002 11:22 PM
To: Alex Dowgailenko
Cc: [EMAIL PROTECTED]
Subject: RE: [PHP] Re: eval
Try this code. It assumes you are already connected to the database.
Usually, I put that script in something like database.inc and just do an
include.
?php
mysql_connect (mysql_server, username, password);
mysql_select_db(database_name);
$sql = mysql_query(SELECT image, type FROM table_name
http://www.isi.edu/in-notes/iana/assignments/media-types/media-types has
been a great help for me and will probobally be a great help to a bunch of
other people designing web applications. It's a fairly long list of content
types with their RFC codes and whatnot.
Just thought I'd contribute
Question is, why would you want to?
php3 scripts will work fine under php4.
-Original Message-
From: Manu Verhaegen [mailto:[EMAIL PROTECTED]]
Sent: January 18, 2002 2:39 AM
To: [EMAIL PROTECTED]
Subject: [PHP] installing php3 and php4 on the same server
Hi,
We have installed
6 matches
Mail list logo