close ad
Install the LAtest Updates to Work with CC 2017 and CC 2018
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Delete User

Thread began 8/20/2011 8:24 am by daniel387105 | Last modified 9/02/2011 11:18 am by Jason Byrnes | 1851 views | 17 replies |

daniel387105

Error DataAssist

i have already set this up but i get this error when i delete the user and it shows at the very top of my website???? i click on delete and i get this and this is correct but on this page i get the bellow error????

Delete User
Delete Record

Are you sure you want to delete the following record?
UserID:
36
UserEmail:
test.@test.com


This bit show live on my website when i try to delete the user the delete usre works but i need to sort this error as it looks bad????

Warning: Cannot modify header information - headers already sent by (output started at /home/justvibe/public_html/users_Delete.php:14) in /home/justvibe/public_html/users_Delete.php on line 88

Sign in to reply to this post

Jason ByrnesWebAssist

this is the most common error in PHP.

it means that there is out put on the page at line 14 or 13 of the users_Delete.php page.

see the following thread for details on the cause, and how to fix it:
showthread.php?t=19285

Sign in to reply to this post

daniel387105

line 13 <link href="css/navigation-style.css" rel="stylesheet" type="text/css" />
line 14 <link href="css/style.css" rel="stylesheet" type="text/css" />

Sign in to reply to this post

Jason ByrnesWebAssist

the error is saying that there is HTML on the page before the session)start() or header functions are called.

the css code should be just before the closing </head> tag in your document, having it up around line 13 and 14 is to soon.

Sign in to reply to this post

daniel387105

Line 13 <link href="css/navigation-style.css" rel="stylesheet" type="text/css" />
line 14 <link href="css/style.css" rel="stylesheet" type="text/css" />

Sign in to reply to this post

Jason ByrnesWebAssist

yes, that code at line 13 and 14 is causing the error, see my previous reply

Sign in to reply to this post

daniel387105

HI ok i have moved the css to just before the </head> and i get this message

Warning: Cannot modify header information - headers already sent by (output started at /home/wwwjust/public_html/users_Delete.php:13) in /home/wwwjust/public_html/users_Delete.php on line 86


<?php require_once( "WA_SecurityAssist/Helper_PHP.php" ); ?>
<?php
if (!WA_Auth_RulePasses("admin")){
WA_Auth_RestrictAccess("access-denied.php");
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Authorised Access Delete User Just Vibe Family Only</title>
<meta name="Keywords" content="online radio, internet radio, online internet radio station, funky house, garage radio, urban radio, uk garage music, UK internet radio webcam, electro radio, funky house radio, webradio" />
<meta name="Description" content="Just Vibe Online Radio features Live djs playing 24/7.djs playing uk garage, drum n bass, electro house, funky house, urban, trance, old skool" />
<?php require_once('Connections/myconnection.php'); ?>
<?php require_once("WA_DataAssist/WA_AppBuilder_PHP.php"); ?>
<?php
if (!function_exists("GetSQLValueString")) {
function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
{
if (PHP_VERSION < 6) {
$theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
}

$theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);

switch ($theType) {
case "text":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "long":
case "int":
$theValue = ($theValue != "") ? intval($theValue) : "NULL";
break;
case "double":
$theValue = ($theValue != "") ? doubleval($theValue) : "NULL";
break;
case "date":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "defined":
$theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
break;
}
return $theValue;
}
}
?>
<?php
$ParamUserID_WADAusers = "-1";
if (isset($_GET['UserID'])) {
$ParamUserID_WADAusers = (get_magic_quotes_gpc()) ? $_GET['UserID'] : addslashes($_GET['UserID']);
}
mysql_select_db($database_myconnection, $myconnection);
$query_WADAusers = sprintf("SELECT UserID, UserEmail FROM users WHERE UserID = %s", GetSQLValueString($ParamUserID_WADAusers, "int"));
$WADAusers = mysql_query($query_WADAusers, $myconnection) or die(mysql_error());
$row_WADAusers = mysql_fetch_assoc($WADAusers);
$totalRows_WADAusers = mysql_num_rows($WADAusers);?>
<?php
// WA Application Builder Delete
if (isset($_POST["Delete_x"])) // Trigger
{
$WA_connection = $myconnection;
$WA_table = "users";
$WA_redirectURL = "users_Results.php";
if (function_exists("rel2abs")) $WA_redirectURL = $WA_redirectURL?rel2abs($WA_redirectURL,dirname(__FILE__)):"";
$WA_keepQueryString = false;
$WA_fieldNamesStr = "UserID";
$WA_columnTypesStr = "none,none,NULL";
$WA_fieldValuesStr = "".((isset($_POST["WADADeleteRecordID"]))?$_POST["WADADeleteRecordID"]:"") ."";
$WA_comparisonStr = "=";
$WA_fieldNames = explode("|", $WA_fieldNamesStr);
$WA_fieldValues = explode("|", $WA_fieldValuesStr);
$WA_columns = explode("|", $WA_columnTypesStr);
$WA_comparisions = explode("|", $WA_comparisonStr);
$WA_connectionDB = $database_myconnection;
mysql_select_db($WA_connectionDB, $WA_connection);
if (!session_id()) session_start();
$deleteParamsObj = WA_AB_generateWhereClause($WA_fieldNames, $WA_columns, $WA_fieldValues, $WA_comparisions);
$WA_Sql = "DELETE FROM `" . $WA_table . "` WHERE " . $deleteParamsObj->sqlWhereClause;
$MM_editCmd = mysql_query($WA_Sql, $WA_connection) or die(mysql_error());
if ($WA_redirectURL != "") {
if ($WA_keepQueryString && $WA_redirectURL != "" && isset($_SERVER["QUERY_STRING"]) && $_SERVER["QUERY_STRING"] !== "" && sizeof($_POST) > 0) {
$WA_redirectURL .= ((strpos($WA_redirectURL, '?') === false)?"?":"&").$_SERVER["QUERY_STRING"];
}
header("Location:".$WA_redirectURL);
}
}
?>
<link href="css/navigation-style.css" rel="stylesheet" type="text/css" />
<link href="css/style.css" rel="stylesheet" type="text/css" />
</head>
<head>
<meta http-equiv="Content-Type" content="
&lt;/head&gt;
&lt;body&gt;
&lt;div id="shadow="shadow">
</head>
<body>

Sign in to reply to this post

Ray BorduinWebAssist

All of the html that appears in the php code should be moved below the php code... so this portion:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Authorised Access Delete User Just Vibe Family Only</title>
<meta name="Keywords" content="online radio, internet radio, online internet radio station, funky house, garage radio, urban radio, uk garage music, UK internet radio webcam, electro radio, funky house radio, webradio" />
<meta name="Description" content="Just Vibe Online Radio features Live djs playing 24/7.djs playing uk garage, drum n bass, electro house, funky house, urban, trance, old skool" />



Should be moved to just above the first <link> reference.

It also appears you have an extra "<head>" tag above the body that should be removed.

If you continue to have problems, please attach a zipped copy of the page rather than copy and pasting it so that we can correct and send back the updates.

Sign in to reply to this post

daniel387105

Thanks

Ok still something not right now when i hit the delete btn it just gos to a blank page with this message


Not Found
The requested URL /home/wwwjust/public_html/users_Results.php was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.


--------------------------------------------------------------------------------

Apache/2.2.13 (Unix) mod_ssl/2.2.13 OpenSSL/0.9.8e-fips-rhel5 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 Server at www.justvibe.co.uk Port 80

Attached Files
users_Delete.zip
Sign in to reply to this post

Jason ByrnesWebAssist

there is a fix for this issue in the known issues section of the Data Assist download center page.

Sign in to reply to this post
loading

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...