| |

VerySource

 Forgot password?
 Register
Search
Author: 潜水已俩月

Novice ask PHP strange problem?

[Copy link]

1

Threads

4

Posts

5.00

Credits

Newbie

Rank: 1

Credits
5.00

 United States

 Author| Post time: 2020-7-9 12:30:02
| Show all posts
None of your methods can be solved!
Reply

Use magic Report

0

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-7-12 15:45:01
| Show all posts
Try <?php echo $page;?>
There should be no short tags recognized <??>
Reply

Use magic Report

0

Threads

20

Posts

17.00

Credits

Newbie

Rank: 1

Credits
17.00

 China

Post time: 2020-7-12 22:15:01
| Show all posts
If there is no short mark, the first line is wrong.
Reply

Use magic Report

0

Threads

4

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 China

Post time: 2020-7-13 06:45:01
| Show all posts
It is the problem caused by the conflict of double quotes.The methods of everyone upstairs cannot be solved.Just take a look at the error prompt returned by the page, and find the location and cause of the error according to the error prompt.

It is not a problem of short tags. If short tags are not supported, all <??> and the php code in its area will be printed on the page as is.
Reply

Use magic Report

0

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-7-15 19:15:02
| Show all posts
Delete the fourth line of code and take a look
Reply

Use magic Report

0

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-7-19 15:45:01
| Show all posts
Double quotes for attributes
Change the wording of <?=$page?> to <?php echo $page;?>
Reply

Use magic Report

0

Threads

3

Posts

4.00

Credits

Newbie

Rank: 1

Credits
4.00

 China

Post time: 2020-7-20 11:45:02
| Show all posts
1 <form method="post" name="list" action="list_all.php">
2 <input type="hidden" name="page" value="<?=$page?>">
3 <input type="hidden" name="id" value="<?=$id?>">
4 <input type="hidden" name="select_arrange" value="<?=$select_arrange?>">
5 <input type="hidden" name="desc" value="<?=$desc?>">
6 <input type="hidden" name="page_num" value="<?=$page_num?>">
7 <input type="hidden" name="selected">
8 <input type="hidden" name="exec">
9 <input type="hidden" name="keyword" value="<?=$keyword?>">
10 <input type="hidden" name="sn" value="<?=$sn?>">
11 <input type="hidden" name="ss" value="<?=$ss?>">
12 <input type="hidden" name="sc" value="<?=$sc?>">
Reply

Use magic Report

0

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-7-21 09:30:01
| Show all posts
<?=$desc?> is the usage of asp
<?php echo $desc ?> is the usage of php

It seems that starting from php 5.2 <? ?> is not working, you must <?php ?>
Reply

Use magic Report

0

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-7-25 22:00:01
| Show all posts
If it is such an error:
"The same error will continue to appear on line 6, ...line 9, line 10, line 11...all of this"

The problem may appear in the fifth line, and there is no writing; and the like, sometimes the error is the Nth line, and the error is indeed the N-1th line.

Problems like yours are often caused by single quotes or double quotes. If the above methods cannot be solved, you can encode the output content with base64_encode() and send it to everyone to see. The problem lies in the content of the variable $desc. So you have to post the content of $desc for everyone to see. Or post the php error message.
Reply

Use magic Report

0

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-7-26 21:00:01
| Show all posts
I don’t understand, there are quotation marks and some without quotation marks, please write the program according to the rules, and then read it
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list