Jump to content

trying to creat a advertising site


andy10901

Recommended Posts

hello im trying to make an part of a code so that the image is and the url md5() would this be possable?

 

<a href='$website/click.php?id=$id&user=$user'><img src='$website/img.php?id=$id' width='250' hight='250'/></a>

 

but im worndiring how i can get the image from the php

Link to comment
Share on other sites

the img.php, I would assume it takes the ID and cross refernces to a database to fetch the image either as a BLOB or just  filename, and then outputs the image directly.

 

not sure why you would want to md5() it?, maybe i mis understood that part.

 

you could md5 values in php and have them in the querystring, not sure why you would bother personally, unless I missed something?

 

echo "<a href='$website/click.php?id=$id&user=" . md5($user) . "'>";

Link to comment
Share on other sites

ok when i posted it i forgot to make an echo but it will be going into a textarea box

im a newbie anyway and i like trying to make things work and that. can some one tel me how i can update my mysql thou php/mysql

 

this is what i thought

$qry="UPDATE ad_id FROM id WHERE user='$user' AND ulr='$ulr' SET click+1='click+1'";

is this right or not?

 

 

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.