Computer Webmaster Gaming Console Graphics Forum

Welcome to the Computer Webmaster Gaming Console Graphics Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.

MK PitStop Main Earn $25 Earn Money Posting Extras Members Blogs Image Hosting User Pages
Go Back   Computer Webmaster Gaming Console Graphics Forum > Webmaster Forum > Website Coding > PHP
Register FAQ/Rules Become A V.I.P. Member Search Today's Posts Mark Forums Read

PHP PHP for some can be one of the hardest website programming codes, so do you need help on your PHP script, if it is php4, php5 or lower this is the place for you for any PHP help.

Google
Closed Thread
 
LinkBack Thread Tools Display Modes
Old 07-01-2007, 3:57 PM   #1
hans
 
hans's Avatar
 
Posts: n/a
My Photos: (0)

Banked:
MK Cash: $

I am Worth:
MK Cash: $
Donate

Recent Blog: None

Default MS Access Access

Hi,

I'm pulling my hairs out on the following.
I have a database.mdb which I want to access by a web site.

Now everything works fine (it's displayed when I want it, so the connection
is made), but I can't add records.
I've been to php.net, and there I have seen:
INSERT foo into Table Values (var1, var2, var3)
INSERT foo into Table Values ("\ var1, "\ var2, "\ var3")
INSERT foo into Table Values ($var1, $var2, $var3)
INSERT foo into Table Values ("$var1", "$var2", "$var3")
etcetera.
It's very nice that eighty five options are given, but which syntaxis is the
correct one?
Any help would be appreciated.

I'm running PHP 5.0 beta 1 on IIS 5.1

Thanks in advance,

Hans


 
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit!
Advertisements
Old 07-01-2007, 3:57 PM   #2
Jeffrey Silverman
 
Jeffrey Silverman's Avatar
 
Posts: n/a
My Photos: (0)

Banked:
MK Cash: $

I am Worth:
MK Cash: $
Donate

Recent Blog: None

Default MS Access Access

On Mon, 28 Jul 2003 18:04:22 +0200, hans wrote:

> Hi,
>
> I'm pulling my hairs out on the following. I have a database.mdb which I
> want to access by a web site.
>
> Now everything works fine (it's displayed when I want it, so the
> connection is made), but I can't add records.
> I've been to php.net, and there I have seen: INSERT foo into Table Values
> (var1, var2, var3) INSERT foo into Table Values ("\ var1, "\ var2, "\
> var3") INSERT foo into Table Values ($var1, $var2, $var3) INSERT foo into
> Table Values ("$var1", "$var2", "$var3") etcetera.
> It's very nice that eighty five options are given, but which syntaxis is
> the correct one?
> Any help would be appreciated.
>
> I'm running PHP 5.0 beta 1 on IIS 5.1
>
> Thanks in advance,
>
> Hans


It looks like none is. It should be "INSERT INTO foo..."

But if you fix that out of the way, the answer is that all of the above
statments might by correct syntax.

There are several things going on on those statement snippets that are
blending PHP syntax with SQL syntax, which is why it is confusing.

For example:
* all of the "$var1" strings are probably referring to a PHP variable.
* The backslash statments are probably not right. They should probably
be \" and not "\ -- that is the backslash *before* the quote. This is used
to make PHP ignore double quotes that occurr *inside* a double-quoted
string.

There are several things you need to learn before a detailed explanation
will be of much use. Please RTFM on:
* PHP strings
* backslash as an escape sequence
* SQL syntax

later...!
--
Jeffrey D. Silverman | jeffrey AT jhu DOT edu
Johns Hopkins University | Baltimore, MD
Website | http://www.wse.jhu.edu/newtnotes/

 
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit!
Old 07-01-2007, 3:57 PM   #3
hans
 
hans's Avatar
 
Posts: n/a
My Photos: (0)

Banked:
MK Cash: $

I am Worth:
MK Cash: $
Donate

Recent Blog: None

Default MS Access Access

Sigh... Anyone else who understands the question?


 
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit!
Old 07-01-2007, 3:58 PM   #4
Aphrael
 
Aphrael's Avatar
 
Posts: n/a
My Photos: (0)

Banked:
MK Cash: $

I am Worth:
MK Cash: $
Donate

Recent Blog: None

Default MS Access Access

"hans" <ijsbergvla@NOSPAMhotmail.com> wrote in news:bg66d1$es5$1
@news.cistron.nl:

> Sigh... Anyone else who understands the question?


I do, but.. do you connect / work with ODBC functions ? Did you look into
the manual, there are some interesting comments... here,
http://ch.php.net/manual/en/function.odbc-exec.php
Someone named Rupix...

Hope it helps...
--
Aphrael
http://ludivers.fr.st
 
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit!
Old 07-01-2007, 3:58 PM   #5
Jeffrey Silverman
 
Jeffrey Silverman's Avatar
 
Posts: n/a
My Photos: (0)

Banked:
MK Cash: $

I am Worth:
MK Cash: $
Donate

Recent Blog: None

Default MS Access Access

On Tue, 29 Jul 2003 18:12:20 +0200, hans wrote:

> Sigh... Anyone else who understands the question?


Here is Hans's emailed reply to me, just to point out that he is a jerk.
I was only trying to help, and this is what I get. sheesh!

Hans Timp wrote:
> I know how extremely good you are. I also know that you use terms like
> 'RTFM', even when you don't even understand my question. I was using SQL
> when you were still sucking your mom's breast, so better READ a question
> yourself before you polute a newsgroup with your stupid cliché arrogance. We
> are definitely NOT waiting for lamers like you. And don't tell me to read a
> manual, rite after I said that manual sucks. Because that is even more
> stupid.
>
> I guess you're an American, rite?
>



I was not being arrogant, I was being straightforward. There is a big
diffrerence.

But whatever. Frankly, your question, as posted, is very difficult to
understand. I was doing the best I could to *help* -- its not my fault if
you take things so ****ing personally.

If I don't understand your question, I'm probably not alone. Try
rephrasing it or including verbatim code snippets.

Also, don't assume things. How old do you think I am, anyways?

--
Jeffrey D. Silverman | jeffrey AT jhu DOT edu
Johns Hopkins University | Baltimore, MD
Website | http://www.wse.jhu.edu/newtnotes/

 
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit!
Featured Websites
Free Space
Free Space
Free Space Free Space
Closed Thread
Tags:




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Interface to Access ft310 Database 0 05-31-2007 8:43 PM
access privileges Bart Vandewoestyne Database 2 05-31-2007 8:38 PM
Access Programmer / Access Developer Can help Automate your BIZ sos Building An Internet Business 0 05-29-2007 3:10 AM
********ACCESS TO A COMPUTER? RJ Building An Internet Business 0 05-29-2007 1:44 AM
ms access theseeric Database 1 08-02-2006 1:41 AM


Featured Websites




All times are GMT +1. The time now is 12:04 AM.


Powered by: vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.0.0
Cheap Computers
MK PitStop Copyright 2005 - 2008

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98