Answer the question
In order to leave comments, you need to log in
How to display all values of a column from access php?
I try to do so
$conn_lom = odbc_connect("Driver={Microsoft Access Driver (*.mdb)};Dbq=$patch_lom", '', '');
$table_lom="SELECT * FROM teh";
$run_lom=odbc_exec($conn_lom,$table_lom);
if (!$run_lom)
{exit("Error in SQL");}
while (odbc_fetch_row($run_lom))
{
$id=odbc_result($run_lom,"id");
$Kr=odbc_result($run_lom,"Kr");
}
echo $id;
echo $Kr;
odbc_close($conn_lom);
@mysql_connect("$address", "$user", "$password");
@mysql_select_db("$base_mysql");
$query = "INSERT INTO $table(id, Kr)
VALUES('$id', '$Kr')";
mysql_query($query);
mysql_close();
Answer the question
In order to leave comments, you need to log in
Add echo to the body of the loop
while (odbc_fetch_row($run_lom))
{
$id=odbc_result($run_lom,"id");
$Kr=odbc_result($run_lom,"Kr");
echo $id;
echo $Kr;
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question