$result = mysql_query("INSERT INTO project (clientname, salesperson, prospect)
VALUES ('$clientName','$salesPer','$prospectVal')");
while ($row = mysql_fetch_assoc($result)) {
$projectID = $row['projectid'];
return $projectID;
}
I am not getting the projectID from the database. The field name is a dynamic one which increments on each insertion.