Jump to content

xrado

New Members
  • Posts

    5
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

xrado's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. i'd like to connect from remote host to MSSQL server 2005 express. MSSQL uses windows authentication and path to database table looks like this: ACER-TM4104\SQLEXPRESS\Databases\authors ACER-TM4104 is computer name and it has ip 192.168.1.4. i dont know about password...where do i set it? i tried a few variants with connection below but every one : PHP Warning:  mssql_connect(): Unable to connect to server <?   $link=mssql_connect("192.168.1.4\SQLEXPRESS","",""); ?>
  2. let's say i wana do something onmouseover="somefunction(this)" how do i check if mouse button is pressed down in function somefunction(this) ?
  3. xrado

    parsing text

    thx a lot! works just like i wannet  :) i have to learn those regex exprassions
  4. xrado

    parsing text

    thx!  :) \w is for word.. but what if is want to say everything except "," i would also like to have space and some other characters befour and inside the ()
  5. xrado

    parsing text

    i would like to parse string: apple(3),banana(10),orange(aaa) and get out the fruit name and what ever is between () [code]Array (     [0] => Array         (             [0] => apple             [1] => 3         )     [1] => Array         (             [0] => banana             [1] => 4         )     [2] => Array         (             [0] => orange             [1] => aaa         ) )[/code] i would also like to still get the name if () is missing ..like this [move][move][/move][/move] [code]    [2] => Array         (             [0] => orange             [1] =>         )[/code] ...this is what i achomplished till now with [code]$aa = "apple(3),banana(10),orange(aaa)"; preg_match_all("/([a-zA-Z0-9 ]*)(\(?([a-zA-Z0-9]*)\)?)/", $aa, $matches, PREG_SET_ORDER); print_r($matches);[/code] [code]Array (     [0] => Array         (             [0] => apple(3)             [1] => apple             [2] => (3)             [3] => 3         )     [1] => Array         (             [0] =>             [1] =>             [2] =>             [3] =>         )     [2] => Array         (             [0] => banana(10)             [1] => banana             [2] => (10)             [3] => 10         )     [3] => Array         (             [0] =>             [1] =>             [2] =>             [3] =>         )     [4] => Array         (             [0] => orange(aaa)             [1] => orange             [2] => (aaa)             [3] => aaa         )     [5] => Array         (             [0] =>             [1] =>             [2] =>             [3] =>         ) )[/code] if i get four dimensional resoult its ok..but i dont want empty result
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.