|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
Stay one step ahead of the competition. Evaluate and give feedback
on some of the hottest web development tools on the market today.
Make your opinion heard! Click
Here
|
|
#1
|
|||
|
|||
|
Mysql Shoutbox Problem
Hello I'm having a problem hope someone can help because I really don't understand what I'm doing really here is some of the code I'm trying to do a shoutbox with avatars but avatar isn't the problem I'm having and would just like to get the shoutbox working I post and the text doesn't appear the problem probably has a really simple solution but I can't see it, thanks for any help.
PHP Code:
echo " <TR> <TD ALIGN='CENTER' BGCOLOR=\"$row_color\"><A HREF=\"".$shoutboxx['url']."\">".$shoutboxx['post_by']."<BR>".$shoutboxx['avatar']."</A>:</TD> <TD BGCOLOR=\"$row_color\">".$shoutboxx['content']."</TD> "; $row_count++; } echo "</TR></TABLE>"; } function shoutAdd(){ include("db.php"); if($_POST['addShout']) { $post_byE = $_POST['name']; if((!$_POST['name'])){ echo "Required field \"name\" Not complete"; exit(); } $post_by = htmlentities($post_byE, ENT_QUOTES); $urlE = $_POST['URL']; $url = htmlentities($urlE, ENT_QUOTES); $contentE = $_POST['content']; $content = htmlentities($contentE, ENT_QUOTES); echo "<center>Shout Item Added! You will be redirected in 5 seconds...</center>"; $sql = mysql_query("INSERT INTO `shout` (post_by,url,content,post_date) VALUES ('$post_by','$url','$content', NOW())") or die (mysql_error()); exit(); } echo " <FORM action='index.php' method='post'> <TABLE width='410' align='center'> <TR> <TD>Name:</TD> <TD><INPUT type='text' name='name' id='name'></TD> <TR> <TD>URL:</TD> <TD><INPUT type='text' name='url' id='url'></TD> <TR> <TD>Content:</TD> <TD><INPUT type='text' name='content' id='content'></TD> </TR> <TR> <TD align='center' colspan='2'><BR><INPUT type='submit' name='addShout' value='Submit'></TD> </TR> </TABLE> </FORM>"; } ?> |
![]() |
| Viewing: Dev Articles Community Forums > Databases > Database Development > Mysql Shoutbox Problem |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|