Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. redzonne

    Image Uplaod Script Error

    Oh! Thanks. The Journey of a Thousand Miles Begins with the First Step...
  2. redzonne

    Image Uplaod Script Error

    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']...
  3. redzonne

    DB Driven, Searchable Product Application

    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...
  4. redzonne

    Multi Table Update - Edit Profile Page

    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...
  5. redzonne

    Edit Profile Page w/ Unique Email Check Problem

    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...
  6. redzonne

    Edit Profile Page w/ Unique Email Check Problem

    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...
  7. redzonne

    Edit Profile Page w/ Unique Email Check Problem

    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 -...
  8. redzonne

    If/Then Statement Issue

    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...
  9. redzonne

    If/Then Statement Issue

    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"); }...
  10. redzonne

    Insert Data Form Trouble

    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...
  11. redzonne

    Insert Data Form Trouble

    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...
  12. redzonne

    Insert Data Form Trouble

    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']...
  13. redzonne

    Edit Profile page

    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']) {...
  14. redzonne

    Edit Profile page

    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'...
  15. redzonne

    Edit Profile page

    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'...
  16. redzonne

    User Login Specific Page

    I figured it out! $db = mysql_connect ( 'localhost', 'FAKE_USER', 'FAKE_PASSWORD' ); mysql_select_db ( 'realest1_proppost', $db); $result = mysql_query("SELECT * FROM customerindex WHERE login='$login'",$db); $myrow = mysql_fetch_array($result); <? echo $myrow["cfirstname"] ?> <? echo...
  17. redzonne

    User Login Specific Page

    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...
  18. redzonne

    Encrypting User Passwords - On a User Registration Form

    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...
  19. redzonne

    Encrypting User Passwords - On a User Registration Form

    Can you give a link to a tutorial maybe? The Journey of a Thousand Miles Begins with the First Step...
  20. redzonne

    Encrypting User Passwords - On a User Registration Form

    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...

Part and Inventory Search

Back
Top