Got a dumb-ass question for you all.  I have got insert queries working with
mssql_query($query); except if any of the variables have two or more words.
For example:
$myVar = "Two or more words";
$query = "INSERT INTO myTable VALUES ('".$myVar."');';

The query will only insert "Two".

I know the query is correct, because I've echoed it, cut it, and pasted it
directly into Query Analyzer and it comes up roses.

Cheers muchly,

PHP Database Mailing List (
To unsubscribe, visit:

Reply via email to