Seeking design ideas

Design of object-oriented design pattern system To do a mold management system. It is hoped that the object-oriented approach can be used to integrate some patterns of design ideas. The main purpose is to practice object-oriented design

People look at my grammar where there is a problem, lose data.

$data = Array (); $db = Pc_base::load_model (' Content_model '); $sql = "Select A.id,a.title,a.url,a.status,a.catid,a.thumb,b.id,b.content from v9_news a,v9_news_data b where a.id=b.id and a.catid=7 "; $k = $db->query ($sql); while ($r = Mysql_fetch_

Kneeling to delete a numbered regular expression

1, we 11, we 122, we 1. They 12. They 133. They 3 You 33 You 234 you such as there are numbers + comma, there are numbers + points, there are numbers + spaces, how to use the regular delete it? I'll just be the simplest. $c =preg_replace ("/\d,

Remove attributes from HTML tags in PHP (regular expressions available)

For example the code is as follows: $str = 'test'; $str =stripslashes ($STR); Echo htmlspecialchars ($STR). ""; What you want to enter is: test In short: Regardless of the $STR tag contains any attributes are removed, only the label itself.

PHP Project Registration Login Module

Php Registration page just registered a user name, after the successful registration redirect to the login page, how to display that user name to the login box Reply to discussion (solution) Use the session or bring the past in the form. Use

How to implement input user name password can query information and modify

This is my code, running the result. How to display database information and to modify an item. Student Information please fill in the complete information"; Echo" "; exit;} else {$query = "select * from $student _table where xuehao=

Thanks again for the regular.

....... How can The Sign?tbs=5ca49d1ce3d210bc1368784907&fid=1817951&kw=%e6%96%97%e7%a0%b4%e8%8b%8d%e7%a9%b9 This paragraph is taken out or just behind the tbs= and fid=. Reply to discussion (solution) Ask the Great God ... God is tired, but

How does PHP implement such a requirement, about the URL of the

For example, there are several columns PHP Programming Basics php daniel php Great God list/phpjichu.html list/phpdaniu.html list/phpdashen.html Corresponding links How to control the jump link by letter display How to correspond to the

Match letters with regular matches

Like what: Str= "We are CSDN users! "; Regular match if the number of letters in a string is greater than 2 output OK Like this one with 4 letters How to write the regular! Thank you Reply to discussion (solution) There is a clear

This type of site user Rights control, how to implement?

Ask a website user to manage permissions issues: 1. The news data sheet in the Web site background contains all the content, and news has a field category, News category "Politics", "economy", "Sports" 3 categories. 2. Webmaster has "politics",

Why can't I display user information?

The code is in index_ok.php. $sqlstr = "Select Emp_id,emp_accounts,emp_password,emp_name,department from Employee where emp_accounts= '". $_post[' Name ']. "' and emp_password= '". $_post[' pwd ']. "'"; $select = mysql_query ($sqlstr, $conn);

Once again the cheeky face ..... Paging ..... ..... Page jumps or the current page

There are currently ". $count." Record total ". $pages." Page "; if ($offset) {$preoffset = $offset-$list _num;print "previous";} else { echo "prev";} $newoffset = $offset + $list _num; if ($pages!=0) && (($newoffset/$list _num)! = $pages)) {

Assign a section of HTML to the JS variable to encounter a newline JS hint error problem

For example, this paragraph, the text has a line, JS is wrong, how to solve these problems? HTML is dynamic content. Reply to discussion (solution) Add \ number before each line break Add \ number before each line breakWhat's the whole?

Regular matching problem, seeking the guidance of predecessors

What kind of regular expression can be worth the value of? It is appreciated to ask for guidance from our predecessors. Reply to discussion (solution) Preg_match ('/value= ' (. +?) " /','', $m);echo $m [1]; Preg_match ('/value= ' (. +?) "

Ask a question about PHP

In a PHP file, the following content is included #!/usr/bin/php My PHP code ?> Question A: What does the phrase "#!/usr/bin/php" mean. Because generally we are in the browser through the HTTP protocol to access. This is done through the Ejabberd

Delete article IDs in bulk?

(list.php): 2, processing Penalty page (del.php): Copy it back online, del_id How is this variable passed? Reply to discussion (solution) You missed it!"> should be for"> Other than thatif ($del _id!= "") {should be rewritten

Questions about picture caching

Web site with thinkphp development, Isapi_rewrite3 redirect URL,IIS6 server But 1.IIS Boot content expires 2.php Set Header () 3.html Join Head Can not let the browser cache pictures, what is the reason How can I do this, even if the

PHP no error, test environment is good, but put on the line of problems, ask the great God to see.

Red code is a problem, not add to normal. Is this the question? Can you discuss it in depth? is not the stack problem? Public Function Getuserstatus ($uid, & $userstatus) { $array = Array ( ' Ilevel ' = 0, ); Intermediate ellipsis Get Code $arr =

Ecshop Product Description Add a new field

I add in the product description of the Ecshop in the database Add the new field, the description of the new content can be displayed, but it is not possible to update the cache, meaning that I deleted the newly added fields of data, the product

Total Pages: 5208 1 .... 5179 5180 5181 5182 5183 .... 5208 Go to: GO

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.