need to fix a bug. Invalid utf8 character string: '\xF3'
$10-30 USD
Completed
Posted over 2 years ago
$10-30 USD
Paid on delivery
Hi i need to fix a bug here.
i need someone to help me fix it so i can continue.
$requestId = base64_decode($_GET['request_id']);
i get this error code:
need to fix a bug. Invalid utf8 character string: '\xF3'
this is the full script:
include "[login to view URL]";
$requestId = base64_decode($_GET['request_id']);
$sql = mysql_query("SELECT id,images FROM checklists WHERE id = $requestId ORDER BY id DESC") or die(mysql_error());
$results = mysql_fetch_array($sql); // count the output amount
$imagesNames = $results['images'];
if(!empty($_FILES)){
$imagesString = '';
$target_dir = "upload/";
$i = 0;
$u = 0;
$imgArr = array();
foreach($_FILES['fileToUpload']['name'] as $file){
$fileName = time().basename($file);
$target_file = $target_dir . $fileName;
$imagesNames .= '&&&'.$fileName;
$imageFileType = strtolower(pathinfo($target_file,PATHINFO_EXTENSION));
if($imageFileType != "jpg" && $imageFileType != "png" && $imageFileType != "jpeg"
&& $imageFileType != "gif" ) {
}else{
move_uploaded_file($_FILES['fileToUpload']['tmp_name'][$i], $target_file);
$imgArr [] = $fileName;
}
$i++;
}
}
if($imagesNames != ''){
$result = mysql_query("UPDATE checklists SET images='$imagesNames' WHERE id = $requestId" ) or die(mysql_error());
$submitted = 1;
}
I have more than 5 years of experience working with PHP, MySQL, API, HTML, Javascript, Node Js, Vue Js, Css, Git, C#, SQL Server, Devexpress, and integrating online payment gateways, Paypal, Payer, PerfectMoney. I can start work right now
$20 USD in 1 day
5.0 (4 reviews)
2.3
2.3
6 freelancers are bidding on average $23 USD for this job
Hi there. I've just read your requirement and I think I understood it clearly.
I'm a Fullstack expert and I can fix the bug perfectly.
If you chat with me, you'll know I can finish your project perfectly.
Looking forward to your reply. Thank you.
Hi!
I can help you fix the bug you provided here in this post. I have an experience in bug fixing for six years in a lot of programming languages, including PHP and SQL. I also know character encoding types such as ASCII and UTF-8, therefore I can deal with this character encoding problem in PHP and SQL.
Please send me a message to discuss this further if you wish to award me this project.
Thanks!
Regards,
Benedict