I really don't know what I am doing but my avatars are taking much space at the content area! see here http://wag.folieadeux.org/avatarsbase.php you see right? And what code I should input? This is the entire coding of avatarsbase.php
Code:
<!--- disable rightclick ---> <script language=JavaScript> var message=""; function clickIE() {if (document.all) {(message);return false;}} function clickNS(e) {if (document.layers||(document.getElementById&&!document.all)) { if (e.which==2||e.which==3) {(message);return false;}}} if (document.layers) {document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;} else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;}
</script> <? include ('connection.php'); include('header.php'); echo "<table width=93% align=center> <tr> <td valign=top class=borderz><div align=center><strong>-» {Avatars} «- : -» {Special and Anime} «- </strong></div></td> </tr> <tr> <td class=borderx>Hello, You are in avatar section. Please click each image you want to download and a popup window will appear =) please <a href=report.php>inform me</a> if there is anything error. Or you can <a href=donate.php>donate avatars.</a></td> </tr> </table>"; $query = "select * from `avatars` order by id desc"; $result= mysql_query($query, $connection) or die ("Could not execute query : $query." . mysql_error()); // dynamic navigation variables $screen = $_GET['screen']; $PHP_SELF = $_SERVER['PHP_SELF'];
How can I make avatar's page style like Ivy's? T__T I am really bad at coding especially PHP >< and one more, the pagination.. why it comes to the next line too? Please, help me!
<?php include ('connection.php'); $query = "select * from `layouts` where category='$category' order by id desc"; $result= mysql_query($query, $connection) or die ("Could not execute query : $query." . mysql_error()); // Start paging variables $screen = $_GET['screen']; $PHP_SELF = $_SERVER['PHP_SELF']; $rows_per_page=10; // number of records per page $total_records=mysql_num_rows($result); $pages = ceil($total_records / $rows_per_page); // calculate number of pages required
if (!isset($screen)) $screen=0; $start = $screen * $rows_per_page; // determine start record $q .= "LIMIT $start, $rows_per_page"; $result= mysql_query($q) or die ("Could not execute query : $q." . mysql_error()); while ($row=mysql_fetch_array($result)) { $id=$row["id"]; $name=$row["name"]; $date=$row["date"] $artist=$row["artist"]; $artisturl=$row["artisturl"]; $series=$row["series"]; $category=$row["category"]; $previewimage=$row["previewimage"]; $download=$row["download"]; $viewhtml=$row["viewhtml"];
Yeah I've tried before but that tutorial is still unclear to me. Snow didn't tell how to displaying the numbers. You know about the fastlclick right? We have to insert a javascript to display how many times the link has been clicked.
And now my question is "how can I display the counter?" is it the same as fastclick? I still don't understand much about mysql T__T please explain me T__T