Language :
SWEWE Member :Login |Registration
Search
Encyclopedia community |Encyclopedia Answers |Submit question |Vocabulary Knowledge |Upload knowledge
questions :PHP written book is not written on a message, which is what causes it?
Visitor (104.224.*.*)[Chinese ]
Category :[Technology][Computer Technology]
questions Description :
Code:
<Html>
<Head> </ head>
<Body>
<P> <b> book </ b> </ p>
<P> <br>
  <a href="guestbook.php"> View Message; </a> </ p>
<P> <a href="index.php"> return home; </a> <br>
</ P>
<Hr />
<? Php
$ Con = mysql_connect ( "rds994h2o231a59060gp.mysql.rds.aliyuncs.com", "r6s3iso03h", "******") or die ( "connection failed");
mysql_select_db ( "r6s3iso03h", $ con);

if ($ _POST [ 'submit'])
{$ Sql ​​= "insert into guestbook (g_id, g_content, g_name, g_date)" "values ​​( '$ _ post [g_content]', '$ _ post [g_name]', now ())".;

mysql_query ($ sql, $ conn);
echo "message is successful";}
?>
<Form action = "guestbookadd.php" method = "post">
Message content;
<Textarea name = "g_content"> </ textarea> <br/>
Commenters;
<Input type = "text" name = "g_name" /> <br/>
<Input type = "submit" name = "submit" value = "Submit" />
</ Form>
</ Body>
</ Html>

I have to answer [Visitor (3.140.*.*) | Login ]

Picture :
Type :[|jpg|gif|jpeg|png|] Byte :[<2000KB]
Language :
| Check code :
All answers [ 6 ]
[Visitor (37.143.*.*)]answers [Chinese ]Time :2024-05-04
See What Wood Burning Stove Outdoor Tricks The
Celebs Are Utilizing wood Burning Stove outdoor
[Visitor (37.143.*.*)]answers [Chinese ]Time :2024-05-04
The 10 Most Terrifying Things About Malpractice Attorneys Malpractice attorneys
[Visitor (5.45.*.*)]answers [Chinese ]Time :2024-01-26
Think You're The Perfect Candidate For Doing Pedestrian Accident Lawyer?
Do This Test Accident Lawyer Jacksonville
[Visitor (5.45.*.*)]answers [Chinese ]Time :2024-01-22
Astepp-Bi-Stepp, Expensive, Foku, Sinyu, Archidente, Injury, Laoyes, Nir, Archidente, Injury
Lawyers
[Visitor (37.143.*.*)]answers [Chinese ]Time :2024-01-21
The Reason Why Accident Attorneys Near Me In 2023 Is The Main Focus Of
All People's Attention. 2023 accident Attorneys near Me
[Member (闪电)]answers [Chinese ]Time :2016-04-14
if ($ _POST [ 'submit'])
{$ Sql ​​= "insert into guestbook (g_id, g_content, g_name, g_date)" "values ​​( '$ _ post [g_content]', '$ _ post [g_name]', now ())".;
To
if ($ _POST [ 'submit'])
. {$ Sql ​​= "insert into guestbook (g_id, g_content, g_name, g_date)" "values ​​( '$ _ POST [g_content]', '$ _ POST [g_name]', now ())";

Note that $ _POST capitalized
Search

版权申明 | 隐私权政策 | Copyright @2018 World encyclopedic knowledge