Please help, Someone there who knows how to create an sql for ms access database and php. The Problem is the fields in the table are written with spaces and I am not gonna change it in any means because it is connected to a very large program and it will take a lot of time to revise all the codes in the entire software so i think i can query this database even if it has a space. Thanks for helping ..
nyler01
0
Light Poster
Recommended Answers
Jump to PostIn mysql you can quote columns using the backtick character, in mssql using brackets. Possibly access has a similar method, but I have not found it yet.
Jump to Posti've tried using bactick character but it failed.
Then you either are NOT using MySQL OR you probably used apostrophes instead of backticks. The backtick (`) is the one on the same key as the ~ character.
Jump to Postagain if you are using MS Access:
SELECT [First Name] FROM [Users Table]
but in MySQL:
SELECT `First Name` FROM `Users Table`
All 12 Replies
pritaeas
2,194
¯\_(ツ)_/¯
Moderator
Featured Poster
nyler01
0
Light Poster
hielo
65
Veteran Poster
hielo
65
Veteran Poster
nyler01
0
Light Poster
hielo
65
Veteran Poster
nyler01
0
Light Poster
hielo
65
Veteran Poster
nyler01
0
Light Poster
hielo
65
Veteran Poster
nyler01
0
Light Poster
nyler01
0
Light Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.