Thread: Syntax Error
View Single Post
  #5 (permalink)  
Old 05-15-08, 11:48 AM
job0107's Avatar
job0107 job0107 is offline
Community Liaison
 
Join Date: Dec 2006
Location: Tacoma, Washington USA
Posts: 3,454
Thanks: 0
Thanked 140 Times in 137 Posts
Quote:
Originally Posted by Nikas View Post
So in another words, if I change the queries to single line. The query would works fine?

And thanks for your help!
What UrealEd is trying to say lies in the problem with this line of code:
PHP Code:

$sqls explode("\n"$schema); 

When you use "\n" you are splitting up the data in $schema by line brakes.
The problem with doing that, is the queries can span multiple lines, and you are breaking the queries up into individual lines at every line break.
And your getting the queries one line at a time, when you need to get the whole query. So you need to define away to separate the queries and explode on that value.
__________________
Jerry Broughton
Reply With Quote