Corona4456
Members-
Posts
244 -
Joined
-
Last visited
Never
Everything posted by Corona4456
-
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.
-
PHP/MySQL connection problems
Corona4456 replied to jessicabo's topic in PHP Installation and Configuration
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! -
how can i make the below code compatble with PHP 5 ?
Corona4456 replied to phpvox's topic in PHP Coding Help
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 . -
I'm assuming you have already looked for this url in all your code. Have you checked the databases for this?
-
how can i make the below code compatble with PHP 5 ?
Corona4456 replied to phpvox's topic in PHP Coding Help
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. -
Where does it redirect you to? Post the URL.
-
Passing arguments to event handler functions
Corona4456 replied to kael.shipman's topic in Javascript Help
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). -
Well for starters show us the code for 'loggedin.php'
-
Well... glad to confirm that you aren't insane
-
how can i make the below code compatble with PHP 5 ?
Corona4456 replied to phpvox's topic in PHP Coding Help
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? -
where is my error? not renaming correctly..
Corona4456 replied to Hofmeister's topic in PHP Coding Help
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. -
Show us the code... it might help us help you.
-
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.
-
where is my error? not renaming correctly..
Corona4456 replied to Hofmeister's topic in PHP Coding Help
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. -
how can i make the below code compatble with PHP 5 ?
Corona4456 replied to phpvox's topic in PHP Coding Help
There were no changes made that would cause such a thing. I believe the problem lies elsewhere. -
where is my error? not renaming correctly..
Corona4456 replied to Hofmeister's topic in PHP Coding Help
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? -
where is my error? not renaming correctly..
Corona4456 replied to Hofmeister's topic in PHP Coding Help
So what happens when you print the POST data? echo $_POST["artist"] . " - " . $_POST["song"]; -
$htmlcode = htmlentities("<a href=$url target='_blank'>" . $title . "</a>" . $description); echo $htmlcode;
-
AUTO INCREMENT is supposed to be AUTO_INCREMENT (no space)
-
where is my error? not renaming correctly..
Corona4456 replied to Hofmeister's topic in PHP Coding Help
Could you post the code for your form please? -
Passing arguments to event handler functions
Corona4456 replied to kael.shipman's topic in Javascript Help
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; -
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">
-
[SOLVED] need assistance with displaying row of MySQL data with JS
Corona4456 replied to webguync's topic in PHP Coding Help
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. -
[SOLVED] need assistance with displaying row of MySQL data with JS
Corona4456 replied to webguync's topic in PHP Coding Help
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.