Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
I have a login script that i think keeps its usernames and passwords in a mysql database. I also have a shoutbox that you can type in your name and message and post it.
Is there a way that I could make it so when people log in the site, it will use the username they used to log in with as the name for the shoutbox?
http://www.iblob.info
http://www.infoshackdesigns.com

make a query of the database then extract the name and put it on the site
$host = "localhost"; // SQL host
$user = "username"; // SQL username
$pass = "pw"; // usernames password
$db_name = "database_name"; // database$conn = mysql_connect($host, $user, $pass)
or die(mysql_error());
$db = mysql_select_db($db_name, $conn)
or die(mysql_error());$sqlU = "UPDATE `$table_names[$i]` SET `$table_entries[$i]` = $new_namesR[$i] WHERE `ID` = '$_GET[ID]' LIMIT 1 ;";
$sql_resultR = mysql_query($sqlR, $conn)
or die(mysql_error()); mysql_close($conn);while ($row = mysql_fetch_array($sql_resultR)) {
$fname = $row['FIRST_NAME'];
}something like that... well a lot like that.
all of that was part of code that i have in my recent project of an address book. so it's goodFBI Agent
AIM: EliteAssassin187

![]() |
![]() |
![]() |

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |