Posted on 25 April 2011. Tags: amp, array data, Error, error id, hey guys, list, lt, page button, Php, Query, Table, uid
Ok hey guys, thanks for reading this post. now what I am trying to do is simply displaying 10 products from the table and if more than 10 products are shown it will then automatically add a new page with like.. a different ID in the url? Well anything really as long as it will generate the pages dynamically. Below is my current coding.
$data = mysql_query(“SELECT * FROM products;”) or die(mysql_error());
$id = mysql_query(“SELECT ID FROM products;”) or die (mysql_error());
while($info = mysql_fetch_array( $data ))
{
echo ‘
‘;
echo “
“;
echo ‘<a href="?page=products&uid='.$info['ID'].'…
Echo " “;
echo “ |
“;
echo “
“;
Echo “Name: “.$info[‘name’] . “ “;
Echo “Price: “.$info[‘price’] . ”
“;
echo “ |
|
“;
Echo “Please click the image for further info.
“;
echo “ |
“;
}
echo “
”
?>
As the coding shows, it is simply displaying the entire table in the PHP, however the problem is that the table will simply continue for ever, until their is no more products!! If you don’t know how to automatically generate a new page then would it be a good idea to show row 1-10, 11-20, 21-30 in different pages. If so how would this be done? Oops, I forgot to mention that the user will access the next list of products, E.G 11-20 by clicking the next page button.
Is it possible to use a get function to change the ID of the url when next page is clicked? then it will show the 11-20 results depending on the URL? eg products&id=2 therefore showing the next list of products? I am pretty confused hehe!:)
Thanks, your knowledge is appreciated!:)
Posted in Affiliate Marketing 101
Posted on 23 April 2011. Tags: amp, array data, Error, error id, hey guys, list, lt, page button, Query, Table, uid, url
Ok hey guys, thanks for reading this post. now what I am trying to do is simply displaying 10 products from the table and if more than 10 products are shown it will then automatically add a new page with like.. a different ID in the url? Well anything really as long as it will generate the pages dynamically. Below is my current coding.
$data = mysql_query(“SELECT * FROM products;”) or die(mysql_error());
$id = mysql_query(“SELECT ID FROM products;”) or die (mysql_error());
while($info = mysql_fetch_array( $data ))
{
echo ‘
‘;
echo “
“;
echo ‘<a href="?page=products&uid='.$info['ID'].'…
Echo " “;
echo “ |
“;
echo “
“;
Echo “Name: “.$info[‘name’] . “ “;
Echo “Price: “.$info[‘price’] . ”
“;
echo “ |
|
“;
Echo “Please click the image for further info.
“;
echo “ |
“;
}
echo “
”
?>
As the coding shows, it is simply displaying the entire table in the PHP, however the problem is that the table will simply continue for ever, until their is no more products!! If you don’t know how to automatically generate a new page then would it be a good idea to show row 1-10, 11-20, 21-30 in different pages. If so how would this be done? Oops, I forgot to mention that the user will access the next list of products, E.G 11-20 by clicking the next page button.
Is it possible to use a get function to change the ID of the url when next page is clicked? then it will show the 11-20 results depending on the URL? eg products&id=2 therefore showing the next list of products? I am pretty confused hehe!:)
Thanks, your knowledge is appreciated!:)
Posted in Affiliate Marketing 101
Posted on 05 February 2011. Tags: desktop browser, Error, Google, google search, internet explorer, market niche, only viable option, Opera, opera 5, opera browser, outdated internet, phone, text, voice, weird characters
Ok , I ‘ ve got a Imate running Windows Mobile, and I ‘ m getting less and less font of this phone . For voice , text , and basic address book, etc . functions it works fine . But when it comes to Internet, it downright sucks. I ‘ m unable to update to Windows Mobile, which means I ‘ m stuck with the most outdated Internet Explorer mobile browser ever . It ‘ s horrible , slow , and terribly unreliable . So I do a Google search for mobile browsers. The Firefox one only works on some Nokia phone, the SkyFire browser captures all my info on my servers – um, no thanks – I already have enough privacy issues dealing with my Facebook account. So the only viable option is the Opera 10 Mobile browser or the Opera 5 Mini. The Opera 5 Mini doesn ‘ t seem to recognize my keypad correctly – instead of the letters I expected to appear when I begin typing , a bunch of weird characters show up – which basically renders Opera 5 Mini unusable . Opera 10 Mobile on the other hand, is awesome. Here ‘ s my problem – I can only run it successfully right after installing it . As soon as I try to launch it at a later date , I get a dreaded “Opera Failed to Reserve Heap . . . Closing ” error , following which the application shuts down . If I uninstall Opera , restart my phone and re -install it , it will work again; but again – only for a short while . This is driving me crazy !! , How the heck do I get this browser to work ? I Googled the “failed to reserve heap ” error and found virtually nothing on the topic . Strange. Don ‘t people use this browser? Seems to me to be a potential market niche for Opera , especially considering it ‘ s lack of penetration in the desktop browser market .
Posted in Affiliate Marketing 101