Jump to content

Dreamweaver PHP/SQL statement


Recommended Posts

I am hoping someone can help me as i am scratching my head with this one.

I have a created a login page which allows users to login. I am trying to create a page that allows the user to view and subsequently edit there own informaiton. However my problem is that i am having trouble getting SQL statement i am using to generate the information from the table by using the persons log in name

Any ideas?
Link to comment
Share on other sites

I dont know if this will do you any good but try this

[code]
<?
$user = mysql_fetch_array(mysql_query("SELECT * FROM table WHERE username='$loginname';"));
?>
<table width="100%" height="100%">
<tr>
<td>Username:<td><?=$user["username"]?></td>
</tr>
<tr>
<td>Password:<td><?=$user["password"]?></td>
</tr>
</table>
[/code]

If this doesn't help you out, i would be happy to take a look at your script, contact me by email if you would like that!
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.