Going directly to a MySQL Database Record

Ask a Question related to Dreamweaver AppDev, Design and Development.

  1. #1

    Default Going directly to a MySQL Database Record

    Hello,

    For a few days now I have been trying to do what I suspected isn't too
    difficult. I have a MySQL database of user profiles. I want my users to be able
    to access their profiles and update them (PHP). I only want them to be able to
    access and update their own profiles.

    I have tried a couple of things. (none of which worked).

    Firstly I created a log-on screen using the dreamweaver new login server
    behaviour (using a password and email as the logon requirements).

    This worked to an extent but when the user logged on, they were not directed
    to the record with the corresponding email and password, rather the first
    database record entry. After a bit of searching around, I came to gather that I
    need to send a URL Parameter and used a method similar to one I saw in the
    Master_detail tutorial in the dreamweaver developer area. However I could not
    get it to work to my needs.

    My second attempt was to create a form with the following SQL Statement SELECT
    *
    FROM TestTable
    WHERE contactmail = '". $POST['email']. AND password = . $POST['password'].'"

    But again, the URL parameter caused me problems.

    Any advice on this would really and truly be greatly appreciated. Many thanks.

    Adam

    fool Guest

  2. Similar Questions and Discussions

    1. MySQL Database not retrieving the full database
      Hi, I am using MySQL and PHP for my repository. It has 500+ records. till now it was displayiing all records in the database, but since from one...
    2. mySQL error in PHP that works directly in mySQL
      Hi, I created this query: CREATE TEMPORARY TABLE tmp SELECT photos.Name FROM photos LEFT JOIN PhotoNames ON ( photos.Name = PhotoNames.Name )...
    3. php evaluated directly by mysql and not the webserver ?
      Hi there Out of curiosity .... Long time ago I was working with Infomix (now IBM) Universal Server, that had a data type 'html' implemented as...
    4. mySQL / Last inserted record ID
      Hi, I'm using mySQL and wanted to get the ID of the record that I have just inserted in to the table (sentmessages). There is a function in mySQL...
    5. using $_SESSION directly in mysql query
      Marcus wrote: $query = "SELECT field FROM {$_SESSION} WHERE name='{$_SESSION}'"; .... a) You need to quote your array keys (unless they're...
  3. #2

    Default Re: Going directly to a MySQL Database Record

    Adam - I hesitate sending you to an off-site resource....but:
    PHPfreaks.com can be a valuab;e resource with various tutorials.
    [url]http://www.phpfreaks.com/tutorials/65/0.php[/url]

    Also, if you follow the Master/Detail tutorial(as in....Build a small site
    with that tutorials, instead of simply reading it ;) here at macromedia, you
    will see the light to your URL parameter dilemma. You are very close.
    Double check your UPPER/lower case, look at the URLparameter again in your
    results page, check for missing "=" signs.
    Good hunting,
    rick

    rickvv1 Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

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 130 131 132 133 134 135 136 137 138 139