I have a problem that is not so much of programming nature as it is of practical. Have a look at this code sample:
[PHP]
$conn = mysql_connect(" localhost", "root", "");
mysql_select_db ('buldog', $conn);
$sql = "INSERT INTO tb(cpanel_user_ name, cpanel_password , joomla_user_nam e, joomla_password , url) VALUES(\"".$_PO ST['c_username']."\", \"".$_POST['c_password']."\", \"".$_POST['joomla_usernam e']."\", \"".$_POST['joomla_passwor d']."\", \"".$_POST['url']."\")";
$result = mysql_query($sq l, $conn) or die(mysql_error ());
[/PHP]
Line 3 of the code is my problem. If I have to go over the code like that for whatever reason ... well it's real pain. Does anybody know better way of doing this or am I just suppose to stand the pain working with code like this one?
Thanks
[PHP]
$conn = mysql_connect(" localhost", "root", "");
mysql_select_db ('buldog', $conn);
$sql = "INSERT INTO tb(cpanel_user_ name, cpanel_password , joomla_user_nam e, joomla_password , url) VALUES(\"".$_PO ST['c_username']."\", \"".$_POST['c_password']."\", \"".$_POST['joomla_usernam e']."\", \"".$_POST['joomla_passwor d']."\", \"".$_POST['url']."\")";
$result = mysql_query($sq l, $conn) or die(mysql_error ());
[/PHP]
Line 3 of the code is my problem. If I have to go over the code like that for whatever reason ... well it's real pain. Does anybody know better way of doing this or am I just suppose to stand the pain working with code like this one?
Thanks
Comment