:) few things updated

git-svn-id: https://webim.svn.sourceforge.net/svnroot/webim/trunk@542 c66351dc-e62f-0410-b875-e3a5c0b9693f
This commit is contained in:
Ed Kraus 2009-06-05 23:21:34 +00:00
parent 95f18e0e0d
commit cfec643833
3 changed files with 13 additions and 19 deletions

View File

@ -3,15 +3,10 @@
define('DB_USER', 'root');
define('DB_PASSWORD', '');
define('DB_DATABASE', 'mibew');
//Connect to mysql server
mysql_connect(DB_HOST, DB_USER, DB_PASSWORD);
if(!$link) {
die('Failed to connect to server: ' . mysql_error());
}
//Select database
-------------------
//Maynot be needed it is deleteable, not sure if it's needed for profile page.
$link = mysql_connect(DB_HOST, DB_USER, DB_PASSWORD);
$db = mysql_select_db(DB_DATABASE);
if(!$db) {
die("Unable to select database");
}
$result = mysql_query("SELECT * FROM members") or die(mysql_error());
?>

View File

@ -1,29 +1,28 @@
<?php
require_once('auth.php');
require('libs/menu.php');
require('libs/config.php');
$_POST['email']
require('libs/config.php')
?>
<table width="300" border="0" align="center" cellpadding="2" cellspacing="0">
<tr>
<th>First Name </th>
<td><input name="$fname" type="text" class="textfield" id="fname" /></td>
<td><input name="fname" type="text" class="textfield" id="fname" /></td>
</tr>
<tr>
<th>Last Name </th>
<td><input name="$lname" type="text" class="textfield" id="lname" /></td>
<td><input name="lname" type="text" class="textfield" id="lname" /></td>
</tr>
<tr>
<th>City </th>
<td><input name="$city" type="text" class="textfield" id="lname" /></td>
<td><input name="city" type="text" class="textfield" id="lname" /></td>
</tr><tr>
<th>State </th>
<td><input name="$state" type="text" class="textfield" id="lname" /></td>
<td><input name="state" type="text" class="textfield" id="lname" /></td>
</tr><tr>
<th>Country </th>
<td><input name="$country" type="text" class="textfield" id="lname" /></td>
<td><input name="country" type="text" class="textfield" id="lname" /></td>
</tr><tr>
<th>Email </th>
<td><input name="$email" type="text" class="textfield" id="lname" /></td>
<td><input name="email" type="text" class="textfield" id="lname" /></td>
</tr>