I get the following error:
<form name="form1" method="post" action="" enctype="multipart/form-data">
<input type="file" name="imagefile">
<input type="submit" name="Submit" value="Submit">
<?
if(isset( $Submit ))
{
//If the Submitbutton was pressed do:
if ($_FILES['imagefile']['type']...
I am working on a real estate showcase site that would allow subscribers to post their properties online. I want to put together an application that -
(A) would automatically generate an HTML module (that would be listed 12 to a page) that would feature a thumbnail pict (uploaded by user) of a...
This code works http://www.realestatenetfind.com/edit_agentsignup_insert.phps
But with this code, I am trying to update two different tables, customerindex and agentspecifics and the code is running thru but none of the tables are updating...
I changed:
"SELECT cemail FROM customerindex"
to:
"SELECT cemail FROM customerindex where login <> '$login'"
This returns all the email addresses apart from their's
The Journey of a Thousand Miles Begins with the First Step...
I am actually not using email addresses as a way to index customers. I actually use unique user chosen login to index customers.
Email address are submit to my DB is unique format with the below code:
<?
function valid_email($address)
{
//check an email address is possibly valid
if...
How can I adjust my edit profile page to only submit user information that has changed from what is already in DB for a particular user. Reason being, I have a unique email check code that stops a user from submitting an email address that is associated with a pre-exiting account. Problem is -...
The == and '' worked. Thanx!!!
<?
if ($myrow["custype"] == 'P' )
{
include("includes/leftnv_cpanelinclude.php");
}
else if ($myrow["custype"] == 'A' )
{
include("includes/leftnv_cpanelinclude_a.php");
}
?>
The Journey of a Thousand Miles Begins with the First Step...
Can anyone point out whay exactly the below script won't quite work?
<?
$custype=$_POST['custype'];
$ccustype = addslashes($myrow["custype"]);
if ($ccustype = P )
{
include("includes/leftnv_cpanelinclude.php");
}
else if ($ccustype = A )
{
include("includes/leftnv_cpanelinclude_a.php");
}...
Kenrbnsn,
For the script that assure field names match DB column names, use a switch in the foreach loop becaue I want to implememt special checks for different fields
The Journey of a Thousand Miles Begins with the First Step...
Okay I implemented the foreach loop to create variables based on the declared keys. That works! Nice little shortcut. Thanx!
Now let me try implementing the code that assures that my field names match column names in my DB
<?php
if($submit)
{
// create short variable names...
Problem with form iserting data to database.
<?
// create short variable names
$staddress=$_POST['staddress'];
$city=$_POST['city'];
$state=$_POST['state'];
$zip=$_POST['zip'];
$proptyp=$_POST['proptyp'];
$bednum=$_POST['bednum'];
$bathnum=$_POST['bathnum']...
My WHERE clause is based on my Login because I have code on the signup page that forces all logins selected by users to be unique.
$query3 = "SELECT login FROM customerindex";
$result3 = mysql_query($query3);
while ($row=mysql_fetch_assoc($result3)) {
if ($login == $row['login']) {...
The extra $db was the problem. It works now.
mysql_select_db('realest1_proppost');
$query2 = "UPDATE customerindex SET cfirstname='$cfirstname', clastname='$clastname', cmidinitial='$cmidinitial', cstaddress='$cstaddress', cunitnum='$cunitnum', ccity='$ccity', czip='$czip', cphone='$cphone'...
Does anyboby know how to put together a user profile edit script.
I inserted the below code. It doesn't actually update the database though. I think I'm missing a piece.
:
mysql_select_db('realest1_proppost');
$query2 = "UPDATE customerindex SET cfirstname='$cfirstname'...
I have implemented PHP Sessions successfully on my login page. Now, I would like to have a user control panel(members only page) were user specific info from the database would be displayed, based on the active USER specific session.
On the login page session variable is:
$HTTP_SESSION_VARS...
JPADIE, I figured it out. The problem was in my table setting in the Mysql database. The passwords column was set VARCHAR (30) and md5 encryptions assigns encryption string 30 +.
The password encryption was saving a depricated version that ofcourse would never match the full version presented...
How do apply a one-way cryptographic hash function to the variable '$password'? I want to be able to store the user entered passwords encrypted. Any type of encryption function is fine.
http://www.realestatenetfind.com/codebank/ownersignup.phps
I would like to add the encryotion function on...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.