I just tested giving the <h3> tag a padding of 20 pixels, with the tag set at the top, and it worked fine for me. Here's the exact CSS I used for the tag:
I was previewing a post within the coding section of the forum, and found that the preview box was pushed to the right and expanded my 1024x768 resolution screen.
Thankfully the problem's been solved. Apparently the series page was incorrectly querying the database by using the sql command rather than the query command.
I've used this same database for other areas of my site and the sql works fine. Also, the code is a mix of tutorials and my own creation, so there's not really one site where you may find an example.
I also doubt the coding could get much cleaner, since I've eliminated all I can.
The icon images haven't fully be uploaded yet, so the database is reading empty areas. Also, the size of the images can be read beside the image.
And sure, I can repost the code (slightly modified but still useless to me). If you think a screenshot of the page will help, then it would be great to see one.
The icon navigation:
Code:
<?php mysql_connect(localhost,animara_ham,Alucard666); @mysql_select_db(animara_graphics) or die( "Unable to select database");
$query = "SELECT DISTINCT size, size_id FROM icons WHERE `size`='50x100'"; $result = mysql_query($query);
// page numbering links now $p = 3; // number of links to display per page $lower = $p; // set the lower limit to $p $upper = $screen+$p; // set the upper limit to current page + number of links per page while($upper>$pages){ $p = $p-1; $upper = $screen+$p; } if($p<$lower){ $y = $lower-$p; $to = $screen-$y; while($to<0){ $to++; } }
I'm not sure where you tried the icon links, as I am dealing with an experimental site and not my main site.
And unfortunately, the problem appears to be coming from the iconssize.php page rather than the index page of the icons. The navigation links display the correct size id, but upon entering the iconssize.php page the information displayed is incorrect.
Here's a working example of the problem. When the links in the Icon navigation are clicked, they merely lead to a page repeating the 120x120 icons. However, the '.$size.' field placed in the header of the page (Icons - '.$size.') depicts the correct size.
I'm currently trying to create a php-based website, including in the navigation area, with as few pages as possible. Right now I'm working on the icons database and have run into problems with selecting the correct size of the icon. For example, a visitor is to click the link 50x100 icons, which is then to take them to a new page.
The php code for the navigation:
Code:
<?php mysql_connect(localhost,user,pw); @mysql_select_db(db) or die( "Unable to select database");
$query = "select * from icons WHERE size like '%50x100%' LIMIT 1 "; $result = mysql_query($query);
The visitor is correctly transported to the iconssize page, but the icons shown are incorrect. The page will only show the 120x120 size icons, but if I place the $size_id above the icons in a header, the correct size is shown. I also cannot ORDER the icons, which makes me believe there is a disconnect somewhere in my code. I've tried numerous ways to show the correct icons, but to no avail.
Here's the iconssize.php page (I've removed the pagination for simplification):
Code:
<?php
if (is_numeric($_GET["size_id"])) { $size_id = $_GET["size_id"]; }
mysql_connect(localhost,user,pw); @mysql_select_db(db) or die( "Unable to select database"); $sql="SELECT * FROM `icons` WHERE `size_id` = '$size_id' ORDER BY date desc"; $result = mysql_query( $sql ) or die(mysql_error());
I am also currently looking for an affiliate for my graphics site, and your DX site is quite extraordinary. If you'd like to consider me, my site may be found here for viewing.