Page 1 of 1

HI Guys i got a PHP problem can u help me out

Posted: Tue Sep 12, 2006 5:29 pm
by anthony100
http://www.maximumwar.com/index.php

as u can see on the right hand side it kinda blue/grey.
here is the code well a link to it as i havent got a clue how to copy and paste it.


http://s37.photobucket.com/albums/e67/u ... h=imgAnch1

cheers Anthony
grrr didnt work just click on the UKCOIN sign on the left top and its the first image

cheers Anthony

Posted: Tue Sep 12, 2006 5:33 pm
by feyd
mmmmm huh?

Posted: Tue Sep 12, 2006 5:43 pm
by anthony100
do u see the code on the photo bucket yet cheers anthony

Posted: Tue Sep 12, 2006 5:45 pm
by EV0LUTION
your photo bucket link goes to

This file no longer exists

and you need to center your stuff or change the background color

Posted: Tue Sep 12, 2006 5:49 pm
by anthony100

Posted: Tue Sep 12, 2006 6:45 pm
by anthony100
feyd | Please use

Code: Select all

,

Code: Select all

and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read:  [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]

Code: Select all

<?php
require('dblogon.php');
require('std_l.php');

// This user is deleting their account
if(isset($_GET['mdelete'])) {
	echo "<center><b>Account deleting...</b><br>Your account is now in the process of<br>\nbeing deleted.  Please ";
	echo "log back in soon if you<br>\nwant to cancel this action!</center>\n";
}
?>
<p><b>Welcome to <?=stripslashes($title);?></b></center><br>
Signup now to begin playing!</p>
<hr>
<center><a href="signup.php"><img src="img/signup.jpg" width="420px" height="125px" border="0" alt="Signup"></a></center><br>
<hr>
<?php require('std_r.php'); ?>

That is the code


feyd | Please use

Code: Select all

,

Code: Select all

and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read:  [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]

Posted: Tue Sep 12, 2006 7:08 pm
by gkwhitworth
Ok buddy....I think you need to work a little on your layout before you even mess with the php.

for instance in your stylesheet your body background color is #333333, when in reality you should just use the background image you are using everywhere:
background-image:URL('img/bg.jpg');

Also, you should make it so that your table fills 100 percent of the screen, so you don't end up with that gray color....what is happening, your table setting is for 100 percent but needs to be centered....so you probably should re-layout your design.

Posted: Tue Sep 12, 2006 7:16 pm
by RobertGonzalez
I don't think there is a PHP question in this thread. In fact, it sounds like a style question (given the only thing asked so far is if we see the gray background on the right hand side). That being said, if there is no PHP question asked in this thread within an hour, I am going to move it to Usability.

Posted: Tue Sep 12, 2006 8:51 pm
by Jenk
To be utterly pedantic - there wasn't a question at all, until the OP's reply with "do you see the pic ... "

Posted: Tue Sep 12, 2006 9:02 pm
by RobertGonzalez
Moved :arrow: to UI Design/Usability.

Posted: Wed Sep 13, 2006 11:17 am
by anthony100
sorry bout that my question was how do i move the background to cover the whole of the map.

as im very new to PHP i total havent got a clue.

but after a few cups of tea and staining my eyes i found out that i total completly gave you to wrong PHP code.
then i found the file i was looking for in it was a simple case of changing the width of the back to 100%.

but thanks guys anyways.

Posted: Wed Sep 13, 2006 1:43 pm
by RobertGonzalez
Glad you got it working. Next time, when asking a question, make sure to make it a clear question about what you are having challenges with or what you want to do.

Posted: Wed Sep 13, 2006 5:35 pm
by anthony100
will do thx mate

Posted: Thu Sep 14, 2006 1:05 am
by matthijs
anthony100, I would also suggest that once you have some code together you post some of it in the coding critique and/or security forum, or just look around in the security forum and study the threads there.

I can only see a snippet of code and I don't know in which context it's used exactly, but as it is there is no data validation or escaping at all. Usually that points to security risks. So you might want to check that out.