Jump to content

FarrisFahad

Members
  • Posts

    7
  • Joined

  • Last visited

FarrisFahad's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. After researching I have found that I just needed to add the overflow property to the container and set it's value to auto ... I did it like this ... #LatestFunnyPicturesLOut{ width:1080px; height:auto; background-color:rgba(255,0,0,0.30); margin:auto; padding:10px; overflow:auto; } #LatestFunnyPicturesLIn{ width:1060px; height:auto; background-color:#FFF; padding:10px; overflow:auto; } #PicturesBox{ width:800px; height:1500px; float:left; } Hope that this helps anyone in trouble peace out
  2. Hi Jessica, Thank you for your replay, It worked when I removed the floating property, I think that I got it but not quite well, can you give me an example code. That would be helpful, thank you. I'll be waiting for your replay ... FarrisFahad
  3. Hi, I have a problem with the divs, when I set them to auto height they don't stretch with the content inside them, (another divs) Check out the code below ... #LatestFunnyPicturesLOut{ width:1080px; height:auto; background-color:rgba(255,0,0,0.30); margin:auto; padding:10px; } #LatestFunnyPicturesLIn{ width:1060px; height:auto; background-color:#FFF; padding:10px; } #PicturesBox{ width:800px; height:1500px; float:left; } HTML ... <div id="LatestFunnyPicturesLOut"> <div id="LatestFunnyPicturesLIn"> <div id="PicturesBox"></div> </div> </div>
  4. Hi, here is how I did it, the below is the like button: <?php if(!isset($_SESSION["punch_id_" . $fetch["punch_id"]])){ ?><a href="Like.php">Like</a><?php }else{ echo NULL; } ?> And here is the like.php file: <?php require_once("connection.php"); $id = $_GET["id"]; mysql_query("UPDATE table SET likes = likes + 1 WHERE id = {$id}"); $_SESSION["punch_id_" . $punch_id] = "punch_id_" . $punch_id; header("Location: ../PicturePunches.php"); exit; ?> I hope that helps
  5. Solved it, I just had to make the $_SESSION["punch_id_" . $fetch["punch_id"]; ] = "punch_id_" . $fetch["punch_id"];
  6. Hello there members of PHP Freaks, I am having a problem in PHP, I want to make the user like a picture and after he likes it the like button goes away. I tried this, <?php if(!isset($_SESSION["punch_id_" . $fetch["punch_id"]])){<a href="Like.php">Like</a>} ?> and I also have tried, <?php if($_SESSION["punch_id_" . $fetch["punch_id"]] == "punch_id_" . $fetch["punch_id"]){<a href="Like.php">Like</a>} ?> So my question is ... How can I make the like button disappear after the user have clicked it? useing $_SESSION[].
  7. My name is Farris, I am 24 years old guy who lives in Saudi Arabia, Riyadh. I have started learning PHP two years ago, I am getting comfortable with the language and I want to learn more. Since 2011 my biggest project ever using PHP is my latest work PicturePunches you can see it at: http://www.picturepunches.net I love computer games, I play, C&C Generals, COD Black Ops, SimCity, Red Alert, and Commandos 2, and 3. I like spending my time coding websites. I would love to code for money but I haven't done it yet. Regards FarrisFahad
  8. Hello guys ... I would like to know if there are any functions that can access the scanner connected to a computer. I would like to scan files and upload it to a computer and then view it in PDF. if you know how please share your knowledge Thanks in Advance FarrisFahad
×
×
  • 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.