Find Jobs
Hire Freelancers

Php Mysql Json downline tree view

$10-30 USD

Concluído
Publicado há 9 meses

$10-30 USD

Pago na entrega
i have two table, not just accounts info, i need also products info to show and i need select which accounts_id to start, not just starting from the top id i have the sample script, you can modify or use your own clean code to create for me attached sample script and print screen here my sample work //////////////////////////////////////////////////////////////////// [login to view URL] ----------------- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "[login to view URL]"> <html dir="ltr" lang="zh"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <link rel="stylesheet" href="[login to view URL]"> <link rel="stylesheet" href="dist/[login to view URL]" /> <link rel="stylesheet" href="dist/[login to view URL]" /> <script type="text/javascript" charset="utf8" src="[login to view URL]"></script> <script src="dist/[login to view URL]"></script> <script src="dist/[login to view URL]"></script> <title>Php and MySQL</title> <style> html, body { height: 100%; min-height: 100%; margin: 0; padding: 0; } #left-component { right: 20%; margin-right: 5px; } #my-divider { right: 20%; width: 5px; } #right-component { width: 80%; } .pretty-split-pane-frame { box-sizing: border-box; width: 100%; height: 100%; padding: 5px; background: silver; } .pretty-split-pane-frame .split-pane > .[login to view URL] { background: blue; opacity: 0.25; } .pretty-split-pane-component-inner { box-sizing: border-box; border: 1px solid gray; background: white; width: 100%; height: 100%; padding: 1em 1em; overflow: auto; } .fixed { position: fixed; background: #fff; z-index: 10; width: 100%; } </style> </head> <body> <div class="row"> <div class="col-md-12"> <div class="table-responsive fixed"> <table class="table table-striped table-bordered"> <tr> <td class="pretty-split-pane-component-inner" id="right-container" style="width:500px;"><p style="width:250px;">click node href attribute content</p></td> </tr> </table> </div> </div> </div> <div class="row" style="margin-top:100px;"> <div class="col-md-12"> <div class="table-responsive"> <table class="table table-striped table-bordered"> <tr> <td id="tree-container" style="width:100%;"></td> </tr> </table> </div> </div> </body> </html> <script type="text/javascript"> $(document).ready(function(){ $('div.split-pane').splitPane(); $('#tree-container').jstree({ 'plugins': ["wholerow", "types", "search"], 'core' : { 'data' : { "url" : "[login to view URL]", "dataType" : "json" } } }) .on('[login to view URL]', function (e, data) { var href = [login to view URL]; if(href == '#') return ''; var href_text = data.node.a_attr.h_text; $('#right-container').html(href_text); }); $( "#searchText" ).keyup(function() { var customers_username = $(this).val(); search(customers_username) }); function search(customers_username){ $('#tree-container').jstree(true).search(customers_username); } }); </script> //////////////////////////////////////////////////////////////////// [login to view URL] ----------------------- <?php $servername = "localhost"; $username = "root"; $password = ""; $dbname = "store_db"; $conn = mysqli_connect($servername, $username, $password, $dbname) or die("Connection failed: " . mysqli_connect_error()); if (mysqli_connect_errno()) { printf("Connect failed: %s\n", mysqli_connect_error()); exit(); } $sql = "SELECT * FROM accounts"; $res = mysqli_query($conn, $sql) or die("database error:". mysqli_error($conn)); while( $row = mysqli_fetch_assoc($res) ) { $data[] = $row; } $itemsByReference = array(); foreach($data as $key => &$item) { $itemsByReference[$item['accounts_id']] = &$item; $itemsByReference[$item['accounts_id']]['children'] = array(); $itemsByReference[$item['accounts_id']]['a_attr'] = new StdClass(); } foreach($data as $key => &$item){ if($item['accounts_parent_id'] && isset($itemsByReference[$item['accounts_parent_id']])) { $itemsByReference [$item['accounts_parent_id']]['children'][] = &$item; } } foreach($data as $key => &$item) { if(empty($item['children']) || !empty($item['children'])) { $item['a_attr']->href = &$item['accounts_title']; $text_h = &$item['accounts_name']; $text_id = &$item['accounts_id']; $item['a_attr']->h_text = 'Username : '.$text_h.' ID (#'.$text_id.') details click here -> <a href="[login to view URL]" target="_blank">'.$text_h.'</a>'; } if($item['accounts_parent_id'] && isset($itemsByReference[$item['accounts_parent_id']])) { unset($data[$key]); } } echo json_encode($data); ?> ////////////////////////////////////////////////////////////////////
ID do Projeto: 37023078

Sobre o projeto

23 propostas
Projeto remoto
Ativo há 9 meses

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
Concedido a:
Avatar do Usuário
Hi there, If you are available to initiate a chat, then I am ready to start your work asap. I am sure that you will be happy when I complete this project within the given time. Kind Regards Rahul Kumawat
$40 USD em 1 dia
5,0 (5 avaliações)
3,2
3,2
23 freelancers estão ofertando em média $23 USD for esse trabalho
Avatar do Usuário
Hello, I'm Abu Gosia. I'm interested in your project very well. I'm good in C#, .Net Core, MVC, ASP.NET, Angular.js, Yii2, PHP, Laravel, Codeigneter, Wordpress, Open Cart. I m quite well experienced in these jobs. Let's go ahead with me. Thanks
$25 USD em 1 dia
5,0 (276 avaliações)
7,1
7,1
Avatar do Usuário
Hey Mate Low N., Good afternoon! I’ve carefully checked your requirements and really interested in this job. I’m full stack node.js developer working at large-scale apps as a lead developer with U.S. and European teams. I’m offering best quality and highest performance at lowest price. I can complete your project on time and your will experience great satisfaction with me. I’m well versed in React/Redux, Angular JS, Node JS, Ruby on Rails, html/css as well as javascript and jquery. I have rich experienced in MySQL, PHP, JSON and phpMyAdmin. For more information about me, please refer to my portfolios. I am checking your attachment, I'll update you shortly... I’m ready to discuss your project and start immediately. 'accounts_parent_id' Looking forward to hearing you back and discussing all details.. For more details Chat with us
$10 USD em 3 dias
4,9 (153 avaliações)
6,7
6,7
Avatar do Usuário
Hi I am expert in php and mysql. I can complete the task for you. Please accept the bid. I am ready to start it and will complete less than 12 hours. Thanks Shihan
$20 USD em 1 dia
4,9 (325 avaliações)
6,8
6,8
Avatar do Usuário
Hi There, I can show the product info as you need, Are you available for a quick chat? Waiting for your best response, Regards, Khalil U.
$20 USD em 1 dia
5,0 (35 avaliações)
6,0
6,0
Avatar do Usuário
Dear Low N., I have read your project Php Mysql Json downline tree view description. I have done similar projects in past and I can do your work. Please come to private chat to discuss in detail. I am a Professional Full Stack Web Developer with 5+ years of experience. I have completed 250+ projects (70+ here) with Excellent remarks. Thank you
$20 USD em 4 dias
4,8 (48 avaliações)
5,8
5,8
Avatar do Usuário
⭐⭐⭐ Senior App Developer ⭐⭐⭐ Dear client. I read your description and I am so motivated in your project. As a App Developer, I have rich experience on App +7 years. I can develop every type of App .
$30 USD em 7 dias
5,0 (5 avaliações)
3,5
3,5
Avatar do Usuário
Hello, Good Day! I've examined your project regarding Php Mysql Json downline tree view I have 10 years+ of experience in PHP, WordPress, Woocommerce, Cake PHP, Codeigniter, Web Designing, Laravel, HTML, CSS, Javascript, jQuery, AJAX, UI/UX, and My SQL. I'm confident I can make your project responsive and ensure your satisfaction. Let me know your thoughts. Best regards, [Atif ~ D]
$10 USD em 1 dia
5,0 (5 avaliações)
3,0
3,0
Avatar do Usuário
Hi. How are you doing? As a highly skilled Web developer, I can help you perfectly. I am very confident with my skills and I'd like to help your business by doing my best. My clients have never been frustrated with my work and I hope to make you one of them. Please confirm that I am one of the best fits for you and drop me a message for further discussion. Thanks and Best Regards.
$35 USD em 7 dias
5,0 (2 avaliações)
2,6
2,6
Avatar do Usuário
Hi there, I have reviewed your requirements of Php Mysql Json downline tree view. I have an extensive knowledge of PHP, Html, Css, Json, and MySQL. I have experience of 7 yrs in development. I am also expert in php, java script, Codeigniter, ajax, laravel n all. I specialize in providing both intermediate and advanced PHP development services along with other web development. I am waiting for your message in the chat box. Regards Amit Kumar
$30 USD em 3 dias
4,9 (11 avaliações)
2,7
2,7
Avatar do Usuário
Hi, i have read your project, i am interested in your project, but i have some doubt, please clear my doubts, i am ready to start the work right now.
$20 USD em 7 dias
5,0 (4 avaliações)
2,2
2,2
Avatar do Usuário
I have gone through project description, but I would like to discuss to clear my understanding of requirements. Please PM me so we can discuss the requirement in more details
$30 USD em 7 dias
5,0 (1 avaliação)
2,0
2,0
Avatar do Usuário
Hi, Low. I can fix it in 1 hour. I've worked with another client in this space, I think you might find it very interesting to have chat. Regards, Marianna
$11 USD em 1 dia
0,0 (0 avaliações)
0,0
0,0
Avatar do Usuário
Hello, there! Happy to have your attention, if only for a brief second I just read your job description and am so interested in your project. Expect the best results. With my rich experience, I can complete your project flawlessly. Even if we don’t end up working together, maybe I can help point you in the right direction or answer some questions. I’m at the computer all day anyway! Thanks for your time!
$20 USD em 7 dias
0,0 (0 avaliações)
0,0
0,0
Avatar do Usuário
Give this project to me then I will finish it within today for sure.
$30 USD em 1 dia
0,0 (0 avaliações)
0,0
0,0
Avatar do Usuário
I can assist you with that. I can help you resolve it as soon as possible. If interested, please feel free to reach out to me directly. Thank you.
$20 USD em 1 dia
0,0 (0 avaliações)
0,0
0,0
Avatar do Usuário
Hey, it's Mirac technologies I read your post and requirement so we are interested to work with you, we have a well-experienced team they work on several different projects For 7 years and we provide 100% quality assurance so feel free to contact us. We are available for you. Thanks Regards Mirac Technologies!!!
$20 USD em 7 dias
0,0 (0 avaliações)
0,0
0,0
Avatar do Usuário
Hi, Give me one chance to work on this project. I am very good in php and MySQL. I will fetch required data from table and return it in Json format as you need it. Please assign this project to me so I can start work on it. I will complete this project within time with quality. Let us discuss in detail on chat. Thank you.
$20 USD em 1 dia
0,0 (0 avaliações)
0,0
0,0

Sobre o cliente

Bandeira do(a) MALAYSIA
Puchong, Malaysia
5,0
5
Método de pagamento verificado
Membro desde out. 18, 2012

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.