23. juni 2003 - 19:46Der er
15 kommentarer og 1 løsning
Hente bestemte billeder fra database
Hejsa alle :-)
Jeg har en hjemmeside, hvor jeg henter billeder fra min database (access) ind med følgende:
select [File Data],[Content Type] from Files where ID = " & _ID
Problemet er at den henter alle billederne i tabellen - men nu er det sådan, at jeg kun vil have billederne der starter med th_(en eller anden tekst) ind - hvordan gør jeg det?
De fleste virksomheder har efterhånden bevist, at AI virker.
Pilotprojekter leverer resultater. Medarbejdere bruger generative AI-værktøjer. Nye use cases dukker op på tværs af organisationen.
the names of the picuteres I have saved under the field File Name and called them: 1.jpg th_1.jpg 2. jpg th_2.jpg
The binary data for each picture is saved in the field File Data
When I use select [File Data],[Content Type] from Files where ID = " & _ID Then all the pictures is shown - but I only want to see the pictures wich names starts with th_
simsen>Just a note here. Although you can have the files INSIDE the database then it is best to have your files in a folder an dNOT in the dB. Picture files fill quite a lot and Access does have its limitations!
Regarding to the above - when I writes "select [ID],[File Name],[File Size],[Content Type]," & _ "[Kategori] from Files Where [File Name] Like 'th_1.jpg" & _ "order by [Kategori] asc", connStr, 3, 4
it shows me correctly the picture for th_1.jpg
But my problem is - that there is several th_ pictures - and I don't know the hole name for them alle - so it should list alle the pictures which starts with th_
strange because in Access the * is the wildcard characater but it seems that in ASP it must be a % not to woory we got there in the end :o)
og tak !
Synes godt om
Ny brugerNybegynder
Din løsning...
Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.