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 ..