Hi ,
I forgot to tell you one thing .
Add this two lines at the end of the mmy.php page (before the closing php tags.)
$smarty->assign("location", $location);
func_display("customer/home.tpl",$smarty);
Quote:
Originally Posted by AMMoyer
This is the php file as it is now. The page still goes white and stays at ...xcart/mmy.php Is there some sort of conflict between the two $smarty->assign statements at the end? I am trying to pass the array from $rowMake into smarty and the back to mmy.tpl Thanks again.
Adam
Code:
<?php
require "./auth.php";
$year = $_POST['year2'];
///////////////////////////////////////////////// make query for dropdown
$query = sprintf("SELECT DISTINCT makeid, makename FROM iemmy WHERE yearid='$year'");
$result = @mysql_query($query);
$rowMake = mysql_fetch_array($result);
/////////////////////////////////////////////////
//do {
//echo $rowMake['makeid'];
//echo $rowMake['makename']."<br>";
//}while ($rowMake = mysql_fetch_array($result));
if (mysql_num_rows ($result) >= 1)
{
$makeid = array();
while ($rows = mysql_fetch_array ($result, MYSQL_ASSOC)) array_push ($makeid, $rows);
$smarty->assign("makeid", $makeid);
}
$smarty->assign("main", "iesearch");
?>
|