i have been trying this script from morninig and i didn know why it doesnt work?
i have it working in smarty but when i try to take the same code and put it in one php file it never works

the database works,as i enter the add link or image in to the city tables as id's
for example Paris has (1|2|3|4)
and this is the id's of the banner added in another table
this is the code
PHP Code:

$query="select * from vz_cities_tbl  where VCI_ID='".$city."'";

$topBanners as $topBanner)
$query="select VB_File,VB_Link,VB_Type from vz_banner_tbl where VB_ID='".$topBanner."'";
$tempImg='<img src="admin/uploaded_files/banner/'.$row['VB_File'].'" border="0" />';
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<link href="css/main.css" rel="stylesheet" type="text/css" />

<script type="text/javascript">
    var t;

    var totalSlides=slides.length;

    var currentSlide=-1;

    function changeSlide()
    function callSlideFns()

<body onload="callSlideFns()">

<div id="topBanner"></div>