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

Linux, Apache, MySQL, PHP

 
GeneralRe: how to get a object according the name of class Pin
Keanu L6-Feb-13 1:28
Keanu L6-Feb-13 1:28 
QuestionHow much time does it take to be a great developer in PHP? Pin
atoi_powered17-Jan-13 13:34
atoi_powered17-Jan-13 13:34 
QuestionRe: How much time does it take to be a great developer in PHP? Pin
Richard MacCutchan17-Jan-13 23:19
mveRichard MacCutchan17-Jan-13 23:19 
AnswerRe: How much time does it take to be a great developer in PHP? Pin
Manfred Rudolf Bihy18-Jan-13 4:50
professionalManfred Rudolf Bihy18-Jan-13 4:50 
QuestionDispensing text from a text file Pin
John Smith8-Jan-13 19:56
John Smith8-Jan-13 19:56 
AnswerRe: Dispensing text from a text file Pin
Zamshed Farhan12-Jan-13 3:03
Zamshed Farhan12-Jan-13 3:03 
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 

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.