Jump to content

dodgeitorelse

Members
  • Posts

    57
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

dodgeitorelse's Achievements

Member

Member (2/5)

0

Reputation

  1. error is in uploader3.php what is in that file on line 2?
  2. Nice idea, however if I uploaded 20 pics and 3 months later wanted a link to one of them how would I go get the link for it? All I see as an option is to get the links from each image and store in a file on my pc somewhere.
  3. no it doesn't but this should work div.Content { background-color:#837a7a; width:90%; height:600px; margin: 0 auto; } and change <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> to <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  4. try this .... div.Content { background-color:#837a7a; width:90%; height:600px; margin: 0px 0px 0px 45px; } the order is top, right, bottom, left
  5. because text align is set to left in the <td> that has David Johnson Photography in it.
  6. not sure if the this is the problem but in the reviews and locate section you have name="home" rather than name="reviews" or name="locate"
  7. all I have is aao://76.73.3.42:1716 aao is a registered protocol on my pc. if I create a shortcut for aa and put it in my desktop, then in the properties for the shortcut I can edit the target which is "C:\Program Files\America's Army\System\ArmyOps.exe" by adding a space then 76.73.3.42:1716 at the end of the target and the shortcut works.
  8. Hi, not sure where to post this. I want to make a custom hyperlink that when clicked will open a game and then will activate the tilde key to open the console. aao:// is the protocol and link will start the game however no matter what I put following does no good. any suggestions?
  9. I think it may be your quote marks. If sql is in single quotes wouldn't .$user_data['username]. be in double quotes? I am just guessing here. And I have a file that does use Get in my query and it works fine.
  10. I think The Little Guy is saying to make a table named "History" with the 3 fields of id, user_id and page. Then when a user go to a page it logs that user with new id so it would be similar to: id user_id page ------------------------------------------ 1 123 6.php 2 123 3.php 3 123 1.php 4 123 2.php 5 234 2.php 6 345 12.html 7 123 15.php 8 123 11.php
  11. Hi I have jquery table sorter for one of my pages. It works fine..... until I start using some variables that are in session. Why does this stop the sort function from working? code for sorter that works .... <head> <title><?php echo "$server_name"; ?> Top Ten Scores</title> <style type="text/css"> A:link {text-decoration: none; color: lime;} A:visited {text-decoration: none; color: blue;} A:active {text-decoration: none; color: white;} A:hover {text-decoration: underline; color: lightgreen;} </style> <script src="js/jquery.js" type="text/javascript"></script> <script src="js/jquery.dataTables.min.js" type="text/javascript"></script> <link href="css/table.css" rel="stylesheet" type="text/css" media="print, projection, screen" /> <script type="text/javascript"> $(document).ready(function () { $("#tablesorter").dataTable({ "bPaginate": false, "bAutoWidth": true, "aaSorting": [[ 0, "Asc" ]], "aoColumns": [ { "bSortable": true }, // disable sorting of first column in table null, null ] }) }); </script> </head> with sessions (this stops table from sorting feature).... <?php session_start(); // Retrieve the URL variables (using PHP). $name = $_GET['name']; $name2 = $_GET['name2']; $name3 = $_GET['name3']; $_SESSION['name'] = $_GET['name']; $_SESSION['name2'] = $_GET['name2']; $_SESSION['name3'] = $_GET['name3']; //rest of code that displays data and table ?>
  12. oh man, what a dumb lookover, thank you for the reply and yes it works :-\
  13. I have an included file that has my table defined as $db_table_name = "19"; and when I put it into my query like $sql = 'select name, score from $db_table_name ORDER BY score desc limit 10'; it doesn't work. How do I put the variable into my query?
  14. ok thank you both, I will give this a try. I will let you know results. Thanks
  15. Hi guys, I have a php file that will go to a site and scrape the data I need. However this site is setup to use pagination so when I try to scrape all the players names I have to do separate queries to search each page. Is there a way to find out by using code how many pages there are and query all the pages at same time? I use this code <?php //first page //turn error reporting on libxml_use_internal_errors(true); //get data from this page $dom = new DOMDocument; $dom->loadHTMLFile('http://www.gametracker.com/server_info/76.73.3.42:1716/top_players/?searchipp=50#search'); $xpath = new DOMXPath($dom); // Get the total player count $rows2 = $xpath->query('//div[@class="block774"]/div'); // Get the rows from the search list $rows = $xpath->query('//table[@class="table_lst table_lst_spn"]/tr'); for ($i=1; $i<$rows->length-1; $i++) { $row = $rows->item($i); // Get the columns for a row $cols = $row->getElementsByTagName('td'); // Get the player rank (1st column) echo 'Rank:'.trim($cols->item(0)->textContent).PHP_EOL; // Get the player name (2nd column) echo 'Name:'.trim($cols->item(1)->textContent).PHP_EOL; // Get the player score (3rd column, actually 4th but number 3 is hidden) echo 'Score:'.trim($cols->item(3)->textContent).PHP_EOL; echo "<br />"; } ?> <?php //secondpage //turn error reporting on libxml_use_internal_errors(true); //get data from this page $dom = new DOMDocument; $dom->loadHTMLFile('http://www.gametracker.com/server_info/76.73.3.42:1716/top_players/?searchipp=50&searchpge=2#search'); $xpath = new DOMXPath($dom); // Get the rows from the search list $rows = $xpath->query('//table[@class="table_lst table_lst_spn"]/tr'); for ($i=1; $i<$rows->length-1; $i++) { $row = $rows->item($i); // Get the columns for a row $cols = $row->getElementsByTagName('td'); // Get the player rank (1st column) echo 'Rank:'.trim($cols->item(0)->textContent).PHP_EOL; // Get the player name (2nd column) echo 'Name:'.trim($cols->item(1)->textContent).PHP_EOL; // Get the player score (3rd column) echo 'Score:'.trim($cols->item(3)->textContent).PHP_EOL; echo "<br />"; } ?> I also have to go to that website first to see how many pages there are so I can have enough queries.
×
×
  • 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.