Jump to content

sungpeng

Members
  • Posts

    290
  • Joined

  • Last visited

Profile Information

  • Gender
    Not Telling

sungpeng's Achievements

Regular Member

Regular Member (3/5)

0

Reputation

  1. $sql = mysql_query("SELECT * FROM database where id=$id") while($do=mysql_fetch_array($sql)){ There are many rows that have the same id numbers. I need all to fetch out. Mysql error. Is it possible to echo out all ?
  2. Is there a shorter line for day = 1 to 4 instead of day=1 or day=2 or day=3 or day=4 ?
  3. $.ajax({ success:function(html){ $('#msg').html(html); } }); <p id="msg"></p> Is it possible to extract the id="msg" results and put it in php variable or html for further command ?
  4. How to fetch the data from another php page ? <script> $( "#search" ).autocomplete({ source: availableTags }); </script> <input type="text" id="search">
  5. No not working also. <script type='text/javascript'> $(window).load(function(){ $('input[name="searchbox"]').on('change', function() { var val = $(this).val(), var dataString='varal='+ val; alert (dataString); }); }); <input type="text" name="searchbox">
  6. Like key wording in www.google.com, we haven't completely key in the sentence there is always a dropdown box show the results before we press the search button.
  7. Is it possible to change it to a search box text instead of a checkbox ? It seemed not working. $(window).load(function(){ $('input[name="searchbox"]').on('change', function() { var val = $(this).val(), var dataString='var='+ val; alert ('dataString'); <input type="text" name="searchbox">
  8. First an input box form. When key in the letter, it will search the database and fetch result in a small dialogue box beside the input box. The result fetched is not display on the page itself but a small rectangle box beside the input box form. I need the small rectangle box. Like if you key in the input box on some page, some data will appear on a small pop up box of your past data that you have key in somewhere.
  9. Hi I need a input box, and whenever i key in a letter in it will read the database and fetch result in a small dialogue box beside the form. The dialogue box will disappear if nothing is key in. Can someone help ?
  10. I wish to add some text after the current string data in sale. Concat not working is there any problem with this code ? $title="addtext"; $update_status=mysql_query("update product set sale=CONCAT(sale,$title) ");
  11. Solved Thank you. One question my friend told me to use html 5 instead of ajax as html 5 all browsers can support while ajax some browsers can't. Is it true ?
  12. If i never put in the while loop, it works fine. But once in the while loop, click on the checkbox has no reaction. while($doing=mysql_fetch_array($sqlq)){ <input type='checkbox' name='checking[]' value='<?php echo $doing["pid"]; ?>' > }
  13. I successfully send the checkboxValue to the checking1.php page but for the isCheckboxChecked, how am i going to send it over to checking1.php as well ? If i echo the $results at checking1.php they will give me an Array wording output. var dataString='sendcheck='+ checkboxValue;
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.