Jump to content

DeanWhitehouse

Members
  • Posts

    2,527
  • Joined

  • Last visited

Everything posted by DeanWhitehouse

  1. BUMP. Soz really need help on this
  2. 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>
  3. 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 .
  4. 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"); ?>
  5. 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.
  6. 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.
  7. ok, well i can't see a problem with the dropdown, it looks like it should.
  8. the code i wrote was just an example.
  9. that would be something like <?php $i = 1; while($i<20) { echo "id='CollapsiblePanel".$i; $i++; } ?>
  10. view the page source and show it here
  11. 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
  12. 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>
  13. http://google.com
  14. maybe try echo "<option value='$uname'>$uname</option>";
  15. should this $db = new mysqli( 'localhost', 'root', 'rn2846', 'kdesignsOrion' ); not be $db = mysqli_connect( 'localhost', 'root', 'rn2846', 'kdesignsOrion' );//or something similar?
  16. javascript. Not php. or use show an image when they click upload.
  17. 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
  18. ok , first off change all HTTP_POST_VARS['']; to $_POST[''];
  19. 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
  20. show the two lines where they are
  21. It gives you the line numbers go and check the lines.
  22. then work on fixing the errors.
  23. yer, what i realised was that the php i use in javascript are static variables. like echo date(); to get the time .
  24. i've mixed php and js before and it works fine.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.