Call-php Tutorial

Source: Internet
Author: User
Call $ resultStr = _ response_text ($ postObj, $ contentStr); write it up but call the database $ resultStr = $ rows ["softsize"]; the value in the softsize database is _ response_text ($ postObj, $ contentStr). why not ??


Reply to discussion (solution)

No one will explain _ response_text ($ postObj, $ contentStr); of course not.
$ ResultStr = eval ("return {$ rows [" softsize "]}");
You can.

No one will explain _ response_text ($ postObj, $ contentStr); of course not.
$ ResultStr = eval ("return {$ rows [" softsize "]}");
You can.

I tried it.
$ ResultStr = _ response_text ($ postObj, $ contentStr); write the entire sentence into the value of the softsize database and then $ rows ["softsize"] won't work either.

No one will explain _ response_text ($ postObj, $ contentStr); of course not.
$ ResultStr = eval ("return {$ rows [" softsize "]}");
You can.

$ ResultStr = eval ("return {$ rows [" softsize "]}"); no, boss.


No one will explain _ response_text ($ postObj, $ contentStr); of course not.
$ ResultStr = eval ("return {$ rows [" softsize "]}");
You can.

$ ResultStr = eval ("return {$ rows [" softsize "]}"); no, boss.

public function handleText($postObj)    {        $keyword = trim($postObj->Content);        if(!empty( $keyword ))        {$sql="select * from wsc_download  where isgood='2'";$result=mysql_query($sql);while($rows=mysql_fetch_assoc($result))switch ($keyword){case "byd":$record[]=array('title' =>$rows["title"],'description' =>$rows["notice"],'picUrl' => $rows["showpic"],'url' =>$rows["downurl"]);$contentStr = $rows["hits"];            $resultStr = eval("return {$rows["softsize"]}");    break;         }echo $resultStr;}    }

Eval ("return {$ rows ['softsize]}"); try

Eval ("return {$ rows ['softsize']}");

Eval ("return {$ rows ['softsize']}");

This is a try ..

Eval ("return {$ rows ['softsize']}"); {}remove and try

Eval ("return {$ rows ['softsize']}"); {}remove and try

Show syntax error

The eval parameter must be a valid php statement.

The eval parameter must be a valid php statement. thank you! I used a cheap solution ..

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.