elseif 异常

Jun 13, 2016 am 10:18 AM
else elseif quot

elseif 错误
提示:Parse error: syntax error, unexpected T_ELSEIF in /home/caijizhi/public_html/index.php on line 85
第85行是elseif ($nowjifena == "10")
else if和elseif都错


------解决方案--------------------
else if ($nowjifena === "10")
前面少了个‘}’
------解决方案--------------------
你把else去掉,不要用else if试试看啊!
------解决方案--------------------
根本你細心一點成不成!
$dsql->ExecuteNoneQuery("update `#@__tgreg` set `tgtime`=$time , where userid='".$userid."' and username='".$username."' ");}
最後面多一個“}”

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

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Best Graphic Settings
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. How to Fix Audio if You Can't Hear Anyone
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌

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)

php提交表单通过后,弹出的对话框怎样在当前页弹出,该如何解决 php提交表单通过后,弹出的对话框怎样在当前页弹出,该如何解决 Jun 13, 2016 am 10:23 AM

php提交表单通过后,弹出的对话框怎样在当前页弹出php提交表单通过后,弹出的对话框怎样在当前页弹出而不是在空白页弹出?想实现这样的效果:而不是空白页弹出:------解决方案--------------------如果你的验证用PHP在后端,那么就用Ajax;仅供参考:HTML code

What is the usage of else in Python loop structure? What is the usage of else in Python loop structure? Sep 26, 2023 am 10:52 AM

In Python's loop structure, the else block is used to execute a specific piece of code when the loop ends normally. If the loop is interrupted by a break statement, the code in the else block will not be executed. Using else blocks can make the code clearer and easier to understand, and can perform some necessary operations after the loop ends.

Usage and precautions of elseif keyword in PHP Usage and precautions of elseif keyword in PHP Jun 28, 2023 pm 07:38 PM

Usage and precautions of the elseif keyword in PHP In PHP programming, elseif is a very useful keyword for adding more branches to conditional judgments. This article will introduce the usage and precautions of the elseif keyword in detail. Syntax and usage: The elseif statement is used to add a new branch to the conditional judgment, which makes a judgment when the condition in the if statement is not met. Its basic syntax is as follows: if(condition1){//Execute code block

What are the different types of keywords in C language? What are the different types of keywords in C language? Sep 14, 2023 pm 02:57 PM

Keywords are often called predefined or reserved words in programming languages. Each keyword in C language performs a specific function in the program. Keywords cannot be used as variable names. Keywords have a fixed meaning and cannot be changed. They are the building blocks of 'C' programs. C language supports 32 keywords. All keywords are written in lowercase letters. The different types of keywords are as follows: autodoubleintstructbreakelselongswitchcaseenumregistertypedefcharexternreturnunionconstshortfloatunsignedcontinueforsignedv

图片消失怎么解决 图片消失怎么解决 Apr 07, 2024 pm 03:02 PM

图片消失如何解决先是图片文件上传$file=$_FILES['userfile'];  if(is_uploaded_file($file['tmp_name'])){$query=mysql_query("INSERT INTO gdb_banner(image_src ) VALUES ('images/{$file['name'

Navigating Java Control Flow: Navigating the Current in the Ocean of Programming Navigating Java Control Flow: Navigating the Current in the Ocean of Programming Mar 31, 2024 am 09:46 AM

if-else statement The if-else statement is used to execute different blocks of code based on conditions. If the condition is true, the if code block is executed; otherwise, the else code block is executed. if(condition){//ifconditionistrue,executethisblock}else{//ifconditionisfalse,executethisblock}switch-case statement The switch-case statement is used to execute different code blocks based on the value of a variable. This variable is compared to the value in each case statement, and if there is a match, the corresponding code block is executed. switch(varia

不用数据库来实现用户的简单的下载,代码如下,但是却不能下载,请高手找下原因,文件路劲什么的没有关问题 不用数据库来实现用户的简单的下载,代码如下,但是却不能下载,请高手找下原因,文件路劲什么的没有关问题 Jun 13, 2016 am 10:15 AM

不用数据库来实现用户的简单的下载,代码如下,但是却不能下载,请高手找下原因,文件路劲什么的没问题。

为什么小弟我在php上写的这个代码,在浏览器上什么都不显示 为什么小弟我在php上写的这个代码,在浏览器上什么都不显示 Jun 13, 2016 am 10:24 AM

为什么我在php上写的这个代码,在浏览器上什么都不显示啊

See all articles