Click here to Skip to main content
15,891,033 members
Home / Discussions / Linux, Apache, MySQL, PHP
   

Linux, Apache, MySQL, PHP

 
QuestionSubmitting an ajax fetched table Pin
AkkiMo2-Jan-13 4:03
AkkiMo2-Jan-13 4:03 
QuestionI have a trouble about query_insert(). Pin
陳建勳24-Dec-12 1:31
陳建勳24-Dec-12 1:31 
I want to make a messageboard with php.
but I cant't insert data to database.
I dont know what's wrong in my code???
Can someone help me please?

HTML
<!DOCTYPE  HTML>
<html>
<head>
<title> 留言板 </title>
</head>


<body>
<form action="insert.php" method="get">
請輸入名稱: <input type="text" name="name" />
請輸入標題: <input type="text" name="title" />
請輸入留言: <input type="text" name="message"   />
請輸入電子郵件: <input type="text" name="email" />
<input    type="submit"  value="送出留言" name="post"  />
</form>

</body>
</html>

PHP
<?php
//This is insert.php

require_once("connectdb.php");// It is success!!


if(isset($_GET["name"])!=""){
	$query_insert = "INSERT INTO '1100108128'.'MB'
	('USER','TITLE','MESSAGE','TIME','EMAIL')
VALUES (";$query_insert .= "'".$_GET["name"]."',";
	$query_insert .= "'".$_GET["title"]."',";
	$query_insert .= "'".$_GET["message"]."',";
	$query_insert .= "NOW(),";
	$query_insert .= "'".$_GET["email"]."')";
mysql_query($query_insert);
header("Location:Messageboard.php");
}
 ?>

AnswerRe: I have a trouble about query_insert(). Pin
ziggyfish6-Jan-13 12:36
ziggyfish6-Jan-13 12:36 
Questionwithout refresh the page using Submit button / Button how can i do process the dtabase operations ? Pin
vinay digil16-Dec-12 7:10
vinay digil16-Dec-12 7:10 
AnswerRe: without refresh the page using Submit button / Button how can i do process the dtabase operations ? Pin
Killzone DeathMan19-Dec-12 23:12
Killzone DeathMan19-Dec-12 23:12 
Questionhow can Multiple selected List box items move from one list box to another list Pin
vinay digil16-Dec-12 7:06
vinay digil16-Dec-12 7:06 
AnswerRe: how can Multiple selected List box items move from one list box to another list Pin
Killzone DeathMan19-Dec-12 22:57
Killzone DeathMan19-Dec-12 22:57 
Questionhow to get data when using header('location:'. $url) ? help me Pin
aa_zz26-Nov-12 4:29
aa_zz26-Nov-12 4:29 
AnswerRe: how to get data when using header('location:'. $url) ? help me Pin
Killzone DeathMan19-Dec-12 22:54
Killzone DeathMan19-Dec-12 22:54 
AnswerRe: how to get data when using header('location:'. $url) ? help me Pin
Keanu L18-Jan-13 16:29
Keanu L18-Jan-13 16:29 
QuestionStarting Point Pin
silentspeaker19-Nov-12 23:43
silentspeaker19-Nov-12 23:43 
AnswerRe: Starting Point Pin
User 171649219-Nov-12 23:58
professionalUser 171649219-Nov-12 23:58 
GeneralRe: Starting Point Pin
silentspeaker20-Nov-12 0:07
silentspeaker20-Nov-12 0:07 
GeneralRe: Starting Point Pin
User 171649220-Nov-12 0:21
professionalUser 171649220-Nov-12 0:21 
QuestionPHP, MySQL and Apache Pin
silentspeaker10-Nov-12 19:38
silentspeaker10-Nov-12 19:38 
AnswerRe: PHP, MySQL and Apache Pin
Richard MacCutchan10-Nov-12 21:39
mveRichard MacCutchan10-Nov-12 21:39 
AnswerRe: PHP, MySQL and Apache Pin
Senaid Maksumic11-Nov-12 11:15
Senaid Maksumic11-Nov-12 11:15 
GeneralRe: PHP, MySQL and Apache Pin
silentspeaker12-Nov-12 19:19
silentspeaker12-Nov-12 19:19 
GeneralRe: PHP, MySQL and Apache Pin
Senaid Maksumic13-Nov-12 10:33
Senaid Maksumic13-Nov-12 10:33 
AnswerRe: PHP, MySQL and Apache Pin
Ngobi Arthur 20135-Jan-13 8:52
Ngobi Arthur 20135-Jan-13 8:52 
AnswerRe: PHP, MySQL and Apache Pin
vbmike14-Dec-12 4:37
vbmike14-Dec-12 4:37 
AnswerRe: PHP, MySQL and Apache Pin
Manish Choudhary .NET expert14-Dec-12 18:45
Manish Choudhary .NET expert14-Dec-12 18:45 
GeneralRe: PHP, MySQL and Apache Pin
Zamshed Farhan12-Jan-13 3:02
Zamshed Farhan12-Jan-13 3:02 
AnswerRe: PHP, MySQL and Apache Pin
ronakT26-Jan-13 5:32
ronakT26-Jan-13 5:32 
Questioncan not get data from url when use method post paramater using php. because page use token. please me Pin
aa_zz4-Nov-12 22:22
aa_zz4-Nov-12 22:22 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.