I have been racking my brain and searching for answers all f@*%'in day! Working with PHP 4.1.2 and MySQL 3.23.53 using Dreamweaver 8
Here is my code:
define('DBLOGIN_ID', 'db020024063');
define('DBPASSWORD', '20024063');
define('DBHOST', 'localhost');
define('DBNAME', 'db020024063');
$DBconn = mysql_connect(DBHOST, DBLOGIN_ID, DBPASSWORD);
$DBselect = mysql_select_db(DBNAME, $DBconn);
$runquery = "SELECT * FROM tbl_employees";
$result = mysql_query($runquery, $DBconn) or die("
Unable to execute the query.
"
. "
Error code: " . mysql_errno()
. "Error: " . mysql_error() . "
");
$row = mysql_fetch_assoc($result);
do {
// here is line 50:
echo "
. " " . $row['lname'] . . " " .
View . "";
} while ($row = mysql_fetch_assoc($result));
?>
2006-07-30
12:30:43
·
2 answers
·
asked by
NATALIE S
1
in
Programming & Design