Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1011431
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T09:14:00+00:00 2026-05-16T09:14:00+00:00

Example client put this on their website <script type=text/javascript src=http://domain.com/banner.php?bid=123&affid=88></script> In my banner.php how

  • 0

Example client put this on their website

<script type="text/javascript" src="http://domain.com/banner.php?bid=123&affid=88"></script>

In my banner.php how do I implement it?

I try to get the banner id & affid using $_GET but it’s not working..

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

my banner.php

<?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->rq($select);
$display = $db->fetch($query);

?> 

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

I dunno how to make it work actually.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T09:14:01+00:00Added an answer on May 16, 2026 at 9:14 am

    What you have done is:

    <script type="text/javascript" src="http://domain.com/banner.php?bid=123&affid=88"></script>
    

    So the script at banner.php should send a javascript:
    so enclose your output in `document.write method i.e.

    document.write('<a href="http://domain.com/aff?id=<?php echo $aff_id; ?>"><img src="http://domain.com/images/<?php echo $display["image"]; ?>" height="250" width="250" /></a>');
    

    and send and set the header in php like:

    header("Content-type: text/javascript"); 
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

For example suppose client side I have a JavaScript function function getLocation() { var
I learned an example of usage of sockets. In this example a client sends
This is an example XML file that would come from the Android Client. <test>
I have a wordpress website I'm creating for a client temporarily hosted on http://dev.eatfit.co.nz/
I'm trying to put a script together for a client that needs to be
Trying to follow this example to make it work: http://weblogs.asp.net/kiyoshi/archive/2008/10/08/wcf-using-webhttpbinding-for-rest-services.aspx Here is my App.config
In the example below, if client code using GetPeople wanted to print the name
Can anyone find an example of a simple server/client thing? I'm willing to use
Shell example is below. Basically, I want a client and employee to implement the
What it the best practices with for example Dom scripting on the client and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.