modify php code

Closed

Description

Need to make budget editable within joomla website by modyfying php code.

Current code is :-

{source}

<!-- You can place html anywhere within the source tags -->

<?php

$db = JFactory::getDBO();

$user = JFactory::getUser();

$totalAmount = "[url removed, login to view]";

$budget = "[url removed, login to view]";

$query = "SELECT sum([url removed, login to view]) as totalAmount ,users.cf_plan_budget as budget FROM `web148-viyaa2`.`levo_fav_user_planner` plan left join `viyaa_extendedreg_users` users on plan.user_id = users.user_id where plan.user_id = '".$user->id."' group by plan.user_id";

//echo $query;

//exit;

$db->setQuery($query);

if($results = $db->loadAssoc())

{

$totalAmount = $results['totalAmount'];

$budget = $results['budget'];

// return $this->_db->insertid();

//return $results;

}

?>

Budget: <? echo "<p>".$budget."</p>";?>

So Far: <? echo "<p>".$totalAmount."</p>";?>

{/source}

Skills: PHP

See more: code group, php db, php code, modify php website, getuser, php code html, amount code, modify query, modify source code, code amount html, current user group joomla, jfactory user group, jfactory joomla, group current user joomla, query joomla php, modify php code, code php text spanish need translate, modify joomla website, code query website, php modify zip rar zip code, php code joomla, modify joomla html, modify html code, modify code php, joomla modify group

Project ID: #5467771

9 freelancers are bidding on average $28 for this job

powertech

A proposal has not yet been provided

$30 USD in 1 day
(60 Reviews)
6.5
mituld

Hi I work towards providing reliable, relevant and robust IT solutions at most competitive prices to my customers. I ensure 100% customer satisfaction so lets start Thanks

$33 USD in 2 days
(37 Reviews)
5.7
dynamiccreator

Hi joomla developer here. I am getting you little bit can you please explain little more. I can start with you immediately after we end up with discussion.

$15 USD in 1 day
(27 Reviews)
5.0
c0909h1179

Dear Sir ! * I nerver bid any project if i not sure i can finish it with 100%. So please compare my completed percent with another people or visit my profile for detail, And read our infomations. Our skillful team of d More

$39 USD in 1 day
(12 Reviews)
4.9
harisansl

Hi, Reviewed your requirement and the code and understand that you want to make the budget field editable but after making it editable what needs to be done. let me know so that we can provide the best solution More

$25 USD in 0 days
(17 Reviews)
4.2
phpcheenu

Hello sir, We have good experience of Photoshop,Banner Design ,Flayer mail, .NET,Logo Design, PHP, HTML,HTML5,CSS,JavaScript,Mysql,JOOMLA,wordpress,Graphic Design,Website Design, Android, Sql Server please check my More

$28 USD in 0 days
(6 Reviews)
1.8
zotiger

Hi, Dear sir! I am very interested in your project. Also, I have extensive experience in PHP programming. Please visit my portfolio. I think I will complete your project perfectly. Please let me contact to you a More

$33 USD in 1 day
(2 Reviews)
1.5
mMubXZDKkZgz

Hi we are a team of freelance software developers, if you contact me at our website we can discuss the details of the project. w w w . solver.io

$25 USD in 1 day
(0 Reviews)
0.0
iTechzz

A proposal has not yet been provided

$20 USD in 2 days
(0 Reviews)
0.0
acetech99

Hi AlanJBreeze, We have 40+ skilled web designer & development team, so please give few minutes for technical discussion of your requirement. Waiting for your reply & chance for further discussion.

$30 USD in 3 days
(2 Reviews)
0.0
parasgupta23

Dear Hiring Manager, Kindly consider my interest and enthusiasm for the assignment posted by you. I am a proficient WORDPRESS / MAGENTO / JOOMLA / PHP / MYSQL / DRUPAL / CSS / HTML / HTML5 expert . I am very conf More

$29 USD in 1 day
(0 Reviews)
0.0