Jump to content

sunfighter

Members
  • Posts

    579
  • Joined

  • Last visited

    Never

Everything posted by sunfighter

  1. Don't kick yourself too hard if(a==1) { xmlhttp.open("GET","allow.php?usname="+str,true); xmlhttp.send('');} <=== HERE if(a==2) {xmlhttp.open("GET","deny.php?usname="+str,true); xmlhttp.send('');} <=== HERE
  2. I'd look in your included files config.php head.php menu.php footer.php and see if you start session in one of those
  3. Do a simple css reset. html, body, ul, ol, li, form { margin: 0; padding: 0; } Add what you need.
  4. The only way your going to keep people from taking your stuff is Don't Put it on the Web!
  5. Try: onclick="document.getElementById('txtTo').innerHTML=
  6. From the PHP manual: You: You should take a little time to study php. php goes through an interpreter and generates html. php can not appear in html. You can make an entire html page with php. To put a php variable (ie. $phpvar = 'Cold Ice'; ) into a <td></td> of a html page you do this: <td><?php echo $phpvar; ?></td> and the browser will display Cold Ice where you want it in your table.
  7. onclick="return false;" Not needed <div id="navigation"> <a href="home.html">Home</a><br /> <a href="about.html">About</a><br /> <a href="contact.html">Contact</a><br /> </div>
  8. It's in your main file "index.htm" Line 308 to line 315 looks like this: <table border="0" cellpadding="0" cellspacing="0" width="100%"> <tr> <td> <table width="100%" cellspacing="0" cellpadding="0" border="0"> <tr><td> <table width="100%" cellspacing="0" cellpadding="0" border="0"> <tr><td><div class="body_t"><div class="body_b"><table cellpadding="0" cellspacing="0" border="0" width="100%"> <tr> <td align="center"> You want line 312. Try this: <tr><td> <table width="100%" cellspacing="10" cellpadding="0" border="0">
  9. In your php file you have to combine the two columns into a single echo. We're going to do this with a implode command. I'm using '/' to separate the two pieces of information. You can use anything you want as long as it is not used in either of the two resources. PHP: ... $row = mysql_fetch_array($result); $combo = implode('/', $row); echo $combo; In the javascript section we have to separate them. Where we once had: document.getElementById("txtHint").innerHTML=xmlhttp.responseText; We put: pieces = xmlhttp.responseText; number1 = pieces.search('/'); first = pieces.substr(0,number1); second = pieces.substring(number1+1); document.getElementById("txtHint").innerHTML= first; document.getElementById("nextDiv").innerHTML= second;
  10. Your php: $TheAnyPlaceString = 'What I want to show up': In the HTML box (maybe it's a div ?) PUT <?php echo $TheAnyPlaceString; ?> and it will magically appear.
  11. In the attack-items div you have two <td>'s that should be encased by <tr>'s <div id="attack-items"> <table cellspacing="10"> <tr> <td>Primary</td> <td>Secondary</td> <td>Melee</td> </tr> <td><a href="attack.php?action=use&it_id=18">Shotgun</a></td> <td>None</td><td>None</td> </table> </div>
  12. No problem pagegen. I also didn't mean to come across as use mine or else. I was just looking for some recognition, I guess and thought one query was better then two, but your don't need to use two. Using an inner join with your set up will work just as good as mine and will also be one command. If that structure makes more sense to you then use it.
  13. Guess you didn't like what I said. So one more time Your last post requires two queries. A single table uses one query. Your choice, both work.
  14. To save a lot of work later use one table to list the people on your server. Have a auto increment column for user_id, then columns for their name(s), user name(?), password, status(admin, user, affliates, and customers) ... more..... Also make columns for the extra info needed for the different statuses and make them able to be NULL. Then an admin does not need info in those columns. When someone logs in it's easy to checked their name and pass and then get all other info needed for the site.
  15. You would get a better response from Apache experts by posting in Apache HTTP Server.
  16. I don't think this is a margin. Looks like simple html body with content div. <style type="text/css"> body { background-color:#FF6600; } #the { width: 600px; margin-right:auto; margin-left:auto; height: 100px; background-color: red; } </style> </head> <body> <div id="the">put stuff here</div> </body> </html>
  17. In your working page you have no doc type and in the form line 147 you have an extra </div>. In the one that isn't working line 172 has an extra </form> which puts your submit button outside of the form. It also shows 54 errors. Line 184 has an extra </div>
  18. Did you get an error message and if yes what was it? First steps in trouble shooting code : Check the inputs! echo out $nickname Did you make a connection to your db? I ask because it's not shown that you did here and you don't tell us if the connection is a global variable, which you would need here.
  19. $_SESSION only holds the information you put into it. To find out "members" that go to the same "school" as the current user and/or the people that started in the same "semester" as he/she, you have to query your database. And mysql_insert_id(); retrieves the ID generated for an AUTO_INCREMENT column by the previous query (usually INSERT). If your really a dumb dumb when it comes to PHP my suggestion is to cram very hard cause there is no way your going to get a social networking website running without it.
  20. Giving us the error message helps a lot. 'still not working' doesn't. absolute_url is not a php thing. change: $url = absolute_url ('loggedin.php'); header("Location: $url"); to header("Location: loggedin.php"); need to do this for login.php and loggedin.php (where its not defined at all).
  21. Did you move the session_start as I asked you to? Didn't that fix the problem?
  22. Are you sure createchart.php is an image and not a php file? rename is a simple php command that will take care of things like renaming a file.
  23. I have been trying to do this in css, but I can come up with no solution. :-\ JS is the weasely way out.
×
×
  • 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.