Find Jobs
Hire Freelancers

Write PHP script to fix deleted column in MySQL Table

$30-250 USD

Fechado
Publicado há aproximadamente 11 anos

$30-250 USD

Pago na entrega
A column in a Mysql table was accidently deleted today... and the only backup was 1 year old... A PHP and MySQL script should be written to fix the missing data which can be calculated from the remaining data as described here.. The columns are: ID, CustID, PackagID, StartDate, EndDate, Paid, Qty, ExtraInfo, Cost, Invoiceno, nextno The field called NextNo was accidently deleted for all rows in the database. A PHP script should scan through the table and work out the ID of the next billed entry and then update the table to repopulate the field called 'nextno' E.G. | 9960 | 712 | 49 | 2011-11-09 23:00:00 | 2011-12-08 23:00:00 | pending | 1 | Bespoke hosting | 530.00 | 4622 | 10054 | | 10054 | 712 | 49 | 2011-12-09 23:00:00 | 2012-01-07 23:00:00 | pending | 1 | Bespoke hosting | 530.00 | 4680 | 10115 | | 10115 | 712 | 49 | 2012-01-08 23:00:00 | 2012-02-06 23:00:00 | pending | 1 | Bespoke hosting | 530.00 | 4714 | 10335 | | 10335 | 712 | 49 | 2012-02-07 23:00:00 | 2012-03-07 23:00:00 | pending | 1 | Bespoke hosting | 530.00 | 4787 | | | 10403 | 712 | 49 | 2012-03-08 23:00:00 | 2012-04-08 00:00:00 | pending | 1 | Bespoke hosting | 530.00 | 4813 | | | 10525 | 712 | 49 | 2012-04-09 15:39:41 | 2012-05-09 15:39:41 | pending | 1 | Bespoke Hosting | 530.00 | 4835 | | | 10555 | 712 | 49 | 2012-04-08 00:00:00 | 2012-05-08 00:00:00 | pending | 1 | Bespoke hosting | 530.00 | 4842 | | | 10638 | 712 | 49 | 2012-05-09 00:00:00 | 2012-06-09 00:00:00 | pending | 1 | Bespoke hosting | 530.00 | 4948 | | | 10807 | 712 | 49 | 2012-05-10 15:39:41 | 2012-06-09 15:39:41 | pending | 1 | Bespoke Hosting | 530.00 | 4985 | | | 10894 | 712 | 49 | 2012-06-10 00:00:00 | 2012-07-10 00:00:00 | pending | 1 | Bespoke hosting | 530.00 | 5014 | | | 10957 | 712 | 49 | 2012-06-10 15:39:41 | 2012-07-10 15:39:41 | pending | 1 | Bespoke Hosting | 530.00 | 5053 | | | 11082 | 712 | 49 | 2012-07-10 15:39:41 | 2012-08-10 15:39:41 | pending | 1 | Bespoke Hosting | 530.00 | 5152 | | | 11499 | 712 | 49 | 2012-08-11 15:39:41 | 2012-09-11 15:39:41 | pending | 1 | Bespoke Hosting | 530.00 | 5405 | | | 11629 | 712 | 49 | 2012-09-12 15:39:41 | 2012-10-12 15:39:41 | pending | 1 | Bespoke Hosting | 530.00 | 5548 | | E.G. in the above 10403 is clearly the 'nextno' for 10335 Not all the rows are that simple because Sometimes the purchasedate is the same date as the expires date, sometimes it is the day after and sometimes it is a day before.. So the script will need some kind of tolerance to work this out. Some examples of this in PHP are: foreach ($list as $r) { $current = $r; foreach ($list as $a) { if ($a[id] != $r[id]) { if ($r[expiresdate] <= $a[purchasedate]) { if ($a[extrainfo] == $r[extrainfo]) { if ($a[packagid] == $r[packagid]) { if ($a[cost] == $r[cost]) { echo "Possible Match: $a[id] nextno for $r[id]\n"; $s="UPDATE purchased_packages set nextno = '$a[id]' where id = $r[id]"; //$g=mysql_query($s); echo $s."\n"; break; } } } } } } } I will provide a full copy of the MySQL Table to the person who takes this on.
ID do Projeto: 4313674

Sobre o projeto

37 propostas
Projeto remoto
Ativo há 11 anos

Quer ganhar algum dinheiro?

Benefícios de ofertar no Freelancer

Defina seu orçamento e seu prazo
Seja pago pelo seu trabalho
Descreva sua proposta
É grátis para se inscrever e fazer ofertas em trabalhos
37 freelancers estão ofertando em média $129 USD for esse trabalho
Avatar do Usuário
please refer to my private message
$150 USD em 4 dias
4,9 (1305 avaliações)
9,7
9,7
Avatar do Usuário
Quality work assured. Ready to get started. Thanks.
$300 USD em 1 dia
4,9 (1059 avaliações)
8,9
8,9
Avatar do Usuário
Hi, Consider its done! I would love to get this opportunity of working with you. I can guarantee complete satisfaction if you select me to execute this project. Please check your private message board. Thanks
$230 USD em 2 dias
4,7 (123 avaliações)
8,8
8,8
Avatar do Usuário
Hi there, We are experts in PHP Open Source (any kind of PHP/MySQL work),wordpress and Ajax/Web 2.0 technology. Some of the projects we completed for php are mentioned below https://www.freelancer.com/projects/Linux-Bulk-Marketing/Interspire-Geolocalization.html https://www.freelancer.com/projects/PHP-HTML.1/Seamless-billing-login-website.html https://www.freelancer.com/projects/Linux-Bulk-Marketing/Interspire-Geolocalization.html https://www.freelancer.com/projects/PHP-Linux/Script-Cron-FTP-files.html
$250 USD em 15 dias
4,8 (955 avaliações)
8,7
8,7
Avatar do Usuário
quick pro help. ftp and milestone required.
$200 USD em 3 dias
4,9 (770 avaliações)
8,3
8,3
Avatar do Usuário
Hi there Please find my bid, I've allowed for several hours encase there is any difficulties but we should be fine. Thanks James
$135 USD em 4 dias
4,9 (217 avaliações)
7,8
7,8
Avatar do Usuário
Expert PHP/MySQL developer. Available to start immediately and finish today.
$100 USD em 1 dia
4,6 (199 avaliações)
7,5
7,5
Avatar do Usuário
Hi, Please check PMB for details. Thanks KD
$250 USD em 7 dias
4,9 (39 avaliações)
6,6
6,6
Avatar do Usuário
Hi, I am interested in this project and would like to discuss further.
$150 USD em 3 dias
5,0 (79 avaliações)
6,3
6,3
Avatar do Usuário
hi i can do this
$90 USD em 1 dia
5,0 (41 avaliações)
6,0
6,0
Avatar do Usuário
Hi, I would like to work on your project.
$60 USD em 2 dias
5,0 (102 avaliações)
6,1
6,1
Avatar do Usuário
Hi, First of all thanks for posting this project, I am available to provide you economical services for bug fixing on web model, I have read and understood all of project details. I am expert in opensource development and completed nice big projects on freelancer with good rating, you can see on my profile on freelancer. References are also given.
$131 USD em 6 dias
4,6 (25 avaliações)
6,1
6,1
Avatar do Usuário
Hello we are 8+ years old web-development company. please check our portfolio for more details. thanks
$160 USD em 2 dias
5,0 (23 avaliações)
5,6
5,6
Avatar do Usuário
I can do it for you, I'm professional in PHP, MySql. You can give me this project. i will do it for you. Thank you.
$50 USD em 2 dias
5,0 (32 avaliações)
5,5
5,5
Avatar do Usuário
Wah! I know this is frustrating. I can start working on it right now.
$100 USD em 2 dias
5,0 (74 avaliações)
5,3
5,3
Avatar do Usuário
please check private message
$130 USD em 3 dias
5,0 (17 avaliações)
5,3
5,3
Avatar do Usuário
Hi, I can help you to fix the deleted column. Thanks for considering my bid. Patrik.
$100 USD em 2 dias
5,0 (31 avaliações)
4,9
4,9
Avatar do Usuário
Hi there, our preferred technology: PHP/Mysql, JavaScript, AJAX Ready to start asap. Let me know if you have any questions. Thanks, prasy
$80 USD em 2 dias
4,6 (19 avaliações)
5,4
5,4
Avatar do Usuário
------- Hi, this is a 01 hour Job! I can do this for you!!! -----------
$50 USD em 0 dia
5,0 (30 avaliações)
5,1
5,1
Avatar do Usuário
Dear sir, i can help you with this project. I have over 7 years of experience in mysql database programming, and over 3 years of experience in Php development.
$40 USD em 3 dias
5,0 (41 avaliações)
5,0
5,0

Sobre o cliente

Bandeira do(a) UNITED KINGDOM
Aylesbury, United Kingdom
4,3
13
Método de pagamento verificado
Membro desde mai. 7, 2010

Verificação do Cliente

Obrigado! Te enviamos um link por e-mail para que você possa reivindicar seu crédito gratuito.
Algo deu errado ao enviar seu e-mail. Por favor, tente novamente.
Usuários Registrados Total de Trabalhos Publicados
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Carregando pré-visualização
Permissão concedida para Geolocalização.
Sua sessão expirou e você foi desconectado. Por favor, faça login novamente.