Witam, mam problem z uruchomieniem stronki którą kiedyś napisał kolega.
Pluje errorami.
Notice: Undefined index: action in C:\xampp\htdocs\index.php on line 239
Notice: Undefined index: action in C:\xampp\htdocs\index.php on line 325
Notice: Undefined index: action in C:\xampp\htdocs\index.php on line 455
Notice: Undefined index: action in C:\xampp\htdocs\index.php on line 461
239:
else if($_GET['action'] === "editprofile")
{
if(empty($_SESSION['username']) || empty($_SESSION['password'])) {
header("Refresh:0; url=index.php"); echo "<script language='javascript'>alert('Musisz być zalogowany!');</script>"; return 0;
}
else if($_GET['action'] === "newauction")
{
{
$auctionCategories .= '
<option value="'.$row[id].'">'.$row[name].'</option>
';
}
Połączenie z bazą:
<?php
?>
W czym może leżeć problem?