nikos101
04-05-2008, 10:47 AM
Huy Guys, I've got a tricky one here! I want all expressions in my code like this
while ($row = mysql_fetch_array($result)) {
$s = $row["Instruction"];
$a[$s] = $s;
}to be turned into this
while ($row = mysql_fetch_array($result)) {
$s = $row["Instruction"];
$t = $row["InstructionID"];
$a[$t] = $s;
}can it be done?
while ($row = mysql_fetch_array($result)) {
$s = $row["Instruction"];
$a[$s] = $s;
}to be turned into this
while ($row = mysql_fetch_array($result)) {
$s = $row["Instruction"];
$t = $row["InstructionID"];
$a[$t] = $s;
}can it be done?