modify php code

CLOSED
Bids
10
Avg Bid (USD)
$28
Project Budget (USD)
$10 - $30

Project 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 = "0.00";
$budget = "0.00";

$query = "SELECT sum(plan.amount) 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 required:
PHP
Hire AlanJBreeze
Project posted by:
AlanJBreeze United Kingdom
Verified
Public Clarification Board
Bids are hidden by the project creator. Log in as the employer to view bids or to bid on this project.
You will not be able to bid on this project if you are not qualified in one of the job categories. To see your qualifications click here.


$ 30
in 1 days
Hire mituld
$ 33
in 2 days
$ 15
in 1 days
$ 39
in 1 days
$ 25
in 0 days
$ 28
in 0 days
$ 33
in 1 days
Hire mMubXZDKkZgz
$ 25
in 1 days
Hire iTechzz
$ 20
in 2 days
$ 30
in 3 days