Matt Nigh schrieb:
Matt Nigh
?php
$link = mysql_connect(localhost,username,password);
if(!$link) die (Could not connect to MySQL!);
mysql_select_db(almavale_board,$link);
if (!isset($band)) {
die(No artist specified.);
}
$sql = select * from bands where (nospaces_bands = '$band');
the records that match each one. it's
pretty confusing, so i hope i explained it well enough for all to
understand.
thanks,
Matt
- Original Message -
From: Markus Wagner [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, July 25, 2001 5:25 AM
Subject: [PHP-DB] Re: another php/mysql
Couple of comments:
1. What's with the $artist = artist; echo $mytable[$artist]; bit?
This really doesn't seem to gain you much.
2. Descriptive variable names are a Good Thing(tm).
3. Prettyprinting
4. Why are the tables in different databases to begin with?
5. Don't pull any more than