Click to See Complete Forum and Search --> : another error :-/


lukezweb
11-30-2003, 02:05 PM
The error is with this part its the function...

Whats wrong with it pyro?


<?php
// West Coast Alignment System
// This Program Is Programmed By Luke and Mike Dyson
// This Program Cannot Be Copied Or Eddited In Any Way
// Copyrighted 2003-2004

$action = (isset($_GET['action'])) ? $_GET['action'] : "";
if ($action == "members") {

print "<table align=center cellspacing=0 cellpadding=0 border=0 class=bordercolor width=92%>";
print "<tr>";
print "<td width=100% class=titlebg><CENTER>Members:</CENTER></td>";
print "</tr>";
print "<tr>";
print "<td>";
print "<table width=100% cellspacing=0 cellpadding=0 border=0 align=center class=bordercolor>";
print "<tr>";
print "<td class=titlebg>Name</td>";
print "<td class=titlebg>Email</td>";
print "<td class=titlebg>Location</td>";
print "<td class=titlebg>Company</td>";
print "</tr>";
function makemember(member, email, location, company) {
print "<tr>";
print "<td class=windowbg>$member</td>";
print "<td class=windowbg>$email</td>";
print "<td class=windowbg>$location</td>";
print "<td class=windowbg>$company</td></tr>";
}
makemember("Mike","mike.dyson@blueyonder.co.uk","Londond","Network Rail")
makemember("Luke","luke.dyson@blueyonder.co.uk","London","Lukezweb")
print "</table>";
print "</td>";
print "</tr>";
print "</table>";

} else if ($action == "contact") {

pyro
11-30-2003, 04:58 PM
Probably the fact that member, email, location, and company are not constants, and you forgot the $ before them, for variables. ;)

Try this:

function makemember($member, $email, $location, $company) {

Also, you forgot the semicolons after your function calls.