close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Data Assist 2.0.5 and PHP 5.3.0

Thread began 8/27/2009 3:58 pm by sandy170299 | Last modified 8/28/2009 9:29 am by Jason Byrnes | 3572 views | 4 replies |

sandy170299

Data Assist 2.0.5 and PHP 5.3.0

I have just started using PHP with Data Assist and I'm running into some glitches. In my admin area, I am using an included header and footer file with each page's content.

<?php include("header.php"); ?>
...page content goes here...
<?php include("footer.php"); ?>

Whenever I insert or update a record, it saves the record, but instead of redirecting to the page it's supposed to redirect to, I get an error message that says, for example:

Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\lentz\admin\articles_Insert.php:26) in C:\xampp\htdocs\lentz\admin\articles_Insert.php on line 57

The lines mentioned above is the insert script and I have no idea where to start to debug it.

Sign in to reply to this post

Jason ByrnesWebAssist

This error occurs if there is any out put to the page before a header() or session_start() function.


The error reports:
output started at C:\xampp\htdocs\lentz\admin\articles_Insert.php:26

So I would start looking around line 35 and line 26, Look for and echo() command, or blank space between code blocks like:
24- ...<phpcode>
25- ?>
26-
27- <?php
28- <more PHP code>...


that blank line at 26 above will cause a similar error. if you can spot the problem, compress you page in a zip archive and attach it to your replay and I will take a look.

Sign in to reply to this post

sandy170299

Jason, I probably have things in the wrong order :) I'm attaching my page.

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

sandy170299

Jason, I think I found the problem. There was a blank line between the PHP blocks of code. I didn't realize it was so picky!

Sign in to reply to this post

Jason ByrnesWebAssist

Yeah, PHP can be quite persnickety that way.

Sign in to reply to this post

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