请问一个变量传送的问题!
有如下代码:
test.html
<img src="show.php?name='hello'">
show.php
<?php
$Connid=mysql_connect();
mysql_select_db('test');
$sql="select pic from photo where name=******";//问题就在这里。
//这里应该怎样接收test.html里的
//'hello'?
//我试过$_POST[name],
//$_GET[name],$_REQUEST[name],结果都不对。应该怎样弄?
$result=mysql_query($sql);
$image=mysql_result($result,0);
echo $image;
?>