Prøv lige: <? $database = Mysql_connect("Localhost","Administrator","FHC7000") or print(mysql_error()); Mysql_select_db("Ansatte", $database) or print(mysql_error()); $result = Mysql_query("select * FROM ansatte where Fornavn = $SOEG") or print(mysql_error()); $Nyresult = mysql_fetch_assoc($result) or print(mysql_error());
Ups: $result = Mysql_query("select * FROM Ansatte where Fornavn = $SOEG"); skulle nok være: $result = Mysql_query("select * FROM Ansatte where Fornavn = '$SOEG'");
Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.