RE: [PHP]MySQL error, what's wrong here..

2001-07-23 Thread James Bogosian
;> what's going on with that... chris ----- Original Message - From: James Bogosian <[EMAIL PROTECTED]> To: Chris Cocuzzo <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Monday, July 23, 2001 7:25 PM Subject: RE: [PHP]MySQL error, what's wrong here.. > Try: > >

RE: [PHP]MySQL error, what's wrong here..

2001-07-23 Thread James Bogosian
Try: $query = "SELECT songname FROM mp3 WHERE sgid = '" .$id."'"; an SQL query requires you to quote strings. james -Original Message- From: Chris Cocuzzo [mailto:[EMAIL PROTECTED]] Sent: Monday, July 23, 2001 6:57 PM To: [EMAIL PROTECTED] Subject: [PHP]MySQL error, what's wrong here

[PHP] Problem with preg_replace

2001-07-21 Thread James Bogosian
Currently, I am parseing a string for href tags and adding a "target=_blank" to them to have them open up in a new window using this: $body = preg_replace("<[aA] [hH][rR][eE][fF]=\"(.*?)\">", 'a href="$1" target=_blank', $row->body); This works, to the best of my knowledge, however I was curious