Hi,

This is the my error,

Parse error: parse error, unexpected T_STRING in C:\web\Apds\proc_athlete.php on line 17

My pro_athlete.php script is,
<?php
include("Opendb.php");
echo $process;
if ($process=="add")
{
$SQL="INSERT INTO basic_info (StudNo, Lname, Fname, Mname, Birthdate)
VALUES ('".$studID."','".$Lastname."', '".$Firstname."', '".$Midname."', '".$bday."')";
}
elseif ($process=="edit")
{
$SQL = "UPDATE basic_info SET StudNo='$studID', Lname='$Lastname', Fname='$Firstname', Mname='$Midname', Birthdate='$bday' WHERE StudNo='$studID'";
}
elseif ($process=="del")
{
$SQL = "DELETE FROM basic_info WHERE StudNo='$studID';
}
mysql_select_db("apds") or die("Could not select database");
$result = mysql_query($SQL) or die("Query failed : " . mysql_error());
include("main.php");
?>

The line 17 is:
mysql_select_db("apds") or die("Could not select database");


My Opendb.php script is:
<?php
mysql_connect("localhost","root", "jojo");
$mySQLdb="apds";
?>

I just canít find what is wrong with line 17. Iím using PHP 4.3.4, WinXP pro, MySQL 4.0.17

I have used this scripts in other projects and it worked.

I hope you will find time to give your comments.

Thanks a lot.

Jozin