Search found 9 matches

by macbeth
Wed Jul 22, 2009 10:34 am
Forum: PHP - Code
Topic: Field 'id' doesn't have a default value
Replies: 2
Views: 560

Re: Field 'id' doesn't have a default value

That was my first thought, but when I went into the database and checked, it is set to auto-increment.
by macbeth
Wed Jul 22, 2009 9:52 am
Forum: PHP - Code
Topic: Field 'id' doesn't have a default value
Replies: 2
Views: 560

Field 'id' doesn't have a default value

I am getting this error when i try to insert data into my mysql database.

Field 'id' doesn't have a default value

Does anybody know why I would be getting this?
by macbeth
Thu May 14, 2009 12:56 pm
Forum: PHP - Code
Topic: Web page extensions?
Replies: 2
Views: 119

Re: Web page extensions?

That makes a lot of sense. Thanks so much for the reply.
by macbeth
Thu May 14, 2009 12:40 pm
Forum: PHP - Code
Topic: Web page extensions?
Replies: 2
Views: 119

Web page extensions?

I am creating a brand new site as a php newbee and I will have some pages that will not use any php code. My question is: What is the standard procedure for naming conventions for web sites that have mixed pages? Do I just name every page with a .php extention or should I have mixed .html and .php p...
by macbeth
Thu May 07, 2009 11:03 am
Forum: PHP - Code
Topic: Display Errors in Browser Window
Replies: 1
Views: 340

Display Errors in Browser Window

Can somebody tell me how to display errors in my browser window. I am just beginning to use php and I would like to see exactly where my code breaks so it is easier for me to troubleshoot. I am told that in the php.ini file that the "Error Reporting" is set to ON and the "Display Erro...
by macbeth
Fri Apr 24, 2009 1:44 pm
Forum: PHP - Code
Topic: Need Help with Code
Replies: 8
Views: 4623

Re: Need Help with Code

This is what I get INSERT INTO MAINEVENT (FNAME, LNAME, SUID, EMAIL, DEPT, PHONE, ADDRESS, FIRSTYR, SSIZE, STYPE, PARTICIPATE, ATTEND, GUESTS) VALUES ('Brian', 'O\\\'Toole', '1223456', 'something@aol.com', 'Department', 'Phone', 'Address', 'Yes', 'S', 'Tank', '', 'Yes I will attend', '2') Warning: o...
by macbeth
Fri Apr 24, 2009 12:31 pm
Forum: PHP - Code
Topic: Need Help with Code
Replies: 8
Views: 4623

Re: Need Help with Code

I don't have anything to echo because it's not getting into the database.

The output in the email, however, looks like this: O\'Toole

As you can probably see, i'm a newbie! To say the very least.
by macbeth
Fri Apr 24, 2009 9:59 am
Forum: PHP - Code
Topic: Need Help with Code
Replies: 8
Views: 4623

Re: Need Help with Code

I tried it with the addslashes command and I am getting this error: Warning: ociparse(): OCIParse: ORA-01756: quoted string not properly terminated in /xxx on line 44 Warning: ociexecute(): supplied argument is not a valid OCI8-Statement resource in /xxx on line 45 Unable to execute query I altered ...
by macbeth
Fri Apr 24, 2009 9:35 am
Forum: PHP - Code
Topic: Need Help with Code
Replies: 8
Views: 4623

Need Help with Code

I am trying to get data into an Oracle database using PhP 4. I am having problems with the apostrophe (') that appears in some names (e.g., O'Dell). I keep getting the following error: ociparse(): OCIParse: ORA-01756: quoted string not properly terminated I would appreciate any help I could get with...