-
Posts
2,527 -
Joined
-
Last visited
Everything posted by DeanWhitehouse
-
BUMP. Soz really need help on this
-
give each link a unqiue id , then use a function like function color(id1,id2,id3,id4,id5) { var i = 5; while(i<=5) { document.getElementById(id+i).style.color="black"; } } then the link would be <a href="" id="1" onmouseover="color("2","3","4","5","6");"></a> <a href="" id="2" onmouseover="color("1","3","4","5","6");"></a> <a href="" id="3" onmouseover="color("1","2","4","5","6");"></a> <a href="" id="4" onmouseover="color("1","2","3","5","6");"></a> <a href="" id="5" onmouseover="color("1","2","3","4","6");"></a> <a href="" id="6" onmouseover="color("1","2","3","4","5");"></a>
-
error with collapse table...im thinking could be to do with php
DeanWhitehouse replied to runnerjp's topic in PHP Coding Help
we are not here just to solve your code , we are not paid we are doing this in our spare time , so don't keep asking people to solve it for you, you should keep experimenting with the code trying to solve it . -
try just doing new mysqli( 'host', 'username', 'password', 'dbname' ) or die("error"); on a blank page , so it would be like <?php new mysqli( 'host', 'username', 'password', 'dbname' ) or die("error"); ?>
-
I would advise not using a function for something as simple as checking if a username exists . You might want to rethink your code logic.
-
Drop down problem when using a function plz help
DeanWhitehouse replied to Romeomussluv's topic in PHP Coding Help
Notepad++ or dreamweaver in code mode Is there a way we can see the page , as all the code is saying that the text is inside the drop down menu. -
Drop down problem when using a function plz help
DeanWhitehouse replied to Romeomussluv's topic in PHP Coding Help
ok, well i can't see a problem with the dropdown, it looks like it should. -
error with collapse table...im thinking could be to do with php
DeanWhitehouse replied to runnerjp's topic in PHP Coding Help
the code i wrote was just an example. -
error with collapse table...im thinking could be to do with php
DeanWhitehouse replied to runnerjp's topic in PHP Coding Help
that would be something like <?php $i = 1; while($i<20) { echo "id='CollapsiblePanel".$i; $i++; } ?> -
Drop down problem when using a function plz help
DeanWhitehouse replied to Romeomussluv's topic in PHP Coding Help
view the page source and show it here -
im not sure it shouldnt http://php.oregonstate.edu/manual/en/mysqli.connect.php maybe try putting the connection under the session_start(); instead of in the statement
-
I have this code to show a second nav bar when they click on certain links. A few problems i am having are: 1. Changing the link that shows the second nav so when you click it again it hides the second nav> 2.I tried adding a sliding effect so it slides from the right , but mine didnt do anything , anyone know how to it? 3.Is there anyway to make this code more effcient as i think it isn't very well coded. Any help apprciated , Thanks Blade <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>Draco Pangaia</title> <link rel="stylesheet" href="style.css" media="screen"/> <script type="text/javascript"> function show(amount,title,Link,title1,Link1,title2,Link2) { var page = "/template.php"; if(amount == 1) { var nav = "<li><a href="+Link+">"+title+"</a>"; } if(amount == 2) { var nav = "<li><a href="+Link+">"+title+"</a></li><li><a href="+Link1+">"+title1+"</a></li>"; } if(amount == 3) { var nav = "<li><a href="+Link+">"+title+"</a></li><li><a href="+Link1+">"+title1+"</a></li><li><a href="+Link2+">"+title2+"</a></li>"; } document.getElementById("show").innerHTML=nav; document.getElementById("new").innerHTML="<br>"; } alert(on); function hide() { document.getElementById('show').innerHTML=""; document.getElementById("new").innerHTML=""; } </script> </head> <body> <div id="container"> <span id="title"> Draco Pangaia </span> <div id="navbar" align="left"> <ul><li>Home</li><li>Story</li><li id="screen" onClick="show(2,'In game screens','screen.php?ingame','Pre Rendered','screen.php?pre');Slide()">Screenshots</li></ul> </div> <span id="new"></span> <div id="navbar" align="left"><ul id="show"></ul></div> <div id="maincontent"> Welcome to the official game site for Draco Pangaia. </div> </div> </body> </html>
-
http://google.com
-
Drop down problem when using a function plz help
DeanWhitehouse replied to Romeomussluv's topic in PHP Coding Help
maybe try echo "<option value='$uname'>$uname</option>"; -
should this $db = new mysqli( 'localhost', 'root', 'rn2846', 'kdesignsOrion' ); not be $db = mysqli_connect( 'localhost', 'root', 'rn2846', 'kdesignsOrion' );//or something similar?
-
javascript. Not php. or use show an image when they click upload.
-
[SOLVED] Multi submit buttons on a single form!
DeanWhitehouse replied to Stefan's topic in PHP Coding Help
quite self explaintory mysql_query, runs a query to the mysql database e.g. mysql_query("SELECT * FROM table row"); that will select a table, and then select the row from that table -
ok , first off change all HTTP_POST_VARS['']; to $_POST[''];
-
yes but i am not counting the lines to find it , post the lines where the error is or don't pm me for help
-
show the two lines where they are
-
It gives you the line numbers go and check the lines.
-
then work on fixing the errors.
-
yer, what i realised was that the php i use in javascript are static variables. like echo date(); to get the time .
-
i've mixed php and js before and it works fine.
-
[SOLVED] Multi submit buttons on a single form!
DeanWhitehouse replied to Stefan's topic in PHP Coding Help
can you please use tags