Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
02-18-2006, 11:14 PM #1
- Join Date
- Feb 2006
- Thanked 0 Times in 0 Posts
noob question. writing xml from mysql
Hello and thanks in advance for any help you can give.
Im trying to populate an xml file with data from a mysql db. I keep getting a parse error and I am too inexperienced to know what I have done wrong.
$line = '<_ path='".$row[path]."' rate='".$row[_path]."' title='".$row[title]."' artist='".$row[artist]."'/>';
The red line is the one throwing the parse error.
My browser shows this error:
Parse error: syntax error, unexpected '<' in C:\host\xampp\htdocs\v2\playlist\generator.php on line 12
The code I am using is from a tutorial, but I do not know how accurate it is.
02-18-2006, 11:22 PM #2
I'v never seen the need for joining variables like that, I jus throw them all in at once.
dno if thats what your looking forPHP Code:
$line = "<_ path=\"$row[path]\" rate=\"$row[_path]\" title=\"$row[title]\" artist=\"$row[artist]\" />";