Here is a snippet of my code :
require_once('functions.php');
include('dbinfo.php');
connectdb();
$querys= "SELECT 'score' FROM solve WHERE (problem_id='".$_GET['id']."' AND username='".$_SESSION['username']."')";
$resultscore=mysql_query($querys);
$scorefetch=mysql_fetch_array($resultscore);
$subractscore=$scorefetch['score'];
echo $subractscore;
ideally the output should be the value stored in the score field of the database..but it is prints '
score
' .. where am i wrong in this?Also the the query results only one record at a time.