[PHP-DB] A very basic PHP question

2008-04-25 Thread Nasreen Laghari
Hi, I have some confusion with Variables scope. I searched but couldn't figure it out :( The question is: one variable which changes according to if... else statment, how do you change the value of that variable? Actually $query is changing on $type variable so I tried doing u

[PHP-DB] Re: php and mssql on seperate servers

2008-04-25 Thread Rick Taylor
Thanks for the help everyone. It is now fixed. They guy that originally set it up used the //servername. I removed the // and it works fine, until it got to the next error. :) This is going to take a while. I'm sure I'll be back with more questions. "Peter Westergaard" <[EMAIL PROTECTE

[PHP-DB] Re: A very basic PHP question

2008-04-25 Thread Peter Westergaard
I'm not sure this has to do with Variable Scope. (Scope has to do with when you can or can't reference a variable ... for example, that you may have defined in a different function than the currently-running code). I don't actually understand your question that well, either. Can you elaborat