Results 1 to 7 of 7
-
11th Feb 2012, 09:33 AM #1OPMemberWebsite's:
iFunMaza.comHelp With Code
hey guys i need some help with php forms
i have created a form in such a way that what ever the input is given it shall be stored in db (SQL)
everything works but when i check the DB Table it shows Array in the column like this
Code is
immu Reviewed by immu on . Help With Code hey guys i need some help with php forms i have created a form in such a way that what ever the input is given it shall be stored in db (SQL) everything works but when i check the DB Table it shows Array in the column like this http://img100.imageshack.us/img100/3360/20120211145901.png Code is http://img641.imageshack.us/img641/6476/20120211150122.png Rating: 5
-
11th Feb 2012, 09:44 AM #2MemberWebsite's:
wscripts.net damnlolscript.com lulzjet.comyou should post the code in php tags
try this for each $_POST
PHP Code:'".mysql_real_escape_string($_POST['wcddl_url'])."'
-
11th Feb 2012, 09:53 AM #3MemberWebsite's:
imdber.org justpaste.metry
PHP Code:die(var_dump($_POST['wcddl_url']));
-
11th Feb 2012, 09:57 AM #4OPMemberWebsite's:
iFunMaza.comPHP Code:<?php
$con = mysql_connect ("localhost","immuwcddl","immuwcddl");
if (!$con)
{
die('DB ERROR - Could not Connect : ' . mysql_error());
}
mysql_select_db ("wcddlv3test", $con);
$sql="INSERT INTO wcddl_remember(wcddl_url, wcddl_username, wcddl_password) VALUES ('".mysql_real_escape_string($_POST['wcddl_url'])."','".mysql_real_escape_string($_POST['wcddl_username'])."','".mysql_real_escape_string($_POST['wcddl_password'])."')";
if (!mysql_query($sql,$con))
{
die ('ERROR : ' . mysql_error());
}
echo "Details Saved Sucessfully";
mysql_close($con)
?>
-
11th Feb 2012, 10:02 AM #5Respected MemberWebsite's:
DL4Everything.com Soft2050.inTry to replace line 8 [sql query one] with this
PHP Code:$wcddl_url_sql = mysql_real_escape_string($_POST['wcddl_url']);
$wcddl_username_sql = mysql_real_escape_string($_POST['wcddl_username']);
$wcddl_password_sql = mysql_real_escape_string($_POST['wcddl_password']);
$sql = "INSERT INTO wcddl_remember(wcddl_url, wcddl_username, wcddl_password) VALUES ('$wcddl_url_sql', '$wcddl_username_sql', '$wcddl_password_sql')";
And its always a good to escape the string
-
11th Feb 2012, 10:04 AM #6MemberWebsite's:
wscripts.net damnlolscript.com lulzjet.comuse the code that Apathetic gave, it seems that the post return an array
-
11th Feb 2012, 10:32 AM #7OPMemberWebsite's:
iFunMaza.comthanks for the help soft
Worked
Cheers
Sponsored Links
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
Help With Letitbit Js To BB Code aka Embedding streaming code in forums
By JoomlaZ in forum Web Development AreaReplies: 1Last Post: 3rd Apr 2012, 09:50 AM -
need help with php code
By itmees in forum Web Development AreaReplies: 6Last Post: 22nd Mar 2012, 10:01 AM -
Need a good coder to code a skin, I will show you what I need, you just code it
By Nickk96 in forum Web Development AreaReplies: 1Last Post: 27th Aug 2011, 01:45 PM -
{LF} a code
By DeathNote in forum Web Application/Script SupportReplies: 2Last Post: 23rd Oct 2010, 04:18 AM -
[vBulletin BB Code] Moderated Message: (Like W-BB's Staff BB Code!)
By Ghost Dog 13 in forum Webmaster ResourcesReplies: 13Last Post: 26th Sep 2009, 06:19 PM
themaCreator - create posts from...
Version 3.24 released. Open older version (or...