close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

message error when inserting

Thread began 9/19/2009 8:46 am by brunodarwin371999 | Last modified 9/24/2009 9:11 am by brunodarwin371999 | 2509 views | 8 replies |

brunodarwin371999

message error when inserting

Hi,

I am working on localhost.
I have created a very simple database with PHPmyAdmin.
Just one very simple table : "visitors" with 2 fields :
"ID" and "NAME".
In PHPmyAdmin, I can add names and see them in Dreamweaver.
However, when I use DATA ASSIST V2, I cannot INSERT DELETE or UPDATE any new name.

For example, I get the following error message in my browser when I try to INSERT a new name :

Notice: Undefined offset: 1 in C:\wamp\www\dbdb\WA_DataAssist\WA_AppBuilder_PHP.php on line 125

Notice: Undefined offset: 1 in C:\wamp\www\dbdb\WA_DataAssist\WA_AppBuilder_PHP.php on line 125

Notice: Undefined offset: 2 in C:\wamp\www\dbdb\WA_DataAssist\WA_AppBuilder_PHP.php on line 126

Notice: Undefined offset: 2 in C:\wamp\www\dbdb\WA_DataAssist\WA_AppBuilder_PHP.php on line 126

Unknown column 'undefinedfundefined' in 'field list'

Here are the line codes to help :

123 $WA_typesArray = explode(",", $columnTypeList[$i]);
124 $delim = ($WA_typesArray[0] != "none") ? $WA_typesArray[0] : "";
125 $altVal = ($WA_typesArray[1] != "none") ? $WA_typesArray[1] : "";
126 $emptyVal = ($WA_typesArray[2] != "none") ? $WA_typesArray[2] : "";
if ($formVal == "" || $formVal == "undefined")

I there someone to help me ?

Thank you in advance for your help.

Bruno

Sign in to reply to this post

brunodarwin371999

In order to help

This post has been deleted.

Jason ByrnesWebAssist

Can you send a copy of your insert page in a zip archive.

Sign in to reply to this post

brunodarwin371999

Here it is

Here is the visitor Insert PHP page.

(Very light page)

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

Jason ByrnesWebAssist

It looks like the data type was not properly set.

double click the insert Record Server behavior. On the Second page of the wizard, make sure a data type is selected for both columns, then press OK.

Sign in to reply to this post

brunodarwin371999

Excellent Jason !

In fact, the DA provides a numeric data type instead of text.
(I attached a picture so that you can see it)

> that generates the same problem with update page. But everything is normal when I manually make the correction.

Does the problem comes from DA or from my side ?

Here is also a copy of my small sql file :

CREATE TABLE IF NOT EXISTS `visitors` (
`id` smallint(6) NOT NULL AUTO_INCREMENT,
`Name` text NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;

Thank you again!

Sign in to reply to this post

Jason ByrnesWebAssist

I think it is the smallint data type, the wizard will try to set the datatype automatically, but I think it is getting confused on the smallint column you are using.

Sign in to reply to this post

brunodarwin371999

Ok Thank you Jason.

To finish how to fix it?
> TINYINT, INT or BIG INT has the same result.

Manually each time ?

Sign in to reply to this post

Jason ByrnesWebAssist

Yes, you'll have to fix it manually, it seams DataAssist is not able to retrieve column types from your table for some reason.

Sign in to reply to this post

brunodarwin371999

Thank you Jason

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