I'm pretty new to php but have used ASP for quite a while. I'm trying to do the following:
$strSQL="SELECT * FROM table";
$RS = mysql_query($strSQL);
while ($value = mysql_fetch_array($RS))
$intId = $value[id];
$strName = $value["name"];
I am trying to populate the variables $intId, $strName etc so I can use these further down the page but the values are not populated into the variables.. can you do this with php?
thanks
$strSQL="SELECT * FROM table";
$RS = mysql_query($strSQL);
while ($value = mysql_fetch_array($RS))
$intId = $value[id];
$strName = $value["name"];
I am trying to populate the variables $intId, $strName etc so I can use these further down the page but the values are not populated into the variables.. can you do this with php?
thanks