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
https://forums.phpfreaks.com/topic/242166-trying-to-creat-a-advertising-site/
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) . "'>";

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?

 

 

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.