Et lille spørgsmål, nu hvor du er her. Når man nu indaster datoen i feltet skal man jo også skrive: 2004-05-28 hvor jeg meget gerne vil kunne skrive sådan her 28-06-2004.
Hvis du vil have mere points for dette må du sige til :-)
øhhh... sorry, men jeg er ikke særlig god til php :(
hvad skal jeg helt præcist gøre med den kode der?
Min kode ser således ud nu :
$sog_dato = mysql_query("SELECT * FROM info WHERE dato BETWEEN '".$_POST['start_dato']."' AND '".$_POST['slut_dato']."' ORDER BY '".$_POST['start_dato']."'") or die("Invalid query: " . mysql_error()); while ($row = mysql_fetch_array($sog_dato)) {
$sog_dato = mysql_query("SELECT * FROM info WHERE dato BETWEEN '$startdato' AND '$slutdato' ORDER BY '".$_POST['start_dato']."'") or die("Invalid query: " . mysql_error());
print "<table border='2'>"; print "<tr><th>Ansvarlig</th><th>Kuponnr</th><th>Dato</th><th>Tidspunkt</th><th>Sagsnr / Projektnr</th><th>Kontorudgift</th><th>Formål</th><th>Passager(er)</th><th>Brev</th><th>Vin</th><th>Andet</th><th>Turen køres for</th><th>Adresse</th></tr>"; $sog_dato = mysql_query("SELECT * FROM info WHERE dato BETWEEN '$startdato' AND '$slutdato'") or die("Invalid query: " . mysql_error()); while ($row = mysql_fetch_array($sog_dato)) {...
og jeg får fejlen:
Notice: Undefined index: startdato in C:\Documents and Settings\dmg\Desktop\webs\taxi\check.php on line 191
Notice: Undefined offset: 2 in C:\Documents and Settings\dmg\Desktop\webs\taxi\check.php on line 193
Notice: Undefined offset: 1 in C:\Documents and Settings\dmg\Desktop\webs\taxi\check.php on line 193
Notice: Undefined index: slutdato in C:\Documents and Settings\dmg\Desktop\webs\taxi\check.php on line 195
Notice: Undefined offset: 2 in C:\Documents and Settings\dmg\Desktop\webs\taxi\check.php on line 197
Notice: Undefined offset: 1 in C:\Documents and Settings\dmg\Desktop\webs\taxi\check.php on line 197
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.