Find Jobs
Hire Freelancers

convert php 5.5 code to wordpress proof php 7

$10-30 USD

已完成
已发布超过 7 年前

$10-30 USD

货到付款
I need this code to be converted to php7 and use the wordpress $wpdb code for it $subcat_no = mysql_query("SELECT `position` FROM ( select @rownum:=@rownum+1 `position`, p.* from `wp_health_attributs2` p, (SELECT @rownum:=0) r Where `health_id` = '".$_POST['cat']."' AND `pakketnaam` != '' order by id ) s WHERE `pakketnaam` = '".$_POST['subcat']."' "); $subcat_no = mysql_fetch_array($subcat_no); $cat = $_POST['cat']; $subcat = $subcat_no['position']; $res_arr = array(); if($row['Insurance_id_'.$cat.'_'.$subcat] == null){ $compansation = 0; }else{ // dit is met tarief een . en geen , $res_arr['cost'] = round($row['Tarief_2017'],2); $tarief_comma = $row['Tarief_2017']; $tarief_punt = str_replace(',', '.', $tarief_comma); $compansation = ($tarief_punt * $row['Insurance_id_'.$cat.'_'.$subcat])/100; } $fields = mysql_list_fields('vmondzorg_db','tarieven'); $columns = mysql_num_fields($fields); for ($i = 0; $i < $columns; $i++) {$field_array[] = mysql_field_name($fields, $i);} if (in_array('Insurance_id_'.$cat.'_'.$subcat.'_L', $field_array)) { $sql_limit = "SELECT Insurance_id_".$cat."_".$subcat."_L as cell_limit FROM tarieven WHERE Prestatie_Code = '".$_POST['token']."'"; $result_limit = mysql_query($sql_limit); if(mysql_num_rows($result_limit) > 0){ $row_limit=mysql_fetch_array($result_limit); if($row_limit['cell_limit'] != '' && $row_limit['cell_limit'] != null){ $res_arr['cell_limit'] = round($row_limit['cell_limit'],2); }else{ $res_arr['cell_limit'] = '-1'; } }else{ $res_arr['cell_limit'] = '-1'; } }else{ $res_arr['cell_limit'] = '-1'; } // dit is met tarief een . en geen , $res_arr['cost'] = round($row['Tarief_2017'],2); $tarief_comma = $row['Tarief_2017']; $tarief_punt = str_replace(',', '.', $tarief_comma); $res_arr['cost'] = round($tarief_punt,2); $res_arr['compansation'] = round($compansation,2); $res_arr['description'] = wordwrap($row['Omschrijving'], 70, "<br />\n"); $res_arr['extra_cost'] = $row['Techniek']; $res_arr['percentage'] = $row['Insurance_id_'.$cat.'_'.$subcat]; //$res_arr['true_cost'] = round(($row['Tarief_2017'] - $compansation),2); echo json_encode($res_arr);
项目 ID: 12700578

关于此项目

6提案
远程项目
活跃7 年前

想赚点钱吗?

在Freelancer上竞价的好处

设定您的预算和时间范围
为您的工作获得报酬
简要概述您的提案
免费注册和竞标工作
颁发给:
用户头像
Hello there. It looks like a simple task that I should be able to deliver quickly. We can discuss more details over chat. Thanks in advance. Best regards, Diogo Bragança
$20 USD 在1天之内
5.0 (9条评论)
2.9
2.9
6威客以平均价$27 USD来参与此工作竞价
用户头像
Hi there, Online and ready to get started ASAP. I have reviewed the code and I can have this completed and sent you the updated code within 1-2 hours. All the best, James
$40 USD 在0天之内
4.9 (258条评论)
7.0
7.0
用户头像
hi there, could you please explain me the issue which you are facing with this code ? You can PM me now. Thanks
$25 USD 在1天之内
4.4 (96条评论)
5.8
5.8
用户头像
Thank you so much for this great opportunity. I have so much experience in this field to finish this job. My basic technologies are here: WordPress, Magento, Joomla, PHP, PSD to HTML, JavaScript, SEO LOGO I would like to help you to get this job. Please provide me a chance so i can fulfill your requirement. Thank you so much.
$25 USD 在1天之内
5.0 (29条评论)
4.7
4.7
用户头像
Hi, I can do that for you. I am graduated computer scientist very skilled with PHP and Mysql. I'll need an hour or so to update your code perfectly into php7. I expect your call. Nemanja You can pay me after I finish the job
$25 USD 在1天之内
5.0 (1条评论)
0.7
0.7
用户头像
Hello, Reviewed your post and confident to deliver best outcomes. + Possess 7+ years of experience in WordPress, Plugin development and Theme development. ** Understanding: Convert mentioned code to work on latest version of php. >> Estimate: $20 >> Time frame: 1 day Thanks SK
$25 USD 在1天之内
0.0 (0条评论)
0.0
0.0

关于客户

NETHERLANDS的国旗
Arnhem, Netherlands
5.0
8
付款方式已验证
会员自12月 13, 2012起

客户认证

谢谢!我们已通过电子邮件向您发送了索取免费积分的链接。
发送电子邮件时出现问题。请再试一次。
已注册用户 发布工作总数
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
加载预览
授予地理位置权限。
您的登录会话已过期而且您已经登出,请再次登录。