Jump to content

Corona4456

Members
  • Posts

    244
  • Joined

  • Last visited

    Never

Everything posted by Corona4456

  1. Do you not have a database admin tool? Such as phpMyAdmin or something similar? Keep in mind that if it's obfuscated then you might still not find it then but hopefully this isn't the case.
  2. Hmm... there was a great PHP/MySQL user authentication tutorial on PHP freaks but I couldn't find it for some reason, so instead I found this one: http://www.tutorialized.com/view/tutorial/Login-Logout-with-a-Session-in-1-file/20041 It uses sessions to so that you can see how the $_SESSION variable is used, hope this helps!
  3. A quick fix would be: mysql_db_query($db_name, $q_str); instead of: mysqldb_name, $q_str); Although, I would recommend a lot of restructuring .
  4. I'm assuming you have already looked for this url in all your code. Have you checked the databases for this?
  5. Umm... I see your problem. You should never use the mysql() function. I couldn't really find any information on it but it seems to use some sort of default configuration to connect to your database which may have been ignored in PHP4 but used in PHP5. Always use mysql_query() for executing queries in mysql.
  6. Where does it redirect you to? Post the URL.
  7. Yeah... but how would you pass the variables before if they weren't global? Just out of curiosity. I mean if you were able to do: window.onLoad = function(a,b) { ... } Just wondering . I'm not sure what you are trying to accomplish so hard for me to figure out a solution (if there is any).
  8. Well for starters show us the code for 'loggedin.php'
  9. Well... glad to confirm that you aren't insane
  10. I guess a better question is. What exactly is your script doing on PHP5? Is it just showing you your PHP code? If so then Thorpe's suggestion should work, otherwise, we'll need to know more about the problem, like what exactly do you get when you run the script?
  11. Hmm... something is just not adding up here. Could you post your latest PHP script? I just want to look over it and make sure there's something I'm not missing here. It's just not making sense why $artist and $song are being printed and $art and $sng are not being set.
  12. Show us the code... it might help us help you.
  13. Looking at the hex dump it you are correct NerdConcepts. It does put a \0 character after every single character, so if you have an editor such as TextPad, you can save the file as UTF-8, ANSI or ASCII then you will be able to import the file just fine.
  14. Heh... that's odd... looks like register globals is On, however, that makes no sense as to why $_POST var wouldn't be set. I do see a problem with the code however: if(isset($_FILES["Filedata"])){ if(isset($_POST["song"])) if(isset($_POST["artist"])) $sng = $_POST["song"]; $art = $_POST["artist"]; I don't know if that's your intention but it looks like $sng = $_POST["song"] will be the only line to execute if $_POST["artist"] is set.
  15. There were no changes made that would cause such a thing. I believe the problem lies elsewhere.
  16. So you are saying that the script above will output the artist and song in the xml file but not when you are saving the file?
  17. So what happens when you print the POST data? echo $_POST["artist"] . " - " . $_POST["song"];
  18. $htmlcode = htmlentities("<a href=$url target='_blank'>" . $title . "</a>" . $description); echo $htmlcode;
  19. AUTO INCREMENT is supposed to be AUTO_INCREMENT (no space)
  20. The only way I've seen it done is by creating a wrapper function which would pass the arguments: function funcWithArgs(arg1,arg2){ ... } function wrapperFunc(){ funcWithArgs(a1,a2); } .... window.onload = wrapperFunc;
  21. If it's a redirect using PHP, it would be: header("Location: http://website.com"); it can also be done using meta tags: <meta http-equiv="refresh" content="5;URL=http://www.somesite.com">
  22. Looks like you'll need to use AJAX for this one. Unless you want to reload the whole page again with the new gender and in that case you really won't need javascript.
  23. Oops... sorry I was mistaken you can use getElementById() it was introduced in IE5 heh... anyway, this code should work, I tested it on both IE and FF and works as it should. <script language="JavaScript" type="text/javascript"> function FuncShowHide(rowid){ row = document.getElementById(rowid); if(row.style.display == "none"){ row.style.display = ""; } else { row.style.display = "none"; } } </script> I guess IE doesn't support the "table-row" display value.
  24. that's because IE doesn't use getElementById() it uses document.all So for cross compatibility between the two you can add this: <script language="JavaScript" type="text/javascript"> function FuncShowHide(rowid){ if(document.getElementById){ row = document.getElementById(rowid); } else if(document.all) { row = document.all[rowid]; } if(row.style.display == "none"){ row.style.display = "table-row"; } else { row.style.display = "none"; } } </script> Hope this helps.
×
×
  • 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.