br /><b>Notice</b>: Undefined variable: RewardPicURL in
[code=php][code=php][code=php]
This is my error
[code=php]<b>E:\wamp\www\admin\editreward.php</b> on line <b>53</b><br />
THis is my code where i echo it
<label class="Font_11Arial_Black">Reward Pic URL:<br/><input class="Font_11Arial_Black" type="text" value="<?php echo $RewardPicURL; ?>" name="RewardPictureURL" size="100"></label><br/>
here is some earlier code to get this result.
$connection = odbc_connect("Driver={Microsoft Access Driver (*.mdb)};Dbq=E:\wamp\www\database\staff.mdb","","") or die ("Sorry I could not open the database.");
$query = "SELECT * FROM StaffRewards WHERE ID = $RewardID";
$result = odbc_exec($connection, $query);
while(odbc_fetch_row($result)){
$RewardPictureURL = odbc_result($result,5);
}
HOw can I fix this??