Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Aug 11th, 2012  |  syntax: None  |  size: 0.36 KB  |  hits: 7  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. How to escape # in PHP
  2. $columns = "head1, #_search, #_stuff";
  3. $result = mysql_query("SELECT $columns from table LIMIT $k,$j");
  4.        
  5. $columns = "head1, `#_search`, `#_stuff`";
  6.        
  7. SELECT * FROM `#table1` WHERE `#table1`.`#column1` = 1;
  8.        
  9. $columns = 'head1, #_search, #_stuff';
  10.        
  11. $columns = 'head1, #_search, #_stuff';
  12.        
  13. $columns = 'head1, #_search, #_stuff'