I have a php script below that I am hoping would return all the values of a sql table. It does do this but also returns a number and value after each of the expected lines
$condition = "usernames = '$user' AND password = '$pass' ";
$result = mysql_query("SELECT * FROM userbase WHERE $condition") ;
$row = mysql_fetch_array($result) ;
foreach ($row as $k => $v) {
echo "$k / $v <br>";
};
?>
The results look like this
0 / Mick Lathrope
name / Mick Lathrope
1 / op
jobtitle / op
2 / 07998 783 989
phone / 07998 783 989
3 / mwl707
usernames / mwl707
4 / testpass
password / testpass
All the data is there that i need But why am I also getting a number list ?
Any help please ?