|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
SQL Help, Access 97, PHP
Hi,
Currenly I am using MS Access 97 and PHP. I am trying to write a query where I can draw out the data as stated. table=IPSub Field=Website Website: http://www.abc.com/abc/edc/all.html I would like to extract the string before the 4th / . The answer should be http://www.abc.com/abc/ Any idea how can I do it? Can't use function substring since Access 97 dosen't seems to support. Thanks |
|
#2
|
||||
|
||||
|
?mid("http://www.abc.com/abc/edc/all.html",1,23)
http://www.abc.com/abc/ ?instr(1,"http://www.abc.com/abc/edc/all.html","edc") 24 try the above combination mid(givenstring,startingcharposition,noofcharacter srequired) instr(startposition,givenstring,searchstring) will return the start position of the searchstrings first character in the given string
__________________
V.Subramanian |
![]() |
| Viewing: ASP Free Forums > Database > SQL Development > SQL Help, Access 97, PHP |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|