需要帮助为此制作PHP代码... [英] NEED HELP in making a PHP code for this ...

查看:79
本文介绍了需要帮助为此制作PHP代码...的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是编码的初学者**我需要编写PHP的帮助,当我在表单的文本字段中输入书名时,它会显示书籍详细信息,即书籍ID,书名,作者,流派,作为表格的状态...... **



- >

我创建了一个包含一些Book名称的MySQL数据库。这是SQL代码:



I am a beginner at coding **I need help coding a PHP that when I enter a book's name in the text field of the form, it displays the Book Details, i.e, Book ID, Book Name, Author, Genre, Status as a table...**

->
I have created a MySQL database with some Book names in it. Here's the SQL CODE:

CREATE Database Bookdb;

       CREATE TABLE Library
       (
         Book_ID INT UNIQUE,
         Book_Name VARCHAR(225),
         Author VARCHAR(225),
         Genre VARCHAR(225),
         Status VARCHAR(225),
        );

         INSERT INTO Library
         VALUES (2009, "HTTYD", "Cressida Cowell", "Fiction", "Issued",
                 2010, "Divergent", "Veronica Roth", "Fiction", "Available",
                 2011, "The Maze Runner Files", "Fiction", "Issued");





这是HTML代码:





And this is the HTML Code:

<pre><HTML>
         <HEAD>
         <TITLE> Novel Search </TITLE>
         </HEAD>
          <BODY>
            <FORM Action="index.php" Method="Post">
              <CENTER>
                Book Name :    
                <INPUT Type="text" Name="novelsearch" > <BR>
                <INPUT Type="submit" Value="Get Details">
             </CENTER>
            </FORM>
          </BODY>
         </HTML>





在此先感谢,很多爱< 3



我尝试了什么:



我是PHP的新手,我尝试的不是过得好



此外,这是两天内到期的作业。越快越好。无论如何,我感谢你的帮助。



请原谅我的英语,这不是我最强的语言。 :)



Thanks in advance, Much love <3

What I have tried:

I'm new to PHP and what I tried didn't go so well.

Also, this is an assignment due in two days. The quicker the better. I appreciate your help, regardless.

And pardon my English, it is not my strongest language. :)

推荐答案

请参阅 PHP 5教程 [ ^ ]。


解决方案1中的链接?我使用该源来学习PHP;还有javascript,HTML和CSS。



只有一种方法可以让你真正学到这些东西:弄脏你的手。

- 仔细查看。

- 战斗吧。

- 查看更多



随着您了解更多并知道如何更好看它会变得更容易。除了付钱给别人为你编写代码之外,没有捷径可走。



然后,当你有一个特定的问题,什么时候来到CP。当你自己的努力,诚实的努力,只是不要这样做。更多的眼睛和经验,然后是你的朋友 - 而不是你的拐杖。
The link in Solution 1? I used that source to learn PHP; also javascript, HTML, and CSS.

There's only one way you'll really learn this stuff: get you hands dirty.
- Look it up.
- Fight it out.
- Look up some more

It gets easier as you know more and know how to look better. And there is no shortcut, aside from paying someone to write code for you.

Then, when you've a specific question that's when to come to CP. When your own efforts, honest efforts, just don't do it. Mores eyes and experience, then are your friend - not your crutch.


Quote:

此外,这是两天内到期的作业。越快越好。

Also, this is an assignment due in two days. The quicker the better.

我们不做你的功课:这是有原因的。它就是为了让你思考你被告知的事情,并试着理解它。它也在那里,以便您的导师可以识别您身体虚弱的区域,并将更多的注意力集中在补救措施上。



亲自尝试,你可能会发现它不是和你想的一样困难!



如果遇到具体问题,请询问相关问题,我们会尽力提供帮助。但我们不打算为你做这一切!

We do not do your homework: it is set for a reason. It is there so that you think about what you have been told, and try to understand it. It is also there so that your tutor can identify areas where you are weak, and focus more attention on remedial action.

Try it yourself, you may find it is not as difficult as you think!

If you meet a specific problem, then please ask about that and we will do our best to help. But we aren't going to do it all for you!


这篇关于需要帮助为此制作PHP代码...的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆