Jump to content

dodgeitorelse3

Members
  • Posts

    266
  • Joined

  • Last visited

  • Days Won

    5

Everything posted by dodgeitorelse3

  1. This tip is taken from https://www.php.net/manual/en/function.split.php Tip split() is deprecated as of PHP 5.3.0. preg_split() is the suggested alternative to this function. If you don't require the power of regular expressions, it is faster to use explode(), which doesn't incur the overhead of the regular expression engine.
  2. your table header also has an extra <th> before user name
  3. With the given information I would guess that you need to make sure the survey script has been written to verify that the fields are filled.
  4. what do the curly brackets before and after header go to?
  5. is there supposed to be a comma at the end of 'kudokey' => $kudokey, ?
  6. I am guessing OP's original post had the html part of code in an .html file and the php code was what he had in his form action file
  7. I don't know what code is in test_time.php so I get an error that that page is not found. When I remove the form action page and leave it blank it seems to work for me and it seems to be starting the time when page loads. This was tested on my linux server.
  8. use single quotes around your variables in your where clause
  9. check your path to the file. I used your code with my path and got <?php $string = file_get_contents('found.txt'); $found = 'found'; if($string == $found){ echo "string match"; } else { echo "string does not match found"; } echo "<br>"; echo "value of string: $string"; echo "<br>"; echo "value of found: $found"; ?> and displays string match value of string: found value of found: found
  10. I have a page that contains an iframe. The page that loads into the iframe is called scan.php which scans a directory for any files or subfolders. I have learned how to turn off buffering so that as each item is returned it displays on the page in the iframe. Is there a way to keep the page scrolled to the bottom as each item is returned?
  11. querying game servers is sort of tricky. One reason is due to the games changing engines which then makes any code you have not work right or at all. For a reference as how to accomplish the task go to http://www.greycube.com/site/download.php?view.56 look into lgsl/lgsl_files/lgsl_class.php as well as lgsl/lgsl_files/lgsl_protocol.php some of the queries are outdated due to engine changes for some games and some other games have been added that were not included in the download file but just search forums, you will find all the answers there. good luck
  12. i forgot to say that simple_html_dom.php is included at the begining of the code above and that simple_html_dom.php resides in same folder as the html file and the php file
  13. Hi all, I have a html file on my server so it is a local file. I would like to get the value of every second <td> in each <tr> as I said it is a local html file and is written as <table border="1" style="font-size:90%; text-align:center; margin: 5px;"> <tr> <th>Song title</th> <th>Artist</th> <th>Decade</th> <th>Genre</th> <th>Single / Pack name</th> <th>Release date</th> <th>Family Friendly</th> <th>Additional <i>Rock Band 3</i> Features</th> </tr> <tr><td>"<a href="http://en.wikipedia.org/wiki/Fortunate_Son" title="Fortunate Son">Fortunate Son</a>"<sup id="cite_ref-cover_14-0" class="reference"><a href="#cite_note-cover-14"><span>[</span>a<span>]</span></a></sup></td> <td><a href="http://en.wikipedia.org/wiki/Creedence_Clearwater_Revival" title="Creedence Clearwater Revival">Creedence Clearwater Revival</a></td> <td>1969</td> <td>Southern Rock</td> <td><span style="display:none" class="sortkey">... !</span><span class="sorttext">Single</span></td> <td><span style="display:none" class="sortkey">2007-11-20 !</span><span class="sorttext">Nov. 20, 2007</span></td> <td style="background: #90ff90; color: black; vertical-align: middle; text-align: center;" class="table-yes">Yes</td> <td style="background:#ff9090; color:black; vertical-align: middle; text-align: center;" class="table-no">None</td> </tr> <tr><td>"<a href="http://en.wikipedia.org/wiki/Juke_Box_Hero" title="Juke Box Hero">Juke Box Hero</a>"<sup id="cite_ref-cover_14-1" class="reference"><a href="#cite_note-cover-14"><span>[</span>a<span>]</span></a></sup></td> <td><a href="http://en.wikipedia.org/wiki/Foreigner_(band)" title="Foreigner (band)">Foreigner</a></td> <td>1981</td> <td>Classic Rock</td> <td><span style="display:none" class="sortkey">... !</span><span class="sorttext">Single</span></td> <td><span style="display:none" class="sortkey">2007-11-20 !</span><span class="sorttext">Nov. 20, 2007</span></td> <td style="background: #90ff90; color: black; vertical-align: middle; text-align: center;" class="table-yes">Yes</td> <td style="background:#ff9090; color:black; vertical-align: middle; text-align: center;" class="table-no">None</td> </tr> <tr><td>"<a href="http://en.wikipedia.org/wiki/Get_It_On_(T._Rex_song)" title="Get It On (T. Rex song)">Bang a Gong</a>"<sup id="cite_ref-cover_14-2" class="reference"><a href="#cite_note-cover-14"><span>[</span>a<span>]</span></a></sup><sup id="cite_ref-scheduled_to_be_removed_august_15-0" class="reference"><a href="#cite_note-scheduled_to_be_removed_august-15"><span>[</span>b<span>]</span></a></sup></td> <td><a href="http://en.wikipedia.org/wiki/T._Rex_(band)" title="T. Rex (band)">T. Rex</a></td> <td>1971</td> <td>Glam</td> <td><span style="display:none" class="sortkey">... !</span><span class="sorttext">Single</span></td> <td><span style="display:none" class="sortkey">2007-11-20 !</span><span class="sorttext">Nov. 20, 2007</span></td> <td style="background:#ff9090; color:black; vertical-align: middle; text-align: center;" class="table-no">No</td> <td style="background:#ff9090; color:black; vertical-align: middle; text-align: center;" class="table-no">None</td> </tr> <tr><td>"<a href="http://en.wikipedia.org/wiki/My_Sharona" title="My Sharona">My Sharona</a>"<sup id="cite_ref-cover_14-3" class="reference"><a href="#cite_note-cover-14"><span>[</span>a<span>]</span></a></sup></td> <td><span style="display:none" class="sortkey">Knack !</span><span class="sorttext"><a href="http://en.wikipedia.org/wiki/The_Knack" title="The Knack">The Knack</a></span></td> <td>1979</td> <td>Pop-Rock</td> <td><span style="display:none" class="sortkey">... !</span><span class="sorttext">Single</span></td> <td><span style="display:none" class="sortkey">2007-11-20 !</span><span class="sorttext">Nov. 20, 2007</span></td> <td style="background:#ff9090; color:black; vertical-align: middle; text-align: center;" class="table-no">No</td> <td style="background: #FFB; color: black; vertical-align: middle; text-align: center;" class="partial table-partial">Pro Guitar/Bass</td> </tr> <tr><td>"<a href="http://en.wikipedia.org/wiki/Cherry_Bomb_(song)" title="Cherry Bomb (song)">Cherry Bomb</a>"<sup id="cite_ref-cover_14-4" class="reference"><a href="#cite_note-cover-14"><span>[</span>a<span>]</span></a></sup></td> <td><span style="display:none" class="sortkey">Runaways !</span><span class="sorttext"><a href="http://en.wikipedia.org/wiki/The_Runaways" title="The Runaways">The Runaways</a></span></td> <td>1976</td> <td>Punk</td> <td><span style="display:none" class="sortkey">... !</span><span class="sorttext">Single</span></td> <td><span style="display:none" class="sortkey">2007-11-20 !</span><span class="sorttext">Nov. 20, 2007</span></td> <td style="background:#ff9090; color:black; vertical-align: middle; text-align: center;" class="table-no">No</td> <td style="background:#ff9090; color:black; vertical-align: middle; text-align: center;" class="table-no">None</td> </tr> goes on for another 1100 <tr>'s ......................................... I tried <?php $url = "rb3_list.html"; $html = new simple_html_dom(); $html = file_get_html($url); foreach($html->find('table tr') as $row) { $cell = $row->find('td', 1); echo $cell; } ?> but all I get is a blank page.
  14. I searched everywhere and found nothing for an acceptable answer for me except to use javascript or jquery. After days of trying to sort it out I found a very simple solution that worked for me. I simply removed the iframe from the div and used the object such as <div class='showchevy'> {$server['s']['map']} <div style='float:left;' class='showchevy_1'> <object type='text/html' data='/maps/php/map_dload2.php?map={$server['s']['map']}' style='width:100%; height:100%' border='0'> </object> </div> </div> I hope this helps folks save a lot of research time.
  15. ok i lost the iframe and found a better way to load an external page into my div and yay it works, no java or jquery.
  16. what I see happening in IE10 is that when I have the mose over the text in <div class"showchevy it shows the hidden div and it's contents. If I put the tip of the mouse pointer to the very bottom edge of the text the hidden file will repeatedly hide and show. So this tells me that I need to somehow make the <iframe> the are that has the focus. As the code is now when I try to move mouse into the iframe it hides again because of moving cursor from text. Any suggestions?
  17. maybe this is clearer? <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html> <head> <style type="text/css"> .voip tr td .showchevy_1{ display: none; } .voip tr td .showchevy:hover .showchevy_1{ position: relative; display : block; } </style> </head> <body STYLE="background-color:transparent"> <?php echo "<table class='voip' cellpadding='0' cellspacing='0' style='width:10%; margin:auto; text-align:center'> <tr> <td title='Server ip and port---' style='padding:0px; text-align:center'> <div class='showchevy'>In firefox I can click the link below but in IE10 I can't ..... <div class='showchevy_1'> <iframe id='svr_lnk' class='svr_lnk' scrolling='no' marginwidth='0' marginheight='0' frameborder='0' vspace='0' hspace='0' style='overflow:visible;' src='http://chevys-place.nl/gsreaders/lgsl/lgsl_files/svr_shortcuts/chevy_svr_1.html'> </iframe> </div> </div> </td> </tr> </table>"; ?> </body> </html>
  18. I have a webpage that has a hidden div that will show when hovered. When I hover it, I can see the hidden div which contains an iframe. My porblem is no matter what I try I can't get the mouse to move into the block showing the iframe where there is a link. Once I move off the div to go to the iframe it disappears again. Can any one help me sort this? it works fine in firefox. <div class='showchevy'> {$server['s']['map']} <div style='float:left;' class='showchevy_1'> <iframe id='mapdl' class='mapd' scrolling='no' marginwidth='0' marginheight='0' frameborder='0' vspace='0' hspace='0' style='overflow:visible; width:100%;' src='/maps/php/map_dload2.php?map={$server['s']['map']}'> </iframe> </div></div> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html> <head> <meta http-equiv="refresh" content="165" > <style type="text/css"> .voip tr td .showchevy_1{ display: none; } .voip tr td .showchevy:hover .showchevy_1{ position: relative; display : block; }
  19. as well as the version which is mysql 5.0.7
  20. forgot to add the following counters Table comments: VIEW Field Type Null Default Comments filename varchar(255) No stats int(11) No maps_view Table comments: VIEW Field Type Null Default Comments id int(100) No 0 name varchar(200) No as for things I have tried so far ..... none I am asking for guidance for where to start, not for someone to write the code for me.
  21. I have 2 separate tables both hosted in different database on same host. The first table is in "aa" database and is called "maps" and has "id" and "name" for columns (there are several more columns that I am not using for this situation nor are they named same as any columns in table 2). This table contains the name of our maps that are available for downloads (the dload links are in a column in this db named "content"). the map names in the "name" column are for example KitchenWar. The second table is in "counts" database and is called "downloads" contains columns named "filename" and "stats" (these are the only 2 columns in this table). This database is for keeping count of the number of downloads from first table which is done via a file called downloads.php. The map names in the "filename" column are for example maps/KitchenWar.aao What I have is a webpage that holds a table that contains all the data from table "maps" and the last row of the table has a column labeled dl's which I want to hold the "stats" from table named "maps" that matches the "name" from "maps" table. My question is this ..... how do I go about trying to compare "name" column to "filename" column and then show the "stats" that match? exaples of db tables ... table "maps" id name --------------------------------------------------------- Auto increment KitchenWar table "downloads" filename stats --------------------------------------------------------- maps/KitchenWar.aao 64
  22. try mysql_query("SELECT * FROM species WHERE commonName='".$commonName."'") or die(mysql_error());
×
×
  • 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.