Go Back   WarriorForum - Internet Marketing Forums > The Warrior Forum > Ad Networks - CPA, CPM, CPL - Millionaire Makers..
Register Blogs FAQ Social Groups CalendarHelp Desk

Reply
 
LinkBack Thread Tools
Old 08-14-2011, 02:54 AM   #1
dream maker
 
Join Date: Dec 2010
Location: hang zhou
Posts: 70
Thanks: 19
Thanked 2 Times in 2 Posts
Social Networking View Member's Myspace Profile  View Member's FaceBook Profile  View Member's YouTube Profile
Contact Info
Send a message via Skype™ to zlc000190
Default I made a landingpage but don't know how to use mysql database.

it's a email submit landingpage,but i don't know how to do to solve the problem that when you click the submit button,there is no reaction.
i am really poor at php.I think there should be a php page to link to a mysql database.So i did it.
But what next?I need some help.

UPDATE: The problem is ok.

New problem is the index.php when i upload my site to my host. when i open its url it shows as below.

Warning: mysql_pconnect(): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) in /hsphere/local/home/c317354/1keywordsfinder.com/freevacationoffer/Connections/freevacation.php on line 9 Fatal error: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) in /hsphere/local/home/c317354/1keywordsfinder.com/freevacationoffer/Connections/freevacation.php on line 9

what is this?
[IMG]chrome://livemargins/skin/monitor-background-horizontal.png[/IMG] [IMG]chrome://livemargins/skin/monitor-background-vertical.png[/IMG] [IMG]chrome://livemargins/skin/monitor-play-button.png[/IMG][IMG]chrome://livemargins/skin/monitor-background-horizontal.png[/IMG] [IMG]chrome://livemargins/skin/monitor-background-vertical.png[/IMG] [IMG]chrome://livemargins/skin/monitor-play-button.png[/IMG]
zlc000190 is offline   Reply With Quote
Old 08-14-2011, 05:54 AM   #2
Warrior Member
 
Join Date: Nov 2010
Posts: 16
Thanks: 0
Thanked 1 Time in 1 Post
Default Re: I made a landingpage but don't know how to use mysql database.

Take a look here

Creating a registration form using PHP

is the same , only create registration page with email only

Wish you the best.

Cheers !
earnnow2010 is offline   Reply With Quote
Old 08-14-2011, 06:39 AM   #3
dream maker
 
Join Date: Dec 2010
Location: hang zhou
Posts: 70
Thanks: 19
Thanked 2 Times in 2 Posts
Social Networking View Member's Myspace Profile  View Member's FaceBook Profile  View Member's YouTube Profile
Contact Info
Send a message via Skype™ to zlc000190
Default Re: I made a landingpage but don't know how to use mysql database.

thank you earnnow2010,you're so kind.
zlc000190 is offline   Reply With Quote
Old 08-15-2011, 08:55 AM   #4
dream maker
 
Join Date: Dec 2010
Location: hang zhou
Posts: 70
Thanks: 19
Thanked 2 Times in 2 Posts
Social Networking View Member's Myspace Profile  View Member's FaceBook Profile  View Member's YouTube Profile
Contact Info
Send a message via Skype™ to zlc000190
Default Re: I made a landingpage but don't know how to use mysql database.

I have seen it. But i just need a zipcode submit code.Its is too complex for me. Is there a simple way? Thanks a lot.
zlc000190 is offline   Reply With Quote
Old 08-15-2011, 09:12 AM   #5
HQ Programmer
 
Smalt's Avatar
 
Join Date: May 2011
Posts: 50
Thanks: 0
Thanked 2 Times in 2 Posts
Contact Info
Send a message via Skype™ to Smalt
Default Re: I made a landingpage but don't know how to use mysql database.

Make a connection and continue with an INSERT TO..

BumbleBee at HackForums.
Smalt is offline   Reply With Quote
Old 08-15-2011, 09:16 AM   #6
Webmasters
 
SteveRocks's Avatar
 
Join Date: Aug 2011
Location: Pakistan
Posts: 30
Thanks: 1
Thanked 1 Time in 1 Post
Default Re: I made a landingpage but don't know how to use mysql database.

Don't mind if I use some simple code.....
Here is your form code place it where you want......


<form name="Your Form Name" action="thank-you.php" method="post" onSubmit="return validate();">
<div id="form_" class="Don"><span class="txt_w"><b>For questions about an order or for information about our products leave us a message </b></span><br />
<br />
<table class="txt_w" border="0" cellpadding="0" cellspacing="0" width="100%">
<tbody>
<tr height="32">
<td valign="top" width="100">Your Name:</td>
<td valign="top"><input name="Name" id="Name" class="input" size="50" type="text" /></td>
</tr>
<tr height="32">
<td valign="top">Your E-mail:</td>
<td valign="top"><input name="Email" id="Email" class="input" size="50" type="text" /></td>
</tr>
<tr height="32">
<td valign="top">Subject:</td>
<td valign="top"><input name="Subject" id="Subject" class="input" size="50" type="text" /></td>
</tr>
<tr height="165">
<td valign="top">Message:</td>
<td valign="top"><textarea name="Message" id="Message" cols="55" class="input" rows="8"></textarea></td>
</tr>
<tr height="45">
<td>&nbsp;</td>
<td><input name="Submit" class="button" value=" Send Message " type="submit" />
&nbsp;
<input name="Reset" class="button" value=" Reset Form " type="reset" /></td>
</tr>
</tbody>
</table>
</div>
</form>


Now remember to create your target page which is "thank_you.php"

That's very easy you just have to provide your database info. in simple words......

SteveRocks is offline   Reply With Quote
Old 08-15-2011, 10:27 AM   #7
dream maker
 
Join Date: Dec 2010
Location: hang zhou
Posts: 70
Thanks: 19
Thanked 2 Times in 2 Posts
Social Networking View Member's Myspace Profile  View Member's FaceBook Profile  View Member's YouTube Profile
Contact Info
Send a message via Skype™ to zlc000190
Default Re: I made a landingpage but don't know how to use mysql database.

Quote:
Originally Posted by Smalt View Post
Make a connection and continue with an INSERT TO..

Thanks smalt. Is it the code below?

<?php
if (!function_exists("GetSQLValueString")) {
function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
{
$theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;

$theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);

switch ($theType) {
case "text":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "long":
case "int":
$theValue = ($theValue != "") ? intval($theValue) : "NULL";
break;
case "double":
$theValue = ($theValue != "") ? "'" . doubleval($theValue) . "'" : "NULL";
break;
case "date":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "defined":
$theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
break;
}
return $theValue;
}
}

$editFormAction = $_SERVER['PHP_SELF'];
if (isset($_SERVER['QUERY_STRING'])) {
$editFormAction .= "?" . htmlentities($_SERVER['QUERY_STRING']);
}

if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "zipform")) {
$insertSQL = sprintf("INSERT INTO SCHEMA_PRIVILEGES (GRANTEE) VALUES (%s)",
GetSQLValueString($_POST['zipcode'], "int"));

mysql_select_db($database_freevacation, $freevacation);
$Result1 = mysql_query($insertSQL, $freevacation) or die(mysql_error());

$insertGoTo = "privacypolicy.html";
if (isset($_SERVER['QUERY_STRING'])) {
$insertGoTo .= (strpos($insertGoTo, '?')) ? "&" : "?";
$insertGoTo .= $_SERVER['QUERY_STRING'];
}
header(sprintf("Location: %s", $insertGoTo));
}
?>
zlc000190 is offline   Reply With Quote
Old 08-16-2011, 08:44 AM   #8
dream maker
 
Join Date: Dec 2010
Location: hang zhou
Posts: 70
Thanks: 19
Thanked 2 Times in 2 Posts
Social Networking View Member's Myspace Profile  View Member's FaceBook Profile  View Member's YouTube Profile
Contact Info
Send a message via Skype™ to zlc000190
Default Re: I made a landingpage but don't know how to use mysql database.

Quote:
Originally Posted by Smalt View Post
Make a connection and continue with an INSERT TO..
I did the "insert to" but,when i click it shows "Access denied for user 'root'@'localhost' to database 'information_schema'"

Do you what's that mean? Thank you again.

[IMG]chrome://livemargins/skin/monitor-background-horizontal.png[/IMG] [IMG]chrome://livemargins/skin/monitor-background-vertical.png[/IMG] [IMG]chrome://livemargins/skin/monitor-play-button.png[/IMG]

Last edited by zlc000190; 08-16-2011 at 08:47 AM. Reason: code don't show
zlc000190 is offline   Reply With Quote
Old 08-16-2011, 10:05 AM   #9
dream maker
 
Join Date: Dec 2010
Location: hang zhou
Posts: 70
Thanks: 19
Thanked 2 Times in 2 Posts
Social Networking View Member's Myspace Profile  View Member's FaceBook Profile  View Member's YouTube Profile
Contact Info
Send a message via Skype™ to zlc000190
Default Re: I made a landingpage but don't know how to use mysql database.

The problem is ok.

New problem is the config.php when i upload my site to my host. when i open its url it shows as below.

Warning: require_once(.fg_freevacation.php): failed to open stream: No such file or directory in /hsphere/local/home/c317354/1keywordsfinder.com/freevacationoffer/freevacation_config.php on line 2 Fatal error: require_once(): Failed opening required '.fg_freevacation.php' (include_path='.:/hsphere/shared/apache/libexec/php5ext/php/') in /hsphere/local/home/c317354/1keywordsfinder.com/freevacationoffer/freevacation_config.php on line 2
[IMG]chrome://livemargins/skin/monitor-background-horizontal.png[/IMG] [IMG]chrome://livemargins/skin/monitor-background-vertical.png[/IMG] [IMG]chrome://livemargins/skin/monitor-play-button.png[/IMG]
zlc000190 is offline   Reply With Quote
Old 08-16-2011, 10:14 AM   #10
Black Ninja Optimizer
 
Join Date: Aug 2011
Location: Las Vegas
Posts: 96
Thanks: 1
Thanked 8 Times in 8 Posts
Default Re: I made a landingpage but don't know how to use mysql database.

Quote:
Originally Posted by zlc000190 View Post
it's a email submit landingpage,but i don't know how to do to solve the problem that when you click the submit button,there is no reaction.
i am really poor at php.I think there should be a php page to link to a mysql database.So i did it.
But what next?I need some help.
You can find lots of free script on dynamicdrive.C0m, all you need is to insert it on your landing pages, nothings is technical

onlinecasinodeck is offline   Reply With Quote
Old 08-17-2011, 05:21 AM   #11
dream maker
 
Join Date: Dec 2010
Location: hang zhou
Posts: 70
Thanks: 19
Thanked 2 Times in 2 Posts
Social Networking View Member's Myspace Profile  View Member's FaceBook Profile  View Member's YouTube Profile
Contact Info
Send a message via Skype™ to zlc000190
Default Re: I made a landingpage but don't know how to use mysql database.

onlinecasinodeck thanks. But i really can't comprehension it.
[IMG]chrome://livemargins/skin/monitor-background-horizontal.png[/IMG] [IMG]chrome://livemargins/skin/monitor-background-vertical.png[/IMG] [IMG]chrome://livemargins/skin/monitor-play-button.png[/IMG]
zlc000190 is offline   Reply With Quote
Old 08-21-2011, 08:43 AM   #12
dream maker
 
Join Date: Dec 2010
Location: hang zhou
Posts: 70
Thanks: 19
Thanked 2 Times in 2 Posts
Social Networking View Member's Myspace Profile  View Member's FaceBook Profile  View Member's YouTube Profile
Contact Info
Send a message via Skype™ to zlc000190
Default Re: I made a landingpage but don't know how to use mysql database.

Quote:
Originally Posted by onlinecasinodeck View Post
You can find lots of free script on dynamicdrive.C0m, all you need is to insert it on your landing pages, nothings is technical
the site dynamicdrive.c0m, i can't find one exactly fit me. Because i don't know php at all.So it is quite hard for me.
zlc000190 is offline   Reply With Quote
Reply

  WarriorForum - Internet Marketing Forums > The Warrior Forum > Ad Networks - CPA, CPM, CPL - Millionaire Makers..

Tags
database, landingpage, made, mysql

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



All times are GMT -6. The time now is 02:29 AM.