error 200 with new version

 
Post new topic   Reply to topic    Aprelium Forum Index -> General Questions
View previous topic :: View next topic  
Author Message
putnam
Guest





PostPosted: Sat Jun 08, 2002 12:59 pm    Post subject: error 200 with new version Reply with quote

i'm getting an error 200 with my php file, i've stuck all the actual php code here, but none of the html:

<?php
require_once('Connections/conn.php');
?>
<?php
//if they are deleting packs
if ($action == 1) {
mysql_select_db($database_conn, $conn);
$sql = "DELETE from packs WHERE title = '$pack'";
$worked = mysql_query($sql, $conn) or die(mysql_error());;
}
//if they are changing their name
if ($action == 2) {
mysql_select_db($database_conn, $conn);
$sql = "UPDATE user SET username = '$name'";
$worked = mysql_query($sql, $conn) or die(mysql_error());;
$namechange = true;
}
//if they are changing their password
if ($action == 3) {
if ($pass == $pass2) {
mysql_select_db($database_conn, $conn);
$sql = "UPDATE user SET password = '$pass'";
$worked = mysql_query($sql, $conn) or die(mysql_error());;
$passchange = true;
}
else {
$badmix = true;
}
}

mysql_select_db($database_conn, $conn);
$query_packrs = "SELECT * FROM packs";
$packrs = mysql_query($query_packrs, $conn) or die(mysql_error());
$row_packrs = mysql_fetch_assoc($packrs);
$totalRows_packrs = mysql_num_rows($packrs);

mysql_select_db($database_conn, $conn);
$query_username = "SELECT username FROM `user`";
$username = mysql_query($query_username, $conn) or die(mysql_error());
$row_username = mysql_fetch_assoc($username);
$totalRows_username = mysql_num_rows($username);
?>

-----------------------end of php code, begin html--------------------------

maybe you might wanna see the Connections/conn.php file, here it is

<?php
# FileName="Connection_php_mysql.htm"
# Type="MYSQL"
# HTTP="true"
$hostname_conn = "localhost";
$database_conn = "packs";
$username_conn = "betas";
$password_conn = "webserv";
$conn = mysql_pconnect($hostname_conn, $username_conn, $password_conn) or die(mysql_error());
?>

--------------------end of file--------------

please help me, i'm getting this error 200 all of a sudden and upgrading to the new version didn't fix it. i have register_globals turned ON in my ini file.

-putnam
Back to top
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Sat Jun 08, 2002 2:03 pm    Post subject: Re: error 200 with new version Reply with quote

putnam wrote:
i'm getting an error 200 with my php file, i've stuck all the actual php code here, but none of the html:

....

please help me, i'm getting this error 200 all of a sudden and upgrading to the new version didn't fix it. i have register_globals turned ON in my ini file.

-putnam

Error 200 means that your script made no output.
If you check it, you will notice that it works but that it does not output any HTML code.
So just add at the end for example
Code:
<HTML><BODY>It worked</BODY></HTML>
and you will never get this error 200.
_________________
Support Team
Aprelium - http://www.aprelium.com
Back to top View user's profile Send private message Send e-mail
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Sat Jun 08, 2002 2:08 pm    Post subject: Re: error 200 with new version Reply with quote

To know more about error 200, please read http://www.aprelium.com/forum/viewtopic.php?p=267&highlight=#267 .
_________________
Support Team
Aprelium - http://www.aprelium.com
Back to top View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> General Questions All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group