modify php code

This project received 10 bids from talented freelancers with an average bid price of $28 USD.

Get free quotes for a project like this
Employer working
Skills Required
Project Budget
$10 - $30 USD
Total Bids
Project Description

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

Current code is :-

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


$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;

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>";?>

Looking to make some money?

  • Set your budget and the timeframe
  • Outline your proposal
  • Get paid for your work

Hire Freelancers who also bid on this project

    • Forbes
    • The New York Times
    • Time
    • Wall Street Journal
    • Times Online