Nieuw lid |
|
Oké, ik heb dit veranderd... Maar dan is de melding weer anders, en nu zichtbaar op iedere pagina:
Warning: mysql_query() expects parameter 2 to be resource
Dit is het stukje PHP code:
mysql_connect($db_host, $db_login, $db_pass) or die ("Can't connect!");
mysql_select_db($db_name) or die ("Can't open database!");
$query = "SELECT * FROM $db_table WHERE (ev_dat>='$dats_beg') AND (ev_dat<='$dats_en') ";
$result = mysql_query($db_name, $query);
$query = "SELECT * FROM $db_table WHERE (ev_dat>='$dats_beg') AND (ev_dat<='$dats_en') ";
|