$sth1 = $dbh->query("SELECT `name` FROM `usersSQL`");
$row1 = $sth1->fetchAll();
foreach($row1 as $k=>$v)
{
foreach($v as $k1=>$v1)
{ echo "<pre>";
$sql = file_get_contents($_SERVER['DOCUMENT_ROOT']."/project/$v1.sql");
echo $sql;
echo "</pre>";
}
}
exit;
$sth1 = $dbh->query("SELECT `name` FROM `usersSQL`");
$row1 = $sth1->fetchAll();
print_r($row1);
foreach($row1 as $k=>$v)
{
foreach($v as $k1=>$v1){
print_r($v1);
echo "<pre>";
if(file_exists($_SERVER['DOCUMENT_ROOT']."/project/$v1.sql")){
$sql = file_get_contents($_SERVER['DOCUMENT_ROOT']."/project/$v1.sql");
}
else echo "no file";
echo $sql;
echo "</pre>";
}
}
exit;