Sinisterly
Doubt in this script - Printable Version

+- Sinisterly (https://sinister.ly)
+-- Forum: Coding (https://sinister.ly/Forum-Coding)
+--- Forum: PHP (https://sinister.ly/Forum-PHP)
+--- Thread: Doubt in this script (/Thread-Doubt-in-this-script)

Pages: 1 2


RE: Doubt in this script - Psycho_Coder - 05-05-2013

Yes thank you @hackarchives and @Coder-san , that help me a lot.


RE: Doubt in this script - Psycho_Coder - 05-05-2013

Yes thank you @hackarchives and @Coder-san , that help me a lot.


RE: Doubt in this script - 133720 - 07-29-2013

Code:
<?php $host="localhost"; $user="root"; $pass=""; $database="testdb"; mysql_connect($host,$user,$pass); mysql_select_db($database) $url = "URL GIVEN BY USER"; $url= str_replace("'","&apos;",$url); $desc = "DESCRIPTION"; $desc = str_replace("'","&apos;",$desc); mysql_query("INSERT INTO urltable (url,descrip) VALUES ('$url','$desc')"); ?>