Page 1 of 1

help! stuck and confused

Posted: Wed Jul 09, 2008 10:28 am
by raj___
hey guys i'm having a problem identifying three errors in this php code can anybody help? thanks in advance


<?php (in bold)
/* This program


*/

$username = 'bob' //
$weight_lbs = 140;

print 'convert your weight'; //

$weight_kgs = ($weight_lbs / 2.2 ;


print 'bob your weight in kilograms is 60kgs';
>

Re: help! stuck and confused

Posted: Wed Jul 09, 2008 12:20 pm
by jayshields
That is blatantly a homework assignment or something. The most basic knowledge of any sort of programming language would identify the 3 errors.

Re: help! stuck and confused

Posted: Wed Jul 09, 2008 2:25 pm
by Frozenlight777
were you drunk when you 'tried' writing this? Chances are you won't even respond back

Re: help! stuck and confused

Posted: Wed Jul 09, 2008 5:28 pm
by Benjamin
Yeah this is a weird one. There are numerous errors. Nothing that isn't blatantly noticeable with a decent editor... or without one for that matter.