• Help
  • Search
  • Login
  • Register
  • Home

Forum: web design and graphics community

  Show Posts
Pages: [1] 2
1  Web Development / Coding / Need help on Table Layout (The Navigation Box) on: August 09, 2008, 01:27:50 AM
Hey there! Lately, I have been having quite some trouble coding this newly designed layout of mine. The main problem is the navigation box. I have never attempted to design/code this type of layout before. So, that's why I need a whole lot of help for this troublesome piece -.-"

Anyways, THIS is what I am talking about: (look at the preview at the bottom)

http://i43.photobucket.com/albums/e393/ep_designs/Miscellaneous/screen_epdesigns.jpg

That is just ONLY the preview of the whole layout. There's also the footer that comes with it too. But it won;t actually fit in the screen shot. So yeah, it has been cut out of the image. All in all, if anyone thinks that they can code this layout for me, please tell me asap so that I can send you the whole entire layout. Thnx! =]

I WILL certainly credit you know matter what :D
2  Web Development / Coding / Help w/ PHP Codings III on: July 28, 2008, 11:07:17 PM
Hello, I have another help request to ask from you guys. You can probably guess what it is already. Correct, it is basically about my lack of knowledge of PHP coding. =.=" So that's why, I am asking for you guys to help me here :D Ok, enough of my babbling, let me state my problem. From what I've been doing lately with my PHP code, it's not working out well at all. Well, it is for the most part, but I just have one minor help question to it.

That is this part in the page: Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /mounted-storage/home19a/sub001/sc19346-CVUA/subdomain/crystal-phoenix/download/wall2.php on line 17

- I don't understand/can't fix this part after five attempts of changing the code around -.-

If you can help me, that'll be great! Thanks a bunch~!!! <3
The link is provided if you need to view my page:

Here's the code, I'm sure it will be handy: http://crystal-phoenix.reiku.org/download/wall2.php?id=12

Code:
<?php

// Connection
$hostname='connect'; 
$user='user'; 
$pass='pass'; 
$dbase='database'; 

$connection = mysql_connect("$hostname" , "$user" , "$pass") or die ("Can't connect to MySQL");
$db = mysql_select_db($dbase , $connection) or die ("Can't select database.");

$q="SELECT * from wallpapers where id='$id'";
$result= mysql_query($q) or die
(
"Could not execute query : $q." . mysql_error());

//Display data from table
while ($row=mysql_fetch_array($result))
{
$id=$row["id"];
$title=$row["title"];
$series=$row["series"];
$dem2=$row["dem2"];
$wall2=$row["wall2"];
$wall2counter=$row["wall2counter"];

$q="update wallpapers set wall2counter=wall2counter+1 where id='$id'"; /
$result= mysql_query($q) or die
(
"Could not execute query : $q." . mysql_error());

}

?>


<html>
<head>
<title>+ Crystal Phoenix Designs + | Download Wallpaper</title>
<link href="down.css" rel="stylesheet" type="text/css">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<meta http-equiv="imagetoolbar" content="false" />
</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">

<div class="rights" style="background-color: #c99975; height:52px;">

<a href="http://crystal-phoenix.org/" target=_top><img src="http://i272.photobucket.com/albums/jj167/cpdesigns/Miscelleneous/wall_prev-1.jpg" border="0" align="left"></a>

<center><table border="0" width="100%" cellspacing="0" cellpadding="0"><tr><td>
<font size="-1"><b>Title:</b> <?php echo "$title"; ?> |
<b>Series:</b> <?php echo "$series"; ?> |
<b>Demensions:</b> <?php echo "$dem2"; ?> |
<b>Downloads:</b> <?php echo "$wall2counter"; ?>
<br>
<small>You are now currently veiwing the wallpaper, <?php echo "$title"; ?>, at Crystal Phoenix Designs. Feel free to download the artwork below. <br> Please read the <a href="http://crystal-phoenix.reiku.org/siteterms.php" target=_top>Terms of Use</a>. This wallpaper is &copy; to it's original owner. <i>*All Rights Reserved</i>

</small></font></td></tr></table>
</center>
</div>

<div>

<center><img src="<?php echo "$wall2"; ?>" title="ID: Wall <?php echo "$id"; ?>" alt="ID: <?php echo "$dem2"; ?> Wall <?php echo "$id"; ?>" class="border"></center>

</div>

</div>


</body>
</html>

3  Web Development / Coding / Re: Help w/ PHP Codings II on: July 16, 2008, 10:03:43 PM
Sweet, I got my problem fixed :D
Thank you so much for your help ~   Embarrassed
4  Web Development / Coding / Re: Help w/ PHP Codings II on: July 16, 2008, 06:44:41 PM
 Smiley Alright! Awesome! I got that out of the way now.
However, the page disappeared and a new problem came up.
It's only about my MYSQL thing. (which I can not fix) So I need help now ^^"
Anyways, here is the problem I have.

It says: Could not execute query : LIMIT 0, 20.You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 0, 20' at line 1

I looked back at my PHP code and couldn;t find the problem=/
I still have the page if you want to visit and have a look.  http://crystal-phoenix.reiku.org/linksout.php
I'll re-paste my code here for you to look at.

Code:
<html>
<head>
<title>+ Crystal Phoenix Designs + Ver. 2</title>
<link rel="stylesheet" type="text/css" href="style.css">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="keywords" content="crsytal phoenix dsigns, graphic site, graphic designs, graphic, designs, png, wallpapers, textures, burushes, avatars, anime, manga, resources, tutorials, html, php, photoshop, ">
<meta name="description" content="An anime graphic site that provides you with many graphical resources that will help on the road to the world og digital arts and designingings.">
<META HTTP-EQUIV="imagetoolbar" CONTENT="no">

<link rel="shortcut icon" href="favicon.ico" >

</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">

<!-- Crystal Phoenix Designs is [c] to Aiko Sakuraba. All Rightes Reserved 2008 -->

<center>
<table id="Table_01" width="851" height="600" border="0" cellpadding="0" cellspacing="0">
<tr>
<td colspan="5">
<img src="cpd_v2/01.jpg" width="851" height="81" alt=""></td>
</tr>
<tr>
<td colspan="5">
<img src="cpd_v2/02.jpg" width="851" height="82" alt=""></td>
</tr>
<tr>
<td colspan="5">
<img src="cpd_v2/03.jpg" width="851" height="81" alt=""></td>
</tr>
<tr>
<td colspan="5">
<img src="cpd_v2/04.jpg" width="851" height="82" alt=""></td>
</tr>
<tr>
<td colspan="5">
<img src="cpd_v2/05.jpg" width="851" height="81" alt=""></td>
</tr>
<tr>
<td background="cpd_v2/06.gif" width="75" height="91" alt=""></td>
<td background="cpd_v2/07.gif" width="177" height="100%" valign="top" alt="">


<!-- BEGIN SITE NAVIAGTIONS -->

<div id="menu">

<div class="navhead">Main Index</div>
<table cellspacing="2" cellpadding="0" border="0" class="menu" width="100%"><tr>
<td width="100%"><a href="index.php">+ Home</a>
</td></tr><tr>
<td width="100%"><a href="site.php">+ About</a>
</td></tr><tr>
<td width="100%"><a href="staff.php">+ Staff</a>
</td></tr><tr>
<td width="100%"><a href="faq.php">+ F.A.Q.</a>
</td></tr><tr>
<td width="100%"><a href="archives.php">+ Archives</a>
</td></tr><tr>
<td width="100%"><a href="pastversions.php">+ Past Versions</a>
</td></tr><tr>
<td width="100%"><a href="awards.php">+ Awards Received</a>
</td></tr><tr>
<td width="100%"><a href="terms.php">+ Terms of Usage</a>
</td></tr></table>


<div class="navhead">Site Related</div>
<table cellspacing="2" cellpadding="0" border="0" class="menu" width="100%"><tr>
<td width="100%"><a href="linkcpd.php">+ Link In</a>
</td></tr><tr>
<td width="100%"><a href="linksout.php">+ Links Out</a>
</td></tr><tr>
<td width="100%"><a href="credits.php">+ Credits</a>
</td></tr><tr>
<td width="100%"><a href="contact.php">+ Contact</a>
</td></tr><tr>
<td width="100%"><a href="reviews.php">+ Reviews</a>
</td></tr><tr>
<td width="100%"><a href="tagboard.php">+ Tagboard</a>
</td></tr></table>


<div class="navhead">Graphics</div>
<table cellspacing="2" cellpadding="0" border="0" class="menu" width="100%"><tr>
<td width="100%"><a href="avatars.php">+ Avatars</a>
</td></tr><tr>
<td width="100%"><a href="designs.php">+ Layout Designs</a>
</td></tr><tr>
<td width="100%"><a href="pngs.php">+ Extracted PNGs</a>
</td></tr><tr>
<td width="100%"><a href="wallpapers.php">+ Wallpapers</a>
</td></tr><tr>
<td width="100%"><a href="textures.php">+ Textures</a>
</td></tr><tr>
<td width="100%"><a href="forumsets.php">+ Forum Sets</a>
</td></tr></table>


<div class="navhead">Siblings</div>
<table cellspacing="2" cellpadding="0" border="0" class="menu" width="100%"><tr>
<td width="100%"><a href="http://kakumei.kouu.net/" target=_blank>+ Kakumei Designs</a>
</td></tr><tr>
<td width="100%"><a href="http://www.serenity.elysium-fields.net/" target=_blank>+ Serenity</a>
</td></tr></table>


<div class="navhead">Affiliates</div>
<table cellspacing="2" cellpadding="0" border="0" class="menu" width="100%"><tr>
<td width="100%"><a href="aboutaffies.php">+ About</a>
</td></tr><tr>
<td width="100%"><a href="http://paint.paper-wings.net/" target=_blank>+ The Paint Can</a>
</td></tr><tr>
<td width="100%"><a href="http://www.frail-frivolity.essenxa.net/" target=_blank>+ Frail Frivolity</a>
</td></tr><tr>
<td width="100%"><a href="apply.php">+ Apply?</a>
</td></tr></table>


<div class="navhead">Networks</div>
<table cellspacing="2" cellpadding="0" border="0" class="menu" width="100%"><tr>
<td width="100%"><a href="information.php">+ Information</a>
</td></tr><tr>
<td width="100%"><a href="http://sweetie-pie.pwnedjoo.net/" target=_blank>+ Sweetie Pie</a>
</td></tr><tr>
<td width="100%"><a href="contests.php">+ Contests/Joined</a>
</td></tr></table>

</div>

<br><br>

<!-- END SITRE NAVIGATIONS -->


                </td>
<td>
<img src="cpd_v2/08.gif" width="12" height="100%" alt=""></td>
<td background="cpd_v2/09.gif" width="501" height="91" valign="top" alt="">


<!-- BEGIN STIE CONTENTS -->

<div class="header">Linkage</div>
<div class="maincontent">

<p>The fallowing links at the bottom are various links out to other sites. There is also a page that you can use in order to link back to Crystal Phoenix Designs. - <a href="linkcpd.php">HERE</a> All network links can be found under the <a href="information.php">Network</a> section. If you wish to link exchange with us, you will be required to post CPD's links as we will be adding yours to our site also - interested in <a href="contact.php">link exchange</a>? Please
click on the fallowing links to navigate to the wonderful websites. Thank you.</p>
<br>

<p><p align="center">
<table cellspacing="0" cellpadding="0" border="0" width="85%"><tr><td class="textcontent"><center>
<a href="linksout.php">View All</a> |
<a href="linksout2.php">Affiliates</a> |
<a href="linksout3.php">Siblings</a> |
<a href="linksout4.php">Link Exchanges</a> |
<a href="linkcpd.php"> Link Us</a> |
<a href="contact.php"> Application</a>

</center></td></tr></table></p><br>

<?php //Database connection information
$hostname="localhost";
$dbase="database";
$user="username";
$pass="password";
$connection = mysql_connect("$hostname" , "$user" , "$pass");
$db = mysql_select_db($dbase , $connection); ?>


<center><table border="0" cellspacing="4" cellpadding="4">
<tr class="linkcontent2">
<td><b>Button</b></td>
<td><b>Site Name</b></td>
<td><b>Type</b></td>
<td><b>Status</b></td>
<td><b>Clicks</b></td>
</tr>

<?php
$query 
.= "select * from links_table order by id desc "; 
$result = mysql_query($query, $connection) or die
(
"Could not execute query : $query ." . mysql_error());

//this part controls your dynamic navigation (automatic pages)
// EDIT LINE BELOW - change # of layouts you want to show per page
$rows_per_page=20; 
$total_records=mysql_num_rows($result);
$pages = ceil($total_records / $rows_per_page);
$screen = $_GET["screen"];
if (!isset(
$screen))
$screen=0;
$start = $screen * $rows_per_page;
$q .= "LIMIT $start, $rows_per_page";
$result= mysql_query($q, $connection) or die
(
"Could not execute query : $q." . mysql_error());

while (
$row=mysql_fetch_array($result))
{
extract($row); ?>


<tr class="linkcontent"><td>
<a href="linkout.php?id=<?php echo "$id"; ?>" target=_blank><img src="<?php echo "$button"; ?>" border="0" alt="<?php echo "$site"; ?>"></a>
</td><td>
<a href="linkout.php?id=<?php echo "$id"; ?>" target=_blank><?php echo "$site"; ?></a>
</td><td>
<?php echo "$type"; ?></td><td>
<?php echo "$stats"; ?></td><td>
<?php echo "$clicks"; ?> Visits
</td></tr>

</tr> <?php }
echo 
"</table></center>"; ?>


<?php
// Display dynamic navigation at bottom of page
if ($screen > 0) {
$j = $screen - 1;
$url = "linkouts.php?screen=$j"; // EDIT change 'layout.php' if your page is different
echo "<a href=\"$url\">&laquo; Prev</a>-"; 
}

// page numbering links now
for ($i = 0; $i < $pages; $i++) {
$url = "linkouts.php?screen=" . $i; // EDIT change 'layout.php' if your page is different
$j = $i + 1;
echo 
"<a href=\"$url\">$j</a>-";
}

if (
$screen < $pages-1) {
$j = $screen + 1;
$url = "linkouts.php?screen=$j"; // EDIT change 'layout.php' if your page is different
echo "<a href=\"$url\">Next &raquo;</a>"; 
}

?>

</p>

<br><br>

</div>

<!-- END SITE CONTENTS -->

                           </td>
<td background="cpd_v2/10.gif" width="86" height="91" alt=""></td>
</tr>
<tr>
<td colspan="5">
<img src="cpd_v2/11.jpg" width="851" height="102" alt=""></td>
</tr>


</table>
</center>


</body>
</html>

Thnx again =]
5  Web Development / Coding / Re: Help w/ PHP Codings II on: July 14, 2008, 06:48:26 PM
Alright, I've just pasted everything I had on my linksout.php page.
I hope this helps you.

Thank you.
6  Web Development / Coding / Help w/ PHP Codings II on: July 12, 2008, 08:40:32 PM
Hi there. It's been a pretty long time since I last asked for help on Celestial Star forum. Hehehe, I have a nostalgic feeling rushing through me. Well anyways, uhm, I've been observing and trying for a long time and I never seem to get this done right. I mean, I am pretty sure that the PHP code that I use for my links table is correct, but for some reasons a message came out and said:
Parse error: syntax error, unexpected '/' in /mounted-storage/home19a/sub001/sc19346-CVUA/subdomain/crystal-phoenix/linksout.php on line 181

????? - WHAT IS IT??? ><;;

*sighs* So I am hoping that you can help me outwith this xD thnx ^__^


Code:
<link rel="stylesheet" type="text/css" href="style.css">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="keywords" content="crsytal phoenix dsigns, graphic site, graphic designs, graphic, designs, png, wallpapers, textures, burushes, avatars, anime, manga, resources, tutorials, html, php, photoshop, ">
<meta name="description" content="An anime graphic site that provides you with many graphical resources that will help on the road to the world og digital arts and designingings.">
<META HTTP-EQUIV="imagetoolbar" CONTENT="no">

<link rel="shortcut icon" href="favicon.ico" >

</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">

<!-- Crystal Phoenix Designs is [c] to Aiko Sakuraba. All Rightes Reserved 2008 -->

<center>
<table id="Table_01" width="851" height="600" border="0" cellpadding="0" cellspacing="0">
<tr>
<td colspan="5">
<img src="cpd_v2/01.jpg" width="851" height="81" alt=""></td>
</tr>
<tr>
<td colspan="5">
<img src="cpd_v2/02.jpg" width="851" height="82" alt=""></td>
</tr>
<tr>
<td colspan="5">
<img src="cpd_v2/03.jpg" width="851" height="81" alt=""></td>
</tr>
<tr>
<td colspan="5">
<img src="cpd_v2/04.jpg" width="851" height="82" alt=""></td>
</tr>
<tr>
<td colspan="5">
<img src="cpd_v2/05.jpg" width="851" height="81" alt=""></td>
</tr>
<tr>
<td background="cpd_v2/06.gif" width="75" height="91" alt=""></td>
<td background="cpd_v2/07.gif" width="177" height="100%" valign="top" alt="">


<!-- BEGIN SITE NAVIAGTIONS -->

<div id="menu">

<div class="navhead">Main Index</div>
<table cellspacing="2" cellpadding="0" border="0" class="menu" width="100%"><tr>
<td width="100%"><a href="index.php">+ Home</a>
</td></tr><tr>
<td width="100%"><a href="site.php">+ About</a>
</td></tr><tr>
<td width="100%"><a href="staff.php">+ Staff</a>
</td></tr><tr>
<td width="100%"><a href="faq.php">+ F.A.Q.</a>
</td></tr><tr>
<td width="100%"><a href="archives.php">+ Archives</a>
</td></tr><tr>
<td width="100%"><a href="pastversions.php">+ Past Versions</a>
</td></tr><tr>
<td width="100%"><a href="awards.php">+ Awards Received</a>
</td></tr><tr>
<td width="100%"><a href="terms.php">+ Terms of Usage</a>
</td></tr></table>


<div class="navhead">Site Related</div>
<table cellspacing="2" cellpadding="0" border="0" class="menu" width="100%"><tr>
<td width="100%"><a href="linkcpd.php">+ Link In</a>
</td></tr><tr>
<td width="100%"><a href="linksout.php">+ Links Out</a>
</td></tr><tr>
<td width="100%"><a href="credits.php">+ Credits</a>
</td></tr><tr>
<td width="100%"><a href="contact.php">+ Contact</a>
</td></tr><tr>
<td width="100%"><a href="tagboard.php">+ Tagboard</a>
</td></tr></table>


<div class="navhead">Graphics</div>
<table cellspacing="2" cellpadding="0" border="0" class="menu" width="100%"><tr>
<td width="100%"><a href="avatars.php">+ Avatars</a>
</td></tr><tr>
<td width="100%"><a href="designs.php">+ Layout Designs</a>
</td></tr><tr>
<td width="100%"><a href="pngs.php">+ Extracted PNGs</a>
</td></tr><tr>
<td width="100%"><a href="wallpapers.php">+ Wallpapers</a>
</td></tr><tr>
<td width="100%"><a href="textures.php">+ Textures</a>
</td></tr><tr>
<td width="100%"><a href="forumsets.php">+ Forum Sets</a>
</td></tr></table>


<div class="navhead">Siblings</div>
<table cellspacing="2" cellpadding="0" border="0" class="menu" width="100%"><tr>
<td width="100%"><a href="http://kakumei.kouu.net/" target=_blank>+ Kakumei Designs</a>
</td></tr><tr>
<td width="100%"><a href="http://www.serenity.elysium-fields.net/" target=_blank>+ Serenity</a>
</td></tr></table>


<div class="navhead">Affiliates</div>
<table cellspacing="2" cellpadding="0" border="0" class="menu" width="100%"><tr>
<td width="100%"><a href="aboutaffies.php">+ About</a>
</td></tr><tr>
<td width="100%"><a href="http://paint.paper-wings.net/" target=_blank>+ The Paint Can</a>
</td></tr><tr>
<td width="100%"><a href="http://www.frail-frivolity.essenxa.net/" target=_blank>+ Frail Frivolity</a>
</td></tr><tr>
<td width="100%"><a href="apply.php">+ Apply?</a>
</td></tr></table>


<div class="navhead">Networks</div>
<table cellspacing="2" cellpadding="0" border="0" class="menu" width="100%"><tr>
<td width="100%"><a href="information.php">+ Information</a>
</td></tr><tr>
<td width="100%"><a href="http://sweetie-pie.pwnedjoo.net/" target=_blank>+ Sweetie Pie</a>
</td></tr><tr>
<td width="100%"><a href="contests.php">+ Contests/Joined</a>
</td></tr></table>

</div>

<br><br>

<!-- END SITRE NAVIGATIONS -->


                </td>
<td>
<img src="cpd_v2/08.gif" width="12" height="100%" alt=""></td>
<td background="cpd_v2/09.gif" width="501" height="91" valign="top" alt="">


<!-- BEGIN STIE CONTENTS -->

<div class="header">Linkage</div>
<div class="maincontent">

<p>The fallowing links at the bottom are various links out to other sites. There is also a page that you can use in order to link back to Crystal Phoenix Designs. - <a href="linkcpd.php">HERE</a> All network links can be found under the <a href="information.php">Network</a> section. If you wish to link exchange with us, you will be required to post CPD's links as we will be adding yours to our site also - interested in <a href="contact.php">link exchange</a>? Please
click on the fallowing links to navigate to the wonderful websites. Thank you.</p>
<br>

<p><p align="center">
<table cellspacing="0" cellpadding="0" border="0" width="85%"><tr><td class="textcontent"><center>
<a href="linksout.php">View All</a> |
<a href="linksout2.php">Affiliates</a> |
<a href="linksout3.php">Siblings</a> |
<a href="linksout4.php">Link Exchanges</a> |
<a href="linkcpd.php"> Link Us</a> |
<a href="contact.php"> Application</a>

</center></td></tr></table></p><br>

<?php //Database connection information
$hostname="localhost";
$dbase="database";
$user="username";
$pass="password";
$connection = mysql_connect("$hostname" , "$user" , "$pass");
$db = mysql_select_db($dbase , $connection); ?>


<center><table border="0" cellspacing="4" cellpadding="4">
<tr class="linkcontent2">
<td><b>Button</b></td>
<td><b>Site Name</b></td>
<td><b>Type</b></td>
<td><b>Status</b></td>
<td><b>Clicks</b></td>
</tr>

<?php
$q
="SELECT * FROM links_table ORDER BY id desc";
$result= mysql_query($q) or die ("Could not execute query : $q." . mysql_error());

/
this part controls your dynamic navigation (automatic pages)
// EDIT LINE BELOW - change # of layouts you want to show per page
$rows_per_page=20; 
$total_records=mysql_num_rows($result);
$pages = ceil($total_records / $rows_per_page);
$screen = $_GET["screen"];
if (!isset(
$screen))
$screen=0;
$start = $screen * $rows_per_page;
$q .= "LIMIT $start, $rows_per_page";
$result= mysql_query($q, $connection) or die
(
"Could not execute query : $q." . mysql_error());

while (
$row=mysql_fetch_array($result))
{
extract($row); ?>


<tr class="linkcontent"><td>
<a href="linkout.php?id=<?php echo "$id"; ?>" target=_blank><img src="<?php echo "$button"; ?>" border="0" alt="<?php echo "$site"; ?>"></a>
</td><td>
<a href="linkout.php?id=<?php echo "$id"; ?>" target=_blank><?php echo "$site"; ?></a>
</td><td>
<?php echo "$type"; ?></td><td>
<?php echo "$stats"; ?></td><td>
<?php echo "$clicks"; ?> Visits
</td></tr>

</tr> <?php }
echo 
"</table></center>"; ?>


<?php
} #end of while
?>


<p align="center">

<?php
// Display dynamic navigation at bottom of page
if ($screen > 0) {
$j = $screen - 1;
$url = "linkouts.php?screen=$j"; // EDIT change 'layout.php' if your page is different
echo "<a href=\"$url\">&laquo; Prev</a>-"; 
}

// page numbering links now
for ($i = 0; $i < $pages; $i++) {
$url = "linkouts.php?screen=" . $i; // EDIT change 'layout.php' if your page is different
$j = $i + 1;
echo 
"<a href=\"$url\">$j</a>-";
}

if (
$screen < $pages-1) {
$j = $screen + 1;
$url = "linkouts.php?screen=$j"; // EDIT change 'layout.php' if your page is different
echo "<a href=\"$url\">Next &raquo;</a>"; 
}

?>

</p>
7  Web Development / Coding / Re: Help w/ PHP Codings on: May 07, 2008, 11:52:44 PM
YAY! It finnaly works *throws confetti around the place* Yipee!!! I finally managed to work it out the way I wanted it to be. So satisfied =] Thank yous so much; you are so wonderful ^__^. I just used the codes that you gave me and play around with it with my code...and guess what? It worked out on my first try!!! ;) I am so smart...jkjkjk. Anyways, thanks.

Here is the newest-looking, well, actually, remodeled avatar page xD

---> CLICK ME!
8  Web Development / Coding / Re: Help w/ PHP Codings on: May 06, 2008, 08:57:46 PM
 Undecided WOW! Finally someone replied to me. I was afraid that I'm about to burst because I've been waiting so long for this =[ Oh my gosh, your code is definitely different from mines XD. Alright, I'll try it out and see if I get any good results. Hahaha. Thank you so much! Oh yah, before I start, I took a glance at the code you gave and I saw this in it - I'm not exactly sure if it is necessary but I'll ask you just in case.

It's this: <center><table valign=\"top\" cellspacing=\"1\">

[Are the slashes really necessary for the coding?]
9  Web Development / Coding / Help w/ PHP Codings on: April 21, 2008, 08:30:30 PM
Hey there, I came across a problem in the PHP coding for my graphic website, Crystal Phoenix Designs. Handling the MySQL Database part was a breeze for me, but the only problem is the PHP code that I used. I wanted my avatars to be layout differently...not like this.

Here's a little of what I am talking about:
http://crystal-phoenix.reiku.org/avatars.php

-navigate to my avatars page-

I wanted to fix the repetition of the same images in each row. I don't know if it's my template for the avatars that are causing the problem. I had an urge to test it out, but I'm just afraid that everything will get out of hand. Since this is my first time working with PHP, and I know that for sure it won't be perfect the first time...unless I keep observing it. That's another story and plus it will take me a long time to understand the codes. I'd rather ask for help now ^^

Here's the PHP code that I used:

Code:
<?php


// Connection
$hostname='localhost'; //EDIT usually 'localhost'(check Cpanel under 'MySQL® Databases')
$user='db_admin'; //EDIT username for MySQL database (replace db_admin)
$pass='starlight'; //EDIT Password for database (replace starlight)
$dbase='db_layouts'; //EDIT databasename, not table name (replace db_layouts)

$connection = mysql_connect("$hostname" , "$user" , "$pass") or die ("Can't connect to MySQL");
$db = mysql_select_db($dbase , $connection) or die ("Can't select database.");


//EDIT BELOW 'designs' to name of your table
$q = "select * from designs order by id desc "; // layouts will be ordered by id descending
$result= mysql_query($q, $connection) or die
(
"Could not execute query : $q." . mysql_error());


//this part controls your dynamic navigation (automatic pages)
// EDIT LINE BELOW - change # of layouts you want to show per page
$rows_per_page=5; 
$total_records=mysql_num_rows($result);
$pages = ceil($total_records / $rows_per_page);
$screen = $_GET["screen"];
if (!isset(
$screen))
$screen=0;
$start = $screen * $rows_per_page;
$q .= "LIMIT $start, $rows_per_page";
$result= mysql_query($q, $connection) or die
(
"Could not execute query : $q." . mysql_error());

;;

And the template that I used for the avatars:

Code:
<center><table border="0" cellspacing="0" cellpadding="7"><tr>
<td>



<table cellspacing="0" width="100" cellpadding="0"><tr>
<td class="content2"><center>
<a onClick="Avatar=window.open('download/av.php?id=<?php echo "$id"; ?>','Avatar','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=110,height=120,left=300,top=350');return false;"><img src="<?php echo "$thumb"; ?>" title="ID: <?php echo "$id"; ?> | Artist: <?php echo "$artist"; ?> | Date: <?php echo "$date"; ?>" border="0" oncontextmenu="return false;" alt="Avatar <?php echo "$id"; ?>"></a>
<b>Download:</b> <?php echo "$dcounter"; ?></center></td></tr></table>



</td>
<td>



<table cellspacing="0" width="100" cellpadding="0"><tr>
<td class="content2"><center>
<a onClick="Avatar=window.open('download/av.php?id=<?php echo "$id"; ?>','Avatar','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=110,height=120,left=300,top=350');return false;"><img src="<?php echo "$thumb"; ?>" title="ID: <?php echo "$id"; ?> | Artist: <?php echo "$artist"; ?> | Date: <?php echo "$date"; ?>" border="0" oncontextmenu="return false;" alt="Avatar <?php echo "$id"; ?>"></a>
<b>Download:</b> <?php echo "$dcounter"; ?></center></td></tr></table>


</td>
<td>



<table cellspacing="0" width="100" cellpadding="0"><tr>
<td class="content2"><center>
<a onClick="Avatar=window.open('download/av.php?id=<?php echo "$id"; ?>','Avatar','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=110,height=120,left=300,top=350');return false;"><img src="<?php echo "$thumb"; ?>" title="ID: <?php echo "$id"; ?> | Artist: <?php echo "$artist"; ?> | Date: <?php echo "$date"; ?>" border="0" oncontextmenu="return false;" alt="Avatar <?php echo "$id"; ?>"></a>
<b>Download:</b> <?php echo "$dcounter"; ?></center></td></tr></table>



</td>
<td>



<table cellspacing="0" width="100" cellpadding="0"><tr>
<td class="content2"><center>
<a onClick="Avatar=window.open('download/av.php?id=<?php echo "$id"; ?>','Avatar','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=110,height=120,left=300,top=350');return false;"><img src="<?php echo "$thumb"; ?>" title="ID: <?php echo "$id"; ?> | Artist: <?php echo "$artist"; ?> | Date: <?php echo "$date"; ?>" border="0" oncontextmenu="return false;" alt="Avatar <?php echo "$id"; ?>"></a>
<b>Download:</b> <?php echo "$dcounter"; ?></center></td></tr></table>


</td>
</tr>

</table>
</center>

Hopefully that this is enough information. All in all, is there any solution for this problem? This goes for most of the graphic databases in my website. (expect for wallpapers & pngs)

Thanks in a billion  Smiley
10  Web Development / Coding / Problems with DIV Layout on: February 17, 2008, 06:38:46 PM
Hello there again.
Hm....while I was coding my DIV layout, I cam a cross some problems that I can't fix at all. For some weird reasons I can't see my footer image and the background (where the content is) doesn't repeat at all. Can someone help me out please? All you have to do is fix my mistakes and problem solve ^.^V

Code:
<html>
<head>
<title>emily</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<style>

body {
font: 11px/17px Verdana, Arial, sans-serif;
font-size : 11px;
color : #d47686;
cursor: default;
}

#container {
width: 800px;
margin: 0 auto;
text-align: left;
}

#header {
width: 698px;
height: 360px;
background-image: url('http://i272.photobucket.com/albums/jj167/cpdesigns/iEMILY/emily_02_02.jpg');
}

#sidebar {
float: left; /
}

#content {
float: left;
width: 698px;
background-color: #fff;
background-image: url('http://i272.photobucket.com/albums/jj167/cpdesigns/iEMILY/bg-2.jpg');
background-repeat: repeat-y;
font-family: Verdana;
font-color: #d47686;
font-size: 11px;
padding-left: 8px;
padding-top: 4px;
word-spacing: 1pt;
cursor: default;
}

#footer {
background-image: url('http://i272.photobucket.com/albums/jj167/cpdesigns/iEMILY/emily_02_06.jpg');
width: 698px;
}

</style>
</head>
<body background="http://i272.photobucket.com/albums/jj167/cpdesigns/iEMILY/bg.gif" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<center>
<!-- START iEMILY CONTENTS AND NAVIGATIONS -->

<div id="container">
<div id="header"> </div>
<div id="content">

<div style="top:510; left:3; width:526; overflow:auto;">

<!-- SITE CONTENT-->

Your content here ... lorem ipsum dolor sit amet, consectetuer adipiscing elit. Vivamus viverra, risus sed viverra congue, dui nibh ullamcorper nisl, a dictum lectus erat sed odio. Nunc porttitor imperdiet felis. Cras ornare risus vitae ipsum. Nullam porta sollicitudin nunc. Curabitur euismod iaculis enim. Integer semper ultricies felis. Duis dapibus, ante sed dignissim ultrices, pede ligula ornare orci, sit amet dapibus erat turpis vitae lacus. Aliquam eu nisl at diam dapibus malesuada. Mauris magna. Sed quis tortor. Donec ante.</p>

<p>Your content here ... pellentesque aliquam eros sit amet odio cursus tristique. Etiam semper euismod elit. Vivamus faucibus, felis pretium fermentum fermentum, pede velit laoreet nisl, nec sollicitudin eros velit ac quam. Maecenas augue. Mauris pretium. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Nulla et tortor vel turpis tristique ullamcorper. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Quisque dui nisl, vestibulum et, blandit sed, eleifend quis, velit. Etiam rutrum semper nulla. </p>

<p>Your content here ... curabitur ornare nisi vel erat. Aliquam tempor, magna at laoreet egestas, pede libero interdum augue, a interdum erat leo vel risus. Pellentesque neque urna, semper vel, mollis vel, tempus volutpat, leo. Suspendisse gravida posuere erat. Etiam nec lorem. Duis at dui in diam tincidunt tincidunt. Quisque adipiscing sodales purus. Suspendisse sed quam ut arcu sollicitudin faucibus. Donec nulla purus, pulvinar et, blandit vitae, eleifend at, nisi. In est dolor, cursus at, suscipit ut, dignissim id, nulla. </p>

<!-- END SITE CONTENT-->

</div>
</div>

<div id="sidebar">

<div style="position: absolute; top:360; left:774; width:146; overflow:auto;">

<!-- START NAVIGATION -->

<p>Your content here ... lorem ipsum dolor sit amet, consectetuer adipiscing elit. Vivamus viverra, risus sed viverra congue, dui nibh ullamcorper nisl, a dictum lectus erat sed odio. Nunc porttitor imperdiet felis. Cras ornare risus vitae ipsum.</p>

<p>Nullam porta sollicitudin nunc. Curabitur euismod iaculis enim. Integer semper ultricies felis. Duis dapibus, ante sed dignissim ultrices, pede ligula ornare orci, sit amet dapibus erat turpis vitae lacus. Aliquam eu nisl at diam dapibus malesuada. Mauris magna. Sed quis tortor. Donec ante.</p>

<!-- END NAVIGATION -->

</div>

<!-- CONTENT FOOTER -->

<div id="footer"> </div>

<!-- END CONTENT FOOTER -->

</div>     
</center>
</body>
</html>

~ Thank you!!!
11  Web Development / Coding / Re: Need Help on Table Layout! on: February 16, 2008, 05:16:11 PM
Thank you very much. Alright, I'll put it to the test and see if I get the content that I wanted. *cross fingers* Please, cause the place I want to be host at only has one more spot left!!! >___<;;
12  Web Development / Coding / Re: Need Help on Table Layout! on: February 14, 2008, 06:48:22 PM
oh yeah, b4 i go on, what do ou mean by assigning the class name to my content and navigation?

do i have to put it like this?

<p class="classname">content</p>
13  Web Development / Coding / Re: Need Help on Table Layout! on: February 13, 2008, 09:12:45 PM
OKay, thanks. Now, I'll start re-coding the layout one more time. If it's successful the first time, I'll owe you a lot ^^ On the other hand, I'll go back and ask for more help.
14  Web Development / Coding / Re: Need Help on Table Layout! on: February 13, 2008, 06:31:03 PM
ok, thamks for the tip! ^^
oh yeah, what I mean about the extra images are the images that DON'T need to be in there. For instance, image: 04, 16, 23, 24, 25, 26, 27, and 28.

15  Web Development / Coding / Re: Need Help on Table Layout! on: February 12, 2008, 11:04:54 PM
Alrighty then. So all I need to do do is install the codes that you gave me into the CSS and it will work properly. Do I have to change anything for number 19 and number 21 for the bg images?

and also, it's okay for me to delete some of the extra images out right? 
Pages: [1] 2
  • Welcome, Guest
  • Members login
  • Register for free

General

  • General
  • New members
  • Announcements
  • Support / Suggestions

Art boards

  • Creative mediums
  • Requests and offers
  • Tutorials
  • Celestial Star tutorials

Web development

  • Coding
  • Web design
  • Advertisements / affiliation

Off-topic

  • The non-sense
  • Ententainment

Go up
eXTReMe Tracker
  • Valid XHTML
  • Valid CSS
Powered by SMF 1.1.2 | SMF © 2006-2007, Simple Machines LLC | Seo4Smf v0.2 © Webmaster's Talks
Loading...