I hereby claim:
- I am willmacdonald on github.
- I am wmacdonald (https://keybase.io/wmacdonald) on keybase.
- I have a public key whose fingerprint is 2A05 C30F CCE2 DBC6 480B BA23 8AB8 8F32 2E19 7FD3
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
<?php | |
//http://stackoverflow.com/questions/40911391/php-copy-file-for-each-filename-in-array/40912516#40912516 | |
$filenameArray = "img1.png,img2.png,img3.png"; | |
$sourcePath = "/source/"; | |
$savePath = "/newDir/"; | |
$finalArray = explode(',', $filenameArray); | |
function copyFiles($finalArray,$sourcePath,$savePath) { | |
foreach ($finalArray as $file){ | |
if ( !copy( $sourcePath.$file,$savePath.$file ) ) { |
SET character_set_results = 'utf8', | |
character_set_client = 'utf8', | |
character_set_connection = 'utf8', | |
character_set_database = 'utf8', | |
character_set_server = 'utf8' |
<?php | |
include ('inc/dbconnect.php'); | |
$user = $_POST['_user']; // You should remove the @ symbol | |
$dateavailable = $_POST['_dateavailable']; // Don't forget to filter | |
$dayornight = $_POST['_dayornight']; | |
$made_an_update = (bool)0; // initialise the variable | |
if($_POST['addavailabledates']) { | |
$query = "SELECT * | |
FROM users |