PHP - Blank space holders

This topic is 5414 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

Recommended Posts

hey, I'm trying making my admin panel and this is the first time I've tried to make a admin panel that creates tables and forum records, so obviously, I'm going to run into problems. Here's my code:
if($cforum_btn) {$forum_id = str_replace(" ", "", $forum_id);$forum_id2 = str_replace($forum_id,$forum_id + "ID", $forum_id);$forum_title2 = str_replace(" ", "", $forum_title);$sql_2 = "INSERT INTO forums(forum_title, forum_title2, forum_desc, forum_id) VALUES('$ftitle', '$forum_title2', '$forum_desc', '$forum_id2')";
if(!mysql_query($sql_2,$dbh))
{
die( "<center>Failed to create a new forum because: </center>". mymsql_error());
}

Share on other sites
hey, sorry to create a waste of a thread. I figured out my problem. I needed to change the + "ID" to . "ID". Thanks for your help EvilSteve. I appreciate it. The values where created by a forum I made.

• 13
• 18
• 29
• 11