No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
8 Posted Topics
Hello, I have the following page: [URL="http://k-fez.com/example.html"]http://k-fez.com/example.html[/URL] If you mouseover an image, it doubles the size of the image and centers it. However, it displaces the rest of the images. I would like it to just overlay ontop of the other images instead of re-sizing the row/column. Also, I would … | |
I can't figure out why my tables are being pushed to the right so much in FireFox. Please take a look and let me know what you think the problem could be. [url]http://ground360.org/coupons/[/url] Thanks. | |
I have the following code which should update the total items in a categories list every time that a search filter is changed. However, the function will only run once. [CODE] function getXMLHTTP() { //fuction to return the xml http object var xmlhttp=false; try{ xmlhttp=new XMLHttpRequest(); } catch(e) { try{ … ![]() | |
Re: Insert the following code right before echo "Thank you...... [code=php] $to = "youremail@somewhere.com" //Your email address $subject = "New Entry"; //Email subject $message = "new details have been entered into the database" //Body of email mail($to, $subject, $message); [/code] Check [url]http://php.net/manual/en/function.mail.php[/url] for complete info on the mail() function. | |
I am having a weird problem setting a session variable. I use a session array ($_SESSION['message']) to display messages. $_SESSION['message']['type'] = error/success; $_SESSION['message']['message'] = $message; Here is the function for displaying the message: [code=php] function displayMessage(){ if(isset($_SESSION['message'])){ echo" <div class=\"notification " . $_SESSION['message']['type'] . " png_bg\"> <div> " . $_SESSION['message']['message'] … | |
Re: Try this: [code=php] session_start(); if (!isset($_SESSION['memberusername'])){ header("location:contractorlogin.php"); exit(); } $user = $_SESSION['memberusername']; $sql = "SELECT Username FROM contractors WHERE Username LIKE'" . $user . "'"; $query = mysql_query($sql); $row = mysql_fetch_array($query); echo $row['username']; [/code] if there are multiple rows being returned try this: [code=php] session_start(); if (!isset($_SESSION['memberusername'])){ header("location:contractorlogin.php"); exit(); } … | |
| |
Re: register a session variable username. Then use UPDATE tblename SET title=whatever WHERE username = '$_SESSION['username']'; |
The End.