"You must learn from the mistakes of others. You can't possibly live long enough to make them all yourself"
Sam Levenson
Pages: 123 ... 13
  1:  <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
  2:  
  3:  function initializeDataTable($selector, $ajaxEndPoint, $columns, $primaryKey, $actionButtons, $actionColumn, $extraCreationJS = null, $dom ='\'<"top"iflp<"clear">>rt<"bottom"p<"clear">>\'')
  4:  {
  5:  ?>
  6:      <script type="text/javascript">
Tags: php, written by CS grads View more Last activity 4 days, 1 hour ago  
  1:  int length= 0;
  2:  for(int idx = 0; idx < a.length; i++){
  3:      length++;
  4:  }
  5:  System.out.println("length is : " + length);
Tags: array length View more Last activity 5 days, 17 hours ago  
Php  So dangerous -7 Votes
  1:  if ($pass == 'lacaniano') { // So dangerous =S
  2:  	if (is_numeric($num))
  3:  		$sql = "SELECT * FROM clientes WHERE (cliente_id = $num)";
  4:  	else
  5:  		$sql = "SELECT * FROM clientes WHERE (cliente_mail = '$num')";
  6:  } else {
Tags: php So dangerous View more Last activity 5 days, 17 hours ago  
  1:  <? 
  2:  ob_start(); 
  3:  include("../config.php");
  4:  $result = mysqli_query($conn," DELETE FROM `crm_vehicles` WHERE id = '" . $_GET["id"] . "'");
  5:  header('Refresh: 0; url=index.php?deleted=si'); 
  6:  ob_end_flush(); 
Tags: php,sql View more Last activity 5 days, 17 hours ago  
  1:  var next = Math.max.apply(Math, $(this).parent().parent().parent().parent().find(".features").last().find('input').map(function () {
  2:      var t = this.name.match(/\d+/g);
  3:      return t[1];
  4:  }).get()) + 1;
  5:  
  6:  if (!isFinite(next))
Tags: javascript jquery View more Last activity 6 days, 7 hours ago  
Cpp  Connection must already open -159 Votes
  1:  privatevoid button1_Click(object sender, EventArgs e)
  2:  {
  3:  SqlConnection sqlConn =new SqlConnection();
  4:  sqlConn.ConnectionString = "server=Localhost;user=sa;pwd=a;database=Northwind;";
  5:  sqlConn.Open();
  6:  }
Tags: connection , sql View more Last activity 1 week, 2 days ago  
  1:  /* This is bad. Reaaly bad. It's a really, really bad hack. If you're an employee of 
  2:   * Intertrode Communication, then I'm really, really sorry that you have to maintain
  3:   * this. I was honestly planning on removing this tomorrow, but I've been known to 
  4:   * forget things like this. It happens.
  5:   *
  6:   * So here's the thing. I can't seem to figure out why the AccountId variable isn't 
View more Last activity 1 week, 5 days ago  
  1:  void PROMJTAGComments(int instruction, FILE *file) {
  2:    char str[80], fstr[120];
  3:  
  4:    if (!writeSVFFile) return;
  5:    if (PROMINSTLENGTH == 16) {
  6:      if (instruction == PROMEXTEST)
Tags: c++ horrible thisismyjob View more Last activity 2 weeks ago  
  1:  $(function(){
  2:    $("select[name=customer_id]").change(function(){
  3:      var thi = $(this).parent().parent().parent().parent();
  4:      $.post("<? echo $site ?>js/select/select_address.php",{customer_id: $(this).val()}, function(j){ 
  5:        var options = j;
  6:        $(thi).children().children().children().children().children("select[name=address_id]").html(options);
Tags: jquery,rape,php View more Last activity 2 weeks, 5 days ago  
Php  NOT NOT True 0 Votes
  1:  if (!(strpos($strHaystack, $strNeedle)===false)){
  2:     // absolutely not false
  3:  }
Tags: boolean false php View more Last activity 2 weeks, 6 days ago