Hey people :-)
I'm trying to load some data via. jquery
$get_desc = "SELECT tekst_id,overskrift FROM rr_tekster WHERE beskrivelse_id = '". $_POST['beskrivelse_id'] ."' AND status = 1";
$select = mysql_query($get_desc)or die(mysql_error());
while($row_option = mysql_fetch_array($select)){
$output .= '<option value="'.$row_option['tekst_id'].'">'.$row_option['overskrift'].'</option>';
}
$arr = array (
'list_options' => $output
);
echo json_encode($arr);
and my jquery looks like this
$.post(action, { beskrivelse_id:des_id }, function(data){
$(load_div).fadeOut();
$(result).html('<select name="tekster">'+data.list_options+'</select>').fadeIn(500);
},'json');
THE "ERROR": {"list_options":null}
in firebug it gives me an null error in the output... i want it to show all rows in my database, rigtig now it should show me 3 rows..
but nothing .. :-/ why ?