Jump to content

Kvashir

New Members
  • Posts

    2
  • Joined

  • Last visited

    Never

Everything posted by Kvashir

  1. Ok i don't know the class phpMyDB, anyway, you've now to fetch the query and print every information stored in the db In a simple sql query this will be done in this way: <?php //Fetching: $query="SELECT title, insertDate, price FROM ".TABLE_PREFIX."posts"; while($result=mysql_fetch_assoc($query)) { //Printing results: echo $result['title']." ".$result['insertDate']." ".$resul['price']; } ?> Sorry for my bad english Hope it helps!
  2. Hi guys, first of all, sorry for my bad english I have a question, As title, how can i avoid html tags in a text passed by $_POST method? htmlentities() is one way, i think, but... there's another way to avoid me to use that? I don't like to decode again every text! Edit: is strip_tags(); good for this purpose?
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.