close ad
Help us test the new Databridge BETA with MySQLi support
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

'Warning: Cannot modify header information .....' Error ?

Thread began 10/12/2015 10:23 am by s.joiner74419001 | Last modified 10/22/2015 3:03 pm by s.joiner74419001 | 1378 views | 23 replies


So when I run the sql statement in phpMyAdmin I get the correct result.

You refer to the LOGIN which confuses me because no one is logged in to anything. The user will be in the process of applying for membership.

That aside, if I write the session to the cart.php page and then test it using the record set as follows:

mysql_select_db($database_RTMFadmin, $RTMFadmin);
$query_rsProduct = "SELECT * FROM products";
$rsProduct = mysql_query($query_rsProduct, $RTMFadmin) or die(mysql_error());
$row_rsProduct = mysql_fetch_assoc($rsProduct);
$totalRows_rsProduct = mysql_num_rows($rsProduct);

and then just bind products.quantity to the quantity column in the Add to cart behaviour;

It works and the correct session is written to the cart.php page. But of course the quantity value is wrong.

If I use the following record set:

$getID_rsProduct = "-1";
if (isset($_SESSION['members_id'])) {
$getID_rsProduct = $_SESSION['members_id'];
mysql_select_db($database_RTMFadmin, $RTMFadmin);
$query_rsProduct = sprintf("SELECT products.item_id, products.item_name, products.base_charge, products.per_flat_price, products.meta_description, rtm_companies.item_id, rtm_companies.flats FROM products INNER JOIN rtm_companies ON products.item_id = rtm_companies.item_id WHERE rtm_companies.members_id = %s", GetSQLValueString($getID_rsProduct, "int"));
$rsProduct = mysql_query($query_rsProduct, $RTMFadmin) or die(mysql_error());
$row_rsProduct = mysql_fetch_assoc($rsProduct);
$totalRows_rsProduct = mysql_num_rows($rsProduct);

And then bind rtm_companies.flats to the quantity column. It doesn't re-direct to the cart.php page after submitting the form and so the process fails.

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





Ease of use


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...