"; }
if (isset($errors["title" ])) { echo $errors["title" ]."
"; }
if (isset($errors["category" ])) { echo $errors["category" ]."
"; }
if (isset($errors["job_type" ])) { echo $errors["job_type" ]."
"; }
if (isset($errors["pay_type" ])) { echo $errors["pay_type" ]."
"; }
if (isset($errors["city" ])) { echo $errors["city" ]."
"; }
if (isset($errors["state" ])) { echo $errors["state" ]."
"; }
if (isset($errors["country" ])) { echo $errors["country" ]."
"; }
if (isset($errors["phone" ])) { echo $errors["phone" ]."
"; }
if (isset($errors["email" ])) { echo $errors["email" ]."
"; }
if (isset($errors["description"])) { echo $errors["description"]."
"; }
unset($_SESSION["errors"]);
}
if (isset($_SESSION["input"]))
{
$user_input = $_SESSION["input"];
}
if (!isset($_SESSION["id"]))
{
$_SESSION["error"] = "You need to log in to post a job. Please log in or sign up.";
header("Location: Login.html");
exit();
}
$mysqli = mysqli_connect("localhost", "skillini_Ann", "bbalsk94544", "skillini_hatcreek");
if (mysqli_connect_errno())
{
echo "Your request cannot be processed at this time. Please try again later.";
exit();
}
else
{
$user_id = $_SESSION["id"];
//echo "User ID: $user_id
";
// Check to see if there is a skill left unfinished during a prior login.
$sql = "SELECT *
FROM projects
WHERE user_id = $user_id AND user_type = 2 AND pending = 1";
$res = mysqli_query($mysqli, $sql);
if ($res)
{
if (mysqli_num_rows($res) == 1)
{
$row = mysqli_fetch_array($res);
$project_id = $row['project_id'];
$logo = $row['photo_0' ];
$photo_1 = $row['photo_1' ];
$photo_2 = $row['photo_2' ];
$photo_3 = $row['photo_3' ];
$photo_4 = $row['photo_4' ];
$photo_5 = $row['photo_5' ];
}
mysqli_free_result($res);
}
}
mysqli_close($mysqli);
?>
Skillinity - Post-a-Job
* Indicates Required Field |
|
";
echo " |
";
echo "";
echo "";
echo "".fieldError()." | ";
echo " ";
echo " | ";
echo "
";
echo "
";
}
?>