In the basic & crude code example below,...
$result = mysql_query("se lect * from news, where status = "archived") ;
while($r=mysql_ fetch_array($re sult)) {
// process $result as required
}
}
...it is my understanding that the variable "$result" holds 1 entire row of the content of a database. Firstly, is that statement correct.???
If so, I was wanting to transfer the entire row to an identically structured DB, for the purpose of arhival storage.
What would be an example of code that could transfer whole rows of info to an identically structured DB.
thx
Adrian
$result = mysql_query("se lect * from news, where status = "archived") ;
while($r=mysql_ fetch_array($re sult)) {
// process $result as required
}
}
...it is my understanding that the variable "$result" holds 1 entire row of the content of a database. Firstly, is that statement correct.???
If so, I was wanting to transfer the entire row to an identically structured DB, for the purpose of arhival storage.
What would be an example of code that could transfer whole rows of info to an identically structured DB.
thx
Adrian
Comment