When I did insert the record I used this code:
Code:
if (!$Ja){
$fDato = addslashes($fDato);
$fBy = addslashes($fBy);
$fNavn = addslashes($fNavn);
$fInfo = addslashes($fInfo);
$fSted = addslashes($fSted);
$query = mysql_query("INSERT INTO fremover VALUES('', '$fBy', '$fDato', '$fSted', '$fNavn', '$fInfo', '$fBildebox')");
}
and it worked....
then I tried to get it again on a other site. With this code:
Code:
<?php
$resultat = mysql_query("select fArrID, fSted, fNavn, fInfo, fBildebox from fremover where fBy like 'O' and fDato >= ".$StartDato." ORDER BY fDato",$db);
$row = mysql_fetch_array($resultat);
And it gave me an error.
Then I found out that it didn't want to make me select the fInfo field. So in myPHPAdimn, I changed the field to fText. And changed line to:
Code:
<?php
$resultat = mysql_query("select fArrID, fSted, fNavn, fText, fBildebox from fremover where fBy like 'O' and fDato >= ".$StartDato." ORDER BY fDato",$db);
$row = mysql_fetch_array($resultat);
and now it worked.
PS: Of course I then changed the line for the insert form too.
I used 45 minutes to find out of this. And it nearly killed me.