thomasbomb's Profile User Rating: -----

Reputation: 2 Apprentice
Group:
Members
Active Posts:
29 (0.03 per day)
Joined:
10-January 11
Profile Views:
838
Last Active:
User is offline Nov 01 2011 06:41 PM
Currently:
Offline

Previous Fields

Country:
Who Cares
OS Preference:
Windows
Favorite Browser:
Opera
Favorite Processor:
Who Cares
Favorite Gaming Platform:
Nintendo
Your Car:
Who Cares
Dream Kudos:
0
Icon   thomasbomb has not set their status

Posts I've Made

  1. In Topic: Remote server or file not found

    Posted 30 Oct 2011

    I think I found the problem guys. 000webhost must have some filter so that only its servers can access the database :oops: . I put all of the code on there and it worked. Thanks everyone for the help though.
  2. In Topic: Remote server or file not found

    Posted 30 Oct 2011

    View PostEnvXOwner, on 29 October 2011 - 06:36 PM, said:

    In PHP this is how you redirect:
    header("Location: blakldfjasdl.php");
    


    Hmm... I guess the way I understood it was that it had to be the first thing in the page, but now thinking about it everything before that is handled by the server so it is ok... Still changing that line isn't helping :helpsmilie:
  3. In Topic: Remote server or file not found

    Posted 29 Oct 2011

    View Postno2pencil, on 29 October 2011 - 06:04 PM, said:

    What is this : "content=\"0;URL=home.php\">";

    I have a question, is this code being uploaded to a server? Or are you testing this on your machine? Production code on servers very rarely carries the entire path of the files. The path is relative the webservers root directory per the site. Your include line has a full path :

    include 'C:/SpyderWeb/include/MySQL.php';

    Is this absolutely 100% correct, & not causing your issue?

    This is on my machine, and yes it is right. I guess I will try a relative path just in case.

    EDIT: Relative paths do not help.
    Also, this is what I get when I try to load the page:
    Attached File  Screenshot.JPG (16.85K)
    Number of downloads: 8
  4. In Topic: Remote server or file not found

    Posted 29 Oct 2011

    It is supposed to be a redirect, I found it online. :unsure: But I put slashes in front of it (//) and I still get the same error, so that shouldn't be the problem.
  5. In Topic: Remote server or file not found

    Posted 29 Oct 2011

    Well I already posted all of the PHP and there isn't much HTML but I will post an updated version. What I said earlier is that I WASN'T getting a blank page, but a "Remote server or file not found" error.
    <?php
    	//Gets MySQL info
    	include 'C:/SpyderWeb/include/MySQL.php';
    	
    	$connection = mysql_connect($mysql_host, $mysql_user, $mysql_password)or die(mysql_error());
    	mysql_select_db($mysql_database, $connection)or die(mysql_error());
    	
    	$username = $_Post['username'];
    	$userinfo = mysql_query("SELECT * FROM UserInfo WHERE Email='$username'")or die(mysql_error());
    	if($userinfo['password']==$_POST['password']){
    		echo "<meta http-equiv=\"refresh\" content=\"0;URL=home.php\">";
    	}
    ?>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
    <html>
    	<head>
    		<title>Sign Up</title>
     		<link rel="stylesheet" type="text/css" media="screen" href="default.css">
    	</head>
    	<body>
    		<div id="header">
    		</div>
    	</body>
    </html>
    
    

My Information

Member Title:
New D.I.C Head
Age:
Age Unknown
Birthday:
Birthday Unknown
Gender:
Years Programming:
<1
Programming Languages:
PHP, Python

Contact Information

E-mail:
Click here to e-mail me
Website URL:
Website URL  http://makefreeonlinemoola.blogspot.com/
Facebook:
http://www.facebook.com/profile.php?id=100000124157736

Friends

Comments

thomasbomb has no profile comments yet. Why not say hello?