Find Jobs
Hire Freelancers

Repair php script for Find and Replace text inside tabe of MySQL database

€8-10 EUR

ถูกยกเลิก
โพสต์ เกือบ 6 ปีที่ผ่านมา

€8-10 EUR

ชำระเงินเมื่อส่งงาน
I made a php script to find and replace text inside specific table but its not working. <?php //set up variables and enter your credentials here $dbname = "name"; $dbhost = "localhost"; $dbpass = "pass"; $dbuser = "name"; $tbl_name = "oc_attribute_description"; //set up your master array! Array goes in this or $mstr_array = array( "Packs", "Packets", "Manual", "Manual Book"); //connect to database $con = mysql_connect($dbhost, $dbuser, $dbpass) or die('no connection:' . mysql_error()); $db = mysql_select_db($dbname) or die ('cant select db: ' . mysql_error()); // reteive each column $sql = "SHOW COLUMNS FROM `{$tbl_name}`"; $res = mysql_query($sql) or die ('could not get columns: ' . mysql_error()); $find = 0; $replace = 1; while ($col = mysql_fetch_array($res)) { $sql = "UPDATE `{$tbl_name}` SET `{$col[0]}` = REPLACE(`{$col[0]}`, '{$mstr_array[$find]}' , '{$mstr_array[$replace]}')"; $find = $find + 2; $replace = $replace + 2; } ?>
รหัสโปรเจกต์: 17266409

เกี่ยวกับโปรเจกต์

24 ข้อเสนอ
โปรเจกต์ระยะไกล
ใช้งานอยู่ 6 ปีที่ผ่านมา

กำลังมองหาการสร้างรายได้ใช่ไหม?

ประโยชน์ของการประมูลกับ Freelancer

กำหนดงบประมาณและกรอบเวลาของคุณ
รับเงินจากการงานของคุณ
อธิบายข้อเสนอของคุณในภาพรวม
ลงทะเบียนและเสนอราคาฟรี
24 ฟรีแลนซ์กำลังเสนอราคาโดยเฉลี่ย €12 EUR สำหรับงานนี้
รูปอวาตาร์ของผู้ใช้
I have four years experience as a web developer will fix your issue inbox me we can discuss more over chat.
€10 EUR ใน 0 วัน
5.0 (150 รีวิว)
6.5
6.5
รูปอวาตาร์ของผู้ใช้
Dear Sir, am expert in php and mysql ican correct it perfectly please reply wish to do this task please come in chat
€10 EUR ใน 1 วัน
5.0 (54 รีวิว)
5.1
5.1
รูปอวาตาร์ของผู้ใช้
I am expert in web development using PHP / MySQL. I can work on Find and Replace text inside tabe of MySQL database on your project.
€8 EUR ใน 1 วัน
4.9 (74 รีวิว)
5.0
5.0
รูปอวาตาร์ของผู้ใช้
Hi, I am a magento certified developer with more than 5 years of experience in php development. I can help on this. PM me if you are interested. Thanks
€13 EUR ใน 1 วัน
4.9 (5 รีวิว)
3.8
3.8
รูปอวาตาร์ของผู้ใช้
Hi! try this code: You HAVE TO USE STR_REPLACE <?php //set up variables and enter your credentials here $dbname = "name"; $dbhost = "localhost"; $dbpass = "pass"; $dbuser = "name"; $tbl_name = "oc_attribute_description"; //set up your master array! Array goes in this or $mstr_array = array( "Packs", "Packets", "Manual", "Manual Book"); //connect to database $con = mysql_connect($dbhost, $dbuser, $dbpass) or die('no connection:' . mysql_error()); $db = mysql_select_db($dbname) or die ('cant select db: ' . mysql_error()); // reteive each column $sql = "SHOW COLUMNS FROM '".$tbl_name."'"; $res = mysql_query($sql) or die ('could not get columns: ' . mysql_error()); $find = 0; $replace = 1; while ($col = mysql_fetch_array($res)) { $sql = "UPDATE '".$tbl_name."' SET '".$col[0]."' = STR_REPLACE(".$mstr_array[$find].", '".$mstr_array[$replace]."' , '".$col[0]."')"; $find = $find + 2; $replace = $replace + 2; } ?>
€14 EUR ใน 2 วัน
5.0 (8 รีวิว)
3.3
3.3
รูปอวาตาร์ของผู้ใช้
Hello, I am a php developer and can help you with correcting your script. If you are interested in my offer, don't hesitate contacting me. Thanks
€10 EUR ใน 2 วัน
4.0 (2 รีวิว)
2.7
2.7
รูปอวาตาร์ของผู้ใช้
hello sir/madam your project can be done. kind regards, Niraj Lathiya. Thank you.
€12 EUR ใน 1 วัน
5.0 (4 รีวิว)
2.2
2.2
รูปอวาตาร์ของผู้ใช้
HI, I AM A PHP PROGRAMMER AND WEB DEVELOPER. I HAVE A LOT OF EXPERIENCE IN PHP CODING AND DIFFERENT KINDS OF SCRIPTING LANGUAGES. I HAVE DEVELOPED MANY DYNAMIC WEBSITES USING PHP. I CAN DEBUG AND FIX THE SCRIPT. YOU MAY CONTACT ME NOW TO GET UPDATED SCRIPT. THANKS
€13 EUR ใน 10 วัน
5.0 (5 รีวิว)
2.2
2.2
รูปอวาตาร์ของผู้ใช้
Hi there: I have expertise in php. I can get the job done for you in no time. Can provide you with 100% working code. looking forward to work with you. we can discuss details over chat. regards
€8 EUR ใน 1 วัน
0.0 (0 รีวิว)
0.0
0.0
รูปอวาตาร์ของผู้ใช้
I have got your job posting and I am very much interested to work in your project. About Me : I am a software developer more than 9 years working experiences of Cakephp, codeigniter, Laravel, CorePhp, AngularJs, Ionic Hybrid Mobile Application development. I am worked in leading software companies which i mentioned in my resume. and worked 40+ successful projects in various technologies. Also made many web services APIs for mobile Apps. specialization in your requirements: I worked in many php frameworks including Cakephp and 25+ projects in Cakephp. also worked in AngularJs and IONIC framework in many websites and hybrid mobile applications. and usually using MySql as a backend. Current Working Position: Right now i am working as a freelancer and not fully bounded with any organisation. So i can dedicate work with you on your assignment. And let me know next availability time so we can move forward for achieve your project requirement. Also let me know if you have any doubts or queries about me. Regards, Krishan k. Sharma
€13 EUR ใน 10 วัน
0.0 (0 รีวิว)
0.0
0.0

เกี่ยวกับลูกค้า

ปักธงของ GREECE
PATRAS, Greece
5.0
7
ยืนยันวิธีการชำระเงินแล้ว
เป็นสมาชิกตั้งแต่ ก.พ. 27, 2015

การยืนยันลูกค้า

ขอบคุณ! เราได้ส่งลิงก์สำหรับเครดิตฟรีให้คุณทางอีเมลแล้ว
เกิดข้อผิดพลาดขณะส่งอีเมลของคุณ กรุณาลองอีกครั้ง
โลโก้ Freelancer Thailand / ภาษาไทย ช่วยเหลือและสนับสนุน FreelancerประเภทโปรเจคการประกวดFreelancerองค์กรแพ็กเกจสมาชิกโครงการ Freelancer ชั้นแนวหน้าการจัดการโปรเจคงานในพื้นที่Photo Anywhereหน้าจัดแสดงผลงานAPI สำหรับนักพัฒนาได้รับการยืนยันDesktop App เกี่ยวกับเกี่ยวกับเราวิธีใช้งานความปลอดภัยนักลงทุนแผนผังเว็บไซต์เรื่องราวข่าวออกสื่อทีมรางวัลข่าวประชาสัมพันธ์ร่วมงานกับเรา ข้อกำหนดนโยบายความเป็นส่วนตัวข้อกำหนดและเงื่อนไขนโยบายลิขสิทธิ์ข้อพึงปฏิบัติค่าธรรมเนียมและค่าบริการหุ้นส่วนEscrow.comLoadshiftWarrior Forum แอปโลโก้ Apple App Store โลโก้ Google Play
ไม่สามารถคัดลอกไปยังคลิปบอร์ดได้ โปรดลองอีกครั้งหลังปรับเปลี่ยนการอนุญาต
คัดลอกไปยังคลิปบอร์ดแล้ว
ผู้ใช้ที่ลงทะเบียน งานที่มีการโพสต์ทั้งหมด
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
กำลังโหลดตัวอย่าง
ได้รับอนุญาตสำหรับตำแหน่งทางภูมิศาสตร์
เซสชั่นการเข้าสู่ระบบของคุณหมดอายุและคุณได้ออกจากระบบแล้ว กรุณาเข้าสู่ระบบอีกครั้ง