|
[x]
Posted via EE Mobile
|
||
Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again. |
||
| Question |
|
[x]
Attachment Details
|
||
|
[x]
The Solution Rating System
|
||
With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.
Your Input Matters If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support. Thank you! |
||
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: 31: 32: 33: 34: 35: 36: 37: 38: 39: 40: 41: 42: 43: 44: 45: 46: 47: 48: 49: 50: 51: 52: 53: 54: 55: 56: 57: 58: 59: 60: 61: 62: 63: 64: 65: 66: 67: 68: 69: 70: 71: 72: 73: 74: 75: 76: 77: 78: 79: 80: 81: 82: 83: 84: 85: 86: 87: 88: 89: 90: 91: 92: 93: 94: 95: 96: 97: 98: 99: 100: 101: 102: 103: 104: 105: 106: 107: 108: 109: 110: 111: 112: 113: 114: 115: 116: 117: 118: 119: 120: 121: 122: 123: 124: 125: 126: 127: 128: 129: |
<?php require_once('../Connections/discrete_Basic1.php'); ?>
<?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;
}
}
mysql_select_db($database_discrete_Basic1, $discrete_Basic1);
$query_rs_press = "SELECT * FROM Members";
$rs_press = mysql_query($query_rs_press, $discrete_Basic1) or die(mysql_error());
$row_rs_press = mysql_fetch_assoc($rs_press);
$totalRows_rs_press = mysql_num_rows($rs_press);
?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>My First Table</title>
<style type="text/css">
<!--
body,td,th {
font-family: Gill Sans MT;
}
.textBox{width:400px; border: 1px solid #333; padding: 10px 20px}
.textBox2{width:400px; color:#999; border: 1px solid #999; padding: 10px 20px}
.record{clear:both; padding: 5px 0 0 0}
.field{float:left; width:150px; text-align:right; padding: 0 5px}
.field2{float:left; width:150px; text-align:left; padding: 0 5px}
.spacer{height:5px; clear:both}
-->
</style></head>
<body>
<div class="textBox">
I'd like to insert a registration form here which upon submit will add the user's info to the database. What is everything I need to do in order to accomplish that? These are the fields I have in the table named "Members":</div>
<div class="spacer"> </div>
<div class="spacer"> </div>
<div class="spacer"> </div>
<div class="spacer"> </div>
<form name="form1" method="post" action="">
<div class="record">
<div class="field"> <label>First Name </label></div>
<div class="field"> <input type="text" name="First Name" id="First Name"></div>
</div>
<br>
<div class="record">
<div class="field"> <label>Last Name </label></div>
<div class="field"> <input type="text" name="Last Name" id="Last Name"></div>
</div>
<div class="record">
<div class="field"> <label>Email address </label></div>
<div class="field"> <input type="text" name="Email address" id="Email Address"></div>
</div>
<div class="record">
<div class="field"> <label>Password </label></div>
<div class="field"> <input type="text" name="Password" id="Password"></div>
</div>
<br>
<div class="record">
<div class="field"> <label>Street Address</label></div>
<div class="field"> <input type="text" name="Street Address" id="Street Address"></div>
</div>
<div class="record">
<div class="field"> <label>City </label></div>
<div class="field"> <input type="text" name="City" id="City"></div>
</div>
<div class="record">
<div class="field"> <label>State / Province</label></div>
<div class="field"> <input type="text" name="State" id="State"></div>
</div>
<br>
<div class="record">
<div class="field"> <label>Zip / Postal code</label></div>
<div class="field"> <input type="text" name="Zip" id="Zip"></div>
</div>
<div class="record">
<div class="field"> <label>Country</label></div>
<div class="field"> <input type="text" name="Country" id="Country"></div>
</div>
<div class="spacer"> </div>
<div class="record">
<div class="field"> </div>
<div class="field2">
<form name="form1" method="post" action="">
<input type="submit" name="submit" id="submit" value="Submit">
</form>
</div>
<div class="spacer"> </div>
<div class="spacer"> </div>
<div class="spacer"> </div>
<div class="spacer"> </div>
<div class="textBox"> This is what is in the PHP at the head of the page in code view:</div>
<p> </p>
</body>
</html>
<?php
mysql_free_result($rs_press);
?>
|
Advertisement
| Hall of Fame |