带有ADD,UPDATE和DELETE的PHP简单程序 [英] PHP Simple Program with ADD, UPDATE and DELETE

查看:74
本文介绍了带有ADD,UPDATE和DELETE的PHP简单程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的专家,



您能否提供以下网址的示例PHP编码?这将是一个很大的帮助。谢谢!



http://power.arc.losrios.edu/~leeverc/php/booksassignment/books.php?choice=genre [ ^ ]

推荐答案

好的然后。由于我似乎在做比这更多的工作,我会把这个代码传递给你,并留待它。您可以从现在开始调整它以满足您自己的需求。



有各种各样的方法可以做到。我刚刚意识到最明显的方式,因为我要粘贴一个更大的片段。哦,好吧:叹气:精神体操对我们有好处!当然,您可以删除\t\t\t\t的每个实例 - 您也可以取消缩进其他html标记。我只是喜欢很好的缩进(虽然它确实使页面变得更大 - 除非你查看源代码没有任何好处)



Any-who ..



Alright then. Since I seem to be doing more work on this than you do, I'll pass you this code and leave it at that. You can adapt it from now on to suit your own needs.

There's all kinds of ways you could do it. I just realized the most obvious way as I was about to paste a much larger snippet. Oh well, :sighs: mental gymnastics are good for us! Naturally, you could remove each instance of "\t\t\t\t" - you could also un-indent the other html tags too. I just prefer nice indentation (although it does make the page a little larger - for no benefit unless you view-source)

Any-who..

<!DOCTYPE html>
<html>
    <head>
        <style>
            tr.sortStuff th:hover{background-color: rgb(200,200,200);}
            tr.addStuff th:hover{background-color: rgb(200,255,200);}
        </style>
        <script>
        </script>
    </head>
    <body>
    <table>
        <thead>
            <tr class='addStuff'>
                <th colspan='7'>Add Book | Add Author</th>
            </tr>

            <tr class='sortStuff'>
                <th><a href='<?php echo


_SERVER [PHP_SELF]?>?order = t itle' > 标题< / th >
< > < a href =' <?php echo
_SERVER["PHP_SELF"]?>?order=title'>Title</th> <th><a href='<?php echo


_SERVER [PHP_SELF]?>?order = author' > 作者姓名< / th >
< th > < a href =' <?php echo
_SERVER["PHP_SELF"]?>?order=author'>Author Name</th> <th><a href='<?php echo


这篇关于带有ADD,UPDATE和DELETE的PHP简单程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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