This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Model for Projects | |
*/ | |
function addProject($client, $projectName, $price, $deadline, $notes) { | |
$project = array( | |
"client_id" => $client, | |
"user_id" => $this->session->userdata('user_id'), | |
"name" => $projectName, | |
"price" => $price, | |
"deadline" => $deadline, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Controller for Projects | |
*/ | |
public function addProject() { | |
$this->load->helper('form'); | |
$this->load->library('form_validation'); | |
$config = array( | |
array( | |
'field' => 'client', | |
'label' => 'Client Name', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* Database Info */ | |
$server = "localhost"; | |
$username = "username"; | |
$password = "password"; | |
$databaseName = "databaseName"; | |
/* Table we want to export */ | |
$tableName = "tableName"; | |
/* Optional WHERE Statement */ | |
//$whereStatement = "WHERE field = value"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$count = 1; | |
while($count <= 20) { | |
$path = "D:\\web\\www\\website\\folder\\"; | |
$filename = $count.".html"; | |
$file = fopen($path.$filename, "w"); | |
echo $filename." has been created! <br />"; | |
$count++; | |
} | |
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(".drop_area").droppable({ | |
tolerance: "intersect", | |
accept: ".drop_item", | |
greedy: true, | |
drop : function(event, ui) { | |
$(this).droppable( "option", "disabled", true ); | |
}, | |
out : function(event, ui) { | |
$(this).droppable( "option", "disabled", false ); | |
}, |
NewerOlder