View previous topic :: View next topic |
Author |
Message |
putnam Guest
|
Posted: Sat Jun 08, 2002 12:59 pm Post subject: error 200 with new version |
|
|
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
|
Posted: Sat Jun 08, 2002 2:03 pm Post subject: Re: error 200 with new version |
|
|
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 |
|
|
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
|
Back to top |
|
|
|
|
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
|
|