Hello everyone, I have a problem and new to php if someone could help me out. I have case statement
with a variable that is set to 'edit'. The case statement 'edit' is called however the function dosen't get called. This code is all above the html.
switch ($action){
case "edit":
echo "test edit 1"; //this does print
Edit_Task();
echo " test edit 3 "; //this doesn't print
break;
}//end switch
Here in the function I have some echo statements that are not called. This function isn't suppose to return return anysthing just yet. I just want to see if it gets called.
function Edit_Task(){
echo "test Function Edit_Task"; ///this doesn't print
$query = 'SELECT * FROM calander WHERE task_id = $task_id';
echo "<br> $query "; //this dosen't print
$result = mysql_query($query);
if(!$result){
echo "Error in Search Results". mysql_error();}
else{
$row = mysql_fetch_array($result);
$task_name = $row['task_name'];
$task_description = $row['task_description'];
$task_date = $row['task_date'];
$task_time = $row['task_time']; }//close else
Thanks
twb