[PHP-DB] special characters in odbc-queries

2001-07-19 Thread Markus Wagner
Hi there, can anyone tell me, how I have to handle special characters in an odbc-query? for example: 'select * from $table where primary-key=\'1\' ' doesn't work because of the dash in primary-key Thx Kobi -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PRO

[PHP-DB] Re: another php/mysql problem

2001-07-25 Thread Markus Wagner
Matt Nigh schrieb: > Matt Nigh > > $link = mysql_connect("localhost","username","password"); > if(!$link) die ("Could not connect to MySQL!"); > mysql_select_db("almavale_board",$link); > if (!isset($band)) { > die("No artist specified."); > } > $sql = "select * from bands where (nospaces_band