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';
>
help! stuck and confused
Moderator: General Moderators
- jayshields
- DevNet Resident
- Posts: 1912
- Joined: Mon Aug 22, 2005 12:11 pm
- Location: Leeds/Manchester, England
Re: help! stuck and confused
That is blatantly a homework assignment or something. The most basic knowledge of any sort of programming language would identify the 3 errors.
- Frozenlight777
- Forum Commoner
- Posts: 75
- Joined: Wed May 28, 2008 12:59 pm
Re: help! stuck and confused
were you drunk when you 'tried' writing this? Chances are you won't even respond back
Re: help! stuck and confused
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.