Home Backend Development PHP Tutorial Article recommendation system (2)_PHP tutorial

Article recommendation system (2)_PHP tutorial

Jul 21, 2016 pm 04:06 PM
a echo strlen table two recommend article system

======APPRE.PHP==========
$strlen=strlen($articlemsg);
if($strlen<50){
echo "

";
echo ""; The length must be greater than 50 Chinese characters. Please resubmit the article.Thank you";
echo"";
echo"";
echo"
";
echo"Are you trolling me? In order to prevent some netizens from trolling you intentionally, I will The site stipulates that the article you submit ";
echo"
";
echo"【Resubmit article】 ;
";
echo"";
echo"";
echo"";
echo"";
echo"
| Return to homepage " | Recommended instructions > Search for articles
| ;Read the article                                                                                                                                                                                                                                      ;/a>
|
";

exit;
}
$strlen=strlen($name);
if($strlen<=1){
echo"";
echo"< ;tr align=center>";
echo"< tr>";
echo"
";
echo"Please enter your name correctly";
echo"
";
echo"【Resubmit article】  ";
echo"【Return to homepage】";
echo"
";
echo"";
echo"";
echo"";
echo"";
echo"
| Return to home page | Recommended instructions
                                                                                 
echo"
Read article
|
Contact the webmaster 🎜> echo "
";

exit;
}
@$conn=mysql_connect("localhost","user","password");
mysql_select_db("bamboo");
$sql="select*from article where articlename='$articlename' ";
$result=mysql_query($sql,$conn);
if($result){
if(mysql_fetch_object($result)){
echo"";
echo" ";
echo"";
echo"";
echo"";
echo"
";
echo"The article you recommended already exists";
echo"
";
echo"Recommend the next article";
echo"< /td>
";
echo"If you are sure that this site does not have the article you recommended, please click< a href=mailto:webinfro@163.com>HereMeanwhile Bamboo Contact";
echo"
";
echo"【Repost a new article】";
echo"【Return to homepage】";
echo"
";
mysql_close($conn);
echo"";
echo"";
echo"";
echo"
| Return to home page Recommended description
| |                                                                                ";
echo"
Contact the webmaster > echo"
";

exit;}
}
$sql="select *from article where name=$name";
$result=mysql_query($sql,$conn);
if($result){
if(mysql_fetch_object($ result)){
echo"";
echo"";
echo"";
echo "";
echo"
";
echo "The database record of this site shows that there is already a record with the same name as yours. Please change the name and re-publish the article";
echo"
";
echo"Repost article";
echo"Return to homepage";
echo"
";
mysql_close($conn);
echo"";
echo"";
echo"";
echo"";
echo"< ;/tr>";
echo"

|
Read article > echo" Contact the webmaster
|
";

exit;
}
}

echo $webadd1;
$sql= "insert into article(name,webname,webadd,weblogo,articlename,articleauthor,articlemsg) values ​​('$name','$webname','$webadd','$weblogo','$articlename'
,' $articleauthor'
,'$articlemsg'
)";
//echo mysql_errno().":".mysql_error()."
";
if(mysql_query($ sql,$conn)){
echo"";
echo"";
echo"";
echo"
";
echo"Thank you , the development of Bamboo Garden cannot be separated from your support.The article you submitted has been accepted";
echo"
"; ;a href=appre.htm>Submit another article】";
echo"【Return to homepage】";
echo "
";
mysql_close($conn);
}
else{
echo"< table width=100% align=center>";
echo"";
echo"Sorry, there is an error in the article you submitted, please resubmit";
echo"";
echo"";
echo"【Re Submit】";
echo"【Return to homepage】";
echo"" ;
echo"";
mysql_close($conn);
}
echo" echo"";
echo"";
echo"";
echo"
| ";
echo"
| Recommended instructions ;td width=20%> Search article
| a href=article.php>Read article                                                                                                                                                                            com>Contact the webmaster
|
"; >?>



http://www.bkjia.com/PHPjc/315387.html

www.bkjia.com

true

http: //www.bkjia.com/PHPjc/315387.html

======APPRE.PHP========== $strlen=strlen( $articlemsg); if($strlen50){ echo table align=center width=100%; echo tr align=centertd; echo Are you talking nonsense? To prevent some netizens from being friendly...
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

CUDA's universal matrix multiplication: from entry to proficiency! CUDA's universal matrix multiplication: from entry to proficiency! Mar 25, 2024 pm 12:30 PM

General Matrix Multiplication (GEMM) is a vital part of many applications and algorithms, and is also one of the important indicators for evaluating computer hardware performance. In-depth research and optimization of the implementation of GEMM can help us better understand high-performance computing and the relationship between software and hardware systems. In computer science, effective optimization of GEMM can increase computing speed and save resources, which is crucial to improving the overall performance of a computer system. An in-depth understanding of the working principle and optimization method of GEMM will help us better utilize the potential of modern computing hardware and provide more efficient solutions for various complex computing tasks. By optimizing the performance of GEMM

Huawei's Qiankun ADS3.0 intelligent driving system will be launched in August and will be launched on Xiangjie S9 for the first time Huawei's Qiankun ADS3.0 intelligent driving system will be launched in August and will be launched on Xiangjie S9 for the first time Jul 30, 2024 pm 02:17 PM

On July 29, at the roll-off ceremony of AITO Wenjie's 400,000th new car, Yu Chengdong, Huawei's Managing Director, Chairman of Terminal BG, and Chairman of Smart Car Solutions BU, attended and delivered a speech and announced that Wenjie series models will be launched this year In August, Huawei Qiankun ADS 3.0 version was launched, and it is planned to successively push upgrades from August to September. The Xiangjie S9, which will be released on August 6, will debut Huawei’s ADS3.0 intelligent driving system. With the assistance of lidar, Huawei Qiankun ADS3.0 version will greatly improve its intelligent driving capabilities, have end-to-end integrated capabilities, and adopt a new end-to-end architecture of GOD (general obstacle identification)/PDP (predictive decision-making and control) , providing the NCA function of smart driving from parking space to parking space, and upgrading CAS3.0

How to recommend friends to me on Taobao How to recommend friends to me on Taobao Feb 29, 2024 pm 07:07 PM

In the process of using Taobao, we will often be recommended by some friends we may know. Here is an introduction to how to turn off this function. Friends who are interested should take a look. After opening the "Taobao" APP on your mobile phone, click "My Taobao" in the lower right corner of the page to enter the personal center page, and then click the "Settings" function in the upper right corner to enter the settings page. 2. After coming to the settings page, find "Privacy" and click on this item to enter. 3. There is a "Recommend friends to me" on the privacy page. When it shows that the current status is "on", click on it to close it. 4. Finally, in the pop-up window, there will be a switch button behind "Recommend friends to me". Click on it to set the button to gray.

How can I make money by publishing articles on Toutiao today? How to earn more income by publishing articles on Toutiao today! How can I make money by publishing articles on Toutiao today? How to earn more income by publishing articles on Toutiao today! Mar 15, 2024 pm 04:13 PM

1. How can you make money by publishing articles on Toutiao today? How to earn more income by publishing articles on Toutiao today! 1. Activate basic rights and interests: original articles can earn profits by advertising, and videos must be original in horizontal screen mode to earn profits. 2. Activate the rights of 100 fans: if the number of fans reaches 100 fans or above, you can get profits from micro headlines, original Q&amp;A creation and Q&amp;A. 3. Insist on original works: Original works include articles, micro headlines, questions, etc., and are required to be more than 300 words. Please note that if illegally plagiarized works are published as original works, credit points will be deducted, and even any profits will be deducted. 4. Verticality: When writing articles in professional fields, you cannot write articles across fields at will. You will not get appropriate recommendations, you will not be able to achieve the professionalism and refinement of your work, and it will be difficult to attract fans and readers. 5. Activity: high activity,

Always new! Huawei Mate60 series upgrades to HarmonyOS 4.2: AI cloud enhancement, Xiaoyi Dialect is so easy to use Always new! Huawei Mate60 series upgrades to HarmonyOS 4.2: AI cloud enhancement, Xiaoyi Dialect is so easy to use Jun 02, 2024 pm 02:58 PM

On April 11, Huawei officially announced the HarmonyOS 4.2 100-machine upgrade plan for the first time. This time, more than 180 devices will participate in the upgrade, covering mobile phones, tablets, watches, headphones, smart screens and other devices. In the past month, with the steady progress of the HarmonyOS4.2 100-machine upgrade plan, many popular models including Huawei Pocket2, Huawei MateX5 series, nova12 series, Huawei Pura series, etc. have also started to upgrade and adapt, which means that there will be More Huawei model users can enjoy the common and often new experience brought by HarmonyOS. Judging from user feedback, the experience of Huawei Mate60 series models has improved in all aspects after upgrading HarmonyOS4.2. Especially Huawei M

Which version of Apple 16 system is the best? Which version of Apple 16 system is the best? Mar 08, 2024 pm 05:16 PM

The best version of the Apple 16 system is iOS16.1.4. The best version of the iOS16 system may vary from person to person. The additions and improvements in daily use experience have also been praised by many users. Which version of the Apple 16 system is the best? Answer: iOS16.1.4 The best version of the iOS 16 system may vary from person to person. According to public information, iOS16, launched in 2022, is considered a very stable and performant version, and users are quite satisfied with its overall experience. In addition, the addition of new features and improvements in daily use experience in iOS16 have also been well received by many users. Especially in terms of updated battery life, signal performance and heating control, user feedback has been relatively positive. However, considering iPhone14

Become a C expert: Five must-have compilers recommended Become a C expert: Five must-have compilers recommended Feb 19, 2024 pm 01:03 PM

From Beginner to Expert: Five Essential C Compiler Recommendations With the development of computer science, more and more people are interested in programming languages. As a high-level language widely used in system-level programming, C language has always been loved by programmers. In order to write efficient and stable code, it is important to choose a C language compiler that suits you. This article will introduce five essential C language compilers for beginners and experts to choose from. GCCGCC, the GNU compiler collection, is one of the most commonly used C language compilers

Huangquan Light Cone Recommendation Huangquan Light Cone Recommendation Mar 27, 2024 pm 05:31 PM

Huang Quan's light cone can effectively increase the character's critical hit damage and attack power in battle. The light cones recommended by Huang Quan are: Walking on the Passing Shore, Good Night and Sleeping Face, Rain Keeps Falling, Just Wait, and Determination Like Beads of Sweat. Shine, below the editor will bring you recommendations for the Underworld Light Cone of the Collapsed Star Dome Railway. Huangquan Light Cone Recommendation 1. Walking on the Passing Bank 1. Huangquan's special weapon can increase the explosive damage. Attacking the enemy can put the enemy into a bubble negative state, which increases the damage caused. The damage of the finishing move is additionally increased. There are both negative states and The damage is increased, it has to be said that it is a special weapon. 2. The exclusive light cone is very unique among many ethereal light cones. It directly increases direct damage, has high damage and improves the critical damage attribute. 3. Not only that, the light cone also provides a negative status effect, which can cause Huangquan itself to react.

See all articles