Relatively ancient and inactive
Err... I had just copy/pasted from my old register script. If by changes you mean my 'suggestions', upload it again, and I think it shouldn't be hard to find the problem.
The way I always connect to MySQL is by setting the mysql_connect() to a variable, the query to a variable, etc. For example, I'm not sure you can just do mysql_query without first specifying which connection you're doing it for - after all, you can be connected to more then one db at a time. Also, as I had said before, where's your mysql_connect()? Maybe the problems are because you didn't actually connect to MySQL.
None.
Thank You IP.
@Centreri: My mysql connect is in another file called connect.php. I have require("connect.php"); at the start of my script. In connect.php i have a variable called $con which has all the connection info. What I posted is only part of the code. Am I suppose to put $con everytime I wanna do a query, because if I eliminate some of the code without having $con, it adds the stuff into the database. But I want the script to be more thorough, which is where i'm running problems as you see.
None.
Relatively ancient and inactive
$registerBasicDataExecute = mysql_query($registerBasicData, $registerConnect);
I'm pretty sure that mysql_query requires you to select the connection, which in my script is $registerConnect. That might be your problem there. Same thing with selecting the database - you should specify the connection. I know that both functions should work even without specifying, but i can't really see anything else wrong with your mysql_select_db.
None.
Well, when I posted the error about mysql_select_db, I had $con after selecting it. So adding $con might be the problem, if I take it out I get the error mentioned before that.
None.
so I am updating some pictures for the site's layout right, and for no reason, unlike it used to, the gradient in the background is half below another image and half above it...
The only code relevant to this is:
body
{
background-image: url('/images/tile2.png');
background-position: top left;
margin:0px;
}
center
{
background-image: url('/images/gradient1.png');
background-position: top left;
background-repeat: repeat-x;
}
and
<body>
<center>
<table border='0' width='800px' height='150px' cellspacing="0" cellpadding="0">
<tr>
<td style="height:150px" width='550px' background="images/header.png"></td>
<td style="height:150px" width='250px' background="images/login1.png"><?php require("login.php"); ?></td>
</tr>
</table>
any idea's why the gradient is half below the login1.png and half above it?
None.
Relatively ancient and inactive
Err.. pics? I don't really understand what you're saying.
None.
http://img134.imageshack.us/my.php?image=lawlzrzrzrzbv3.jpgthere is a top strip which seems somewhat correct, it is blending with the rest, then all of a sudden the gradient comes to the front and it makes the login box look dirty and not match the top or bottom parts (before it hits the little navbar thing)
None.
HALP CSS!
I want this text to do as it's told and the image too...
so, in the html part of the code I have
<a href="site.php"><img src="images/abc.png" /></a>
now the link works perfectly, it's just the image now has one of those ugly ass borders, so in the css file I have
a
{
hover {text-decoration:'none';
link {text-decoration:'none';
visited {text-decoration:'none';
}
How can I make it so the image has no purple border, indicating that it's been visited and no other kinds of borders so it's JUST the image that links to a page... would be appreciated if there was any alternatives to using an image as a hyperlink
None.
a:hover, a:visited, a:active {text-decoration:none;}
I dunno if a:link is valid.
None.
So I made a tree view type thing using php.
I'm proud of this cause i did use any referances and came up with it by myself. Except for looking up php function to convert a number to binary and to take the power of one. The idea is to have many different potential views of a page but only to use one view variable to define them all. I used a number that i broke down into binary then used each bit to represent independent views.
In the tree view implementation there is a list of several categories. You can view each category by clicking on the category name. Doing this will show the contents of that category without compressing the other categories. Also if you click on the category and it is being viewed then it will be compressed.
Here is my code.
<?php
$view = $_GET['view'];
$viewbinary = decbin($view);
$length = strlen($viewbinary);
function linkview($x)
{
global $view; global $viewbinary; global $length;
$linkvalue = pow(2,($x-1));
if($viewbinary{($length - $x)} == 1)
echo ($view - $linkvalue);
else
echo ($view + $linkvalue);
}
?>
<a href='?view=<?php linkview(1); ?>'>Item 1</a><br>
<?php if($viewbinary{($length - 1)} == 1) echo"
Item 1 - PartA<br>
Item 1 - PartB<br>
Item 1 - PartC<br>
"; ?>
<a href='?view=<?php linkview(2); ?>'>Item 2</a><br>
<?php if($viewbinary{($length - 2)} == 1) echo"
Item 2 - PartA<br>
Item 2 - PartB<br>
Item 2 - PartC<br>
"; ?>
<a href='?view=<?php linkview(3); ?>'>Item 3</a><br>
<?php if($viewbinary{($length - 3)} == 1) echo"
Item 3 - PartA<br>
Item 3 - PartB<br>
Item 3 - PartC<br>
"; ?>
<a href='?view=<?php linkview(4); ?>'>Item 4</a><br>
<?php if($viewbinary{($length - 4)} == 1) echo"
Item 4 - PartA<br>
Item 4 - PartB<br>
Item 4 - PartC<br>
"; ?>
So what do you think?
None.
Interesting, but I wouldn't see myself using it. I like it though.
None.
Quote from name:isolatedpurity
Interesting, but I wouldn't see myself using it. I like it though.
I have found one problem with it... I don't know if you consider it a problem though.
If I'm using it for a tree view type structure. Then sub directories are not compressed if there parent is. Depends on how your using it i guess.
None.