Jump to content

wrong_move18

New Members
  • Posts

    7
  • Joined

  • Last visited

    Never

Everything posted by wrong_move18

  1. You can use the Community Edition.. URL: http://webyog.com/en/downloads.php
  2. You can use this.. I use this in my work projects. If you want to select specific fields.. I used an array type of input name. HTML Form: <form name="test"> <input type="checkbox" id="checkall" value="" onclick="toggleCheck('chk[]', this.checked);" /> Check All<br /> <input type="checkbox" name="chk[]" value="1" /> Check 1 <br /> <input type="checkbox" name="chk[]" value="2" /> Check 2 <br /> <input type="checkbox" name="chk[]" value="3" /> Check 3 <br /> <input type="checkbox" name="chk[]" value="4" /> Check 4 <br /> <input type="checkbox" name="chk[]" value="5" /> Check 5 <br /> </form> Javascript Function: function toggleCheck(name, value){ var inputs = document.getElementsByTagName("input"); for(var i=0; i<inputs.length; i++){ if((inputs[i].type=="checkbox") && (inputs[i].name==name)) inputs[i].checked = value; } } if you want to select all checkboxes... HTML Form: <form name="test"> <input type="checkbox" id="checkall" value="" onclick="toggleCheck(this.checked);" /> Check All<br /> <input type="checkbox" name="chk1" value="1" /> Check 1 <br /> <input type="checkbox" name="chk2" value="2" /> Check 2 <br /> <input type="checkbox" name="chk3" value="3" /> Check 3 <br /> <input type="checkbox" name="chk4" value="4" /> Check 4 <br /> <input type="checkbox" name="chk5" value="5" /> Check 5 <br /> </form> Javascript Function: function toggleCheck(value){ var inputs = document.getElementsByTagName("input"); for(var i=0; i<inputs.length; i++){ if(inputs[i].type=="checkbox") inputs[i].checked = value; } }
  3. You can use this... <form name='member_add' onsubmit='showUser(this.member_list.value, this.category_list.value, this.description.value);'> <input type='text' name='member_list'> <input type='text' name='category_list'> <input type='text' name='description'> </form> or if it doesn't work, use this.. <form name='member_add' onsubmit='showUser(document.forms["member_add"].member_list.value, document.forms["member_add"].category_list.value, document.forms["member_add"].description.value);'> <input type='text' name='member_list'> <input type='text' name='category_list'> <input type='text' name='description'> </form>
  4. There is no unlimited data type. If you want a much larger capacity you can use a LONGTEXT type. It can store more than 4 Billion characters. Reference: http://dev.mysql.com/doc/refman/5.0/en/string-type-overview.html
  5. I think you wanted to view all articles for Nov. 2007, you can use this query. <?php $dbdate = "Nov. 2007"; $month = date("m", strtotime($dbdate)); $year = date("Y", strtotime($dbdate)); $query = "SELECT * FROM news WHERE MONTH(date)={$month} AND YEAR(date)={$year}"; ?>
  6. I think this may help you. <?php $dbdate = 'Nov. 30, 2007'; $qdate = date("Y-m-d", strtotime($dbdate)); $query = "SELECT * FROM news WHERE date = '{$qdate}'"; ?> strtotime is a PHP built function, it will convert any format of date in a string to a timestamp.
  7. Zend rocks! Before I use Dreamweaver CS3, it has excellent features such as Spry Framework integration. The only thing I hate in Dreamweaver is its FTP connection, its SLOW!
×
×
  • 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.