was soll das denn:
$query("select catid from category where name = $_POST['catname']");
seltsame syntax!
$query("select catid from category where name = $_POST['catname']");
seltsame syntax!
require("config.php");
function createPW() {
srand((double)microtime()*100000);
$str = sprintf("%c%c%c%c%c%c",
(rand()%26 + 97),
(rand()%26 + 97),
(rand()%26 + 97),
(rand()%10 + 48),
(rand()%10 + 48),
(rand()%10 + 48) );
return $str;
}
$PW=createPW();
$monat="8";
$datum=date("Ymd");
$datu=date("d.m.Y");
$vale="0";
$tage="90";
$datestamp=date("Ymd");
$sql"select catid from category where catname = $_POST['catname']"; //Zeile 37
$result=mysql_query($sql,$db);
$kategorie = mysql_fetch_array($result);
$namen = $kategorie;
$query="select catid from category where katid = $catname";
$result=mysql_query($query,$db);
$i=0;
while ($zeileholen = mysql_fetch_array($result,MYSQL_ASSOC))
{
$cat[$i] = $zeileholen["katid"];
$i++;
}
Kommentar