altctrldel
Technical User
- Jul 26, 2003
- 30
been fiddling with this for the past 2 hrs;
how do I insert a variable in the field names of the tables I want to get data from.
for example:
change 'ws_id' to '$level_id' <-- obsiously doesn't work
with the red text as the variable name. thank you again. ^^
Code:
while($row = mysql_fetch_array($sql)){
$userid = $row['ws_id'];
$username = $row['ws_username'];
$password = $row['ws_password'];
$ipaddress = $row['ws_ipaddress'];
}
how do I insert a variable in the field names of the tables I want to get data from.
for example:
change 'ws_id' to '$level_id' <-- obsiously doesn't work
with the red text as the variable name. thank you again. ^^