Spectre1405241486
-
Content Count
4 -
Joined
-
Last visited
Posts posted by Spectre1405241486
-
-
On a completey unreleated note...
Yes you do. Nobody's code is perfect first time, every time. Even the greatest coders in the world run into problems.FFY, I don't make coding errors
-
You could try storing somewhere (in a hidden POST field or as a GET variable, it doesn't matter) the ID of the last entry displayed, and then only display the next 7 entries after that. Note that although you could calculate the next ID by multiplying the 'per_page' value by the current page, that probably wouldn't be a good idea - if a number was skipped at all in the 'id' field, it wouldn't work.
You could try something like this:
$last_id = isset($_GET['id']) && is_numeric($_GET['id']) ? $_GET['id'] : 0;$sql='SELECT id, Game_name, Game_link, Game_image ,Game_from FROM `Games` WHERE id >= ' . $last_id . ' ORDER BY id LIMIT ' . $per_page;...// This is AFTER the while() statement - the current $result array will contain the last entry retrieved$last_id = $result['id'];// Nextif ($page != $num_pages) { echo "<a href=\"index2.php?page=$next_page&id=$last_id\">Next</a>}
-
I'm not a huge fan of Visual Basic, but controlling an SMTP server isn't all that hard. Basically, all you need to do is connect to it, specify the sender and receipient(s), and send the message.
And also, you might want to consider posting this in the Visual Basic forum.
Possible To Do? Reading a remote websites data ..
in Programming
Posted · Report reply
The easiest way would probably be via regular expressions. Alternatively, you could use the strpos() function to locate the beginning and end of the table in question, and then loop through the data contained within (there are some situations in which a regular expression simply won't suffice, no matter how carefully crafted it is).