How to make a banner code in javascript and php
<p>Example client put this on their website</p>

<pre><code>&lt;script type="text/javascript" src="http://domain.com/banner.php?bid=123&amp;affid=88"&gt;&lt;/script&gt;
</code></pre>

<p>In my <code>banner.php</code> how do I implement it?</p>

<p>I try to get the banner id &amp; affid using <code>$_GET</code> but it's not working.. </p>

<p>Let me know the clue how to display the banner on my client site using this way.</p>

<p>my banner.php</p>

<pre><code>&lt;?php
define('X', true);
include_once('includes/connection.php');

$banner_id = intval($_GET['bid']);
$aff_id = intval($_GET['affid']);

$select = 'SELECT images FROM affbanners WHERE id='.$banner_id;
$query  = $db-&gt;rq($select);
$display = $db-&gt;fetch($query);

?&gt; 

 &lt;a href="http://domain.com/aff?id=&lt;?php echo $aff_id; ?&gt;"&gt;&lt;img src="http://domain.com/images/&lt;?php echo $display['images']; ?&gt;" height="250" width="250" /&gt;&lt;/a&gt;
</code></pre>

<p>I dunno how to make it work actually.</p>
