Jump to content

life_maker

Members
  • Posts

    9
  • Joined

  • Last visited

Posts posted by life_maker

  1. Halloi have a big problem in AJAX , its not supporting Arabici tried to fill combo by clicking a radio button using AJAX but the combo filled with unknown datahere is AJAX functions//The POST method AJAXfunction post_method(t){var data = t.value;request.open('post', 'our_real_estate_code.php');request.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');request.onreadystatechange = output;request.send('data='+data);//variable will be stored in post array}here is my php code page

    if(isset($_POST['data'])){    $qry = $_POST['data'];    if($qry == 2)        $qry = "select id , name from real_estate_type where lang = $lang";    elseif($qry == 1)        $qry = "select id , name from real_estate_type_lands where lang = $lang";                Fill_Combo($qry ,'real_type' , '' , '' , '' ,'');                        }

    PLZ i need help as soon as possible :)

  2. Can you give us an example? Are you creating tables and wanting to display data within the rows? If so then when your creating your table encompass the whole thing in an echo " statement making sure that at the end of the table code you have ";. And also if there are any quotation marks within the code either remove them if not necessary or preceed them with a \.

    if u have the following table echo '<table>';while($res = mysql_fetch_array($qry)){ echo'<tr><td>'; echo $res['name']; echo'</td></tr>';}echo '</table>';and also u have a botton called Print on the same formwhat i want is when u press the botton to print the data in the table on printer
×
×
  • Create New...