Jump to content

bob2588

Members
  • Posts

    72
  • Joined

  • Last visited

    Never

Everything posted by bob2588

  1. <?php include'db.php'; $session= $_SESSION['username']; $query="SELECT * FROM login_ip WHERE login='$session'"; $result= mysql_query($query); $count= mysql_num_rows($result); //$close = die($query); $min= $count - 1; $find= mysql_query("SELECT * FROM login_ip WHERE login= '$session' & times='$min'")or die(mysql_error()); while($row = mysql_fetch_assoc($find)) { $lip=$row['ipaddress']; echo" <br>$min<br>$count"; } ?> i worte the code above to pull the last ip address that a user has login form it is finding the ip adress but it is displaying like this 72.145.25.457 72.145.25.457 72.145.25.457 72.145.25.457 72.145.25.457 so i remove the $lip form the echo and place $min and $count in there and i am getting 1 2 1 2 1 2 1 2 Can some one please enplane why i am getting this problem thank you
  2. http://www.sambob.info/phpfreaks/table.htm the above link is an example of an html table i am trying to pull data out of i need help on starting a code the will pull that first and last name out of that table so in this case i need it to pull out John doe does any one have any idea on how to do this thank you for your help Bob
  3. Screen Scraping
  4. i am looking for a way to write a php script to pull information from a html table and put that information in to the databases does any one have any idea who to do this
  5. thanks i just could not figure that out for some reason
  6. i need a little help with the code below with the file name at the end file_put_contents('/home/sambobi/public_html/bob/b_images/$id.jpg', $content); the variable $id id not working :/
  7. i am build am url image uploader he only problem i am having is take the url form the forum and placeing it in this code $content = file_get_contents('$img '); file_put_contents('/home/sambobi/public_html/bob/b_images/$id.jpg', $content); the variable $img is the url variable and the $id is random numbers and letter but both parts of this wont works can any one help
×
×
  • 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.