andy10901 Posted July 17, 2011 Share Posted July 17, 2011 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 Quote Link to comment Share on other sites More sharing options...
spiderwell Posted July 17, 2011 Share Posted July 17, 2011 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) . "'>"; Quote Link to comment Share on other sites More sharing options...
andy10901 Posted July 17, 2011 Author Share Posted July 17, 2011 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? Quote Link to comment Share on other sites More sharing options...
andy10901 Posted July 17, 2011 Author Share Posted July 17, 2011 well i made it with a if script http://test.simple-domains.net/click.php?user=cea49ebd897d60abc2627341868362f0&u=343ec78a04c6ea9d80806345d31fd78 leading to facebook Quote Link to comment Share on other sites More sharing options...
TeNDoLLA Posted July 17, 2011 Share Posted July 17, 2011 Why not just use id for the user in the url instead of that kind of monster URL? Quote Link to comment Share on other sites More sharing options...
andy10901 Posted July 17, 2011 Author Share Posted July 17, 2011 hmm good point i could change the u= diffent numbers Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.