English 中文(简体)
购买力平价会议赢得了某些价值。
原标题:PHP Session won t register certain values
  • 时间:2011-01-20 17:01:49
  •  标签:
  • php
  • session

除非我没有基本的东西,否则,这是非常奇怪的。

当我用我的台子提供数据将它列入某届会议时,它却不工作,然而,如果我手工确定价值,就会确定。

www.un.org/Depts/DGACM/index_spanish.htm 这一工作。

$query = "SELECT * FROM example WHERE price= $id ";
$result = mysql_query($query) or die(mysql_error());
$row = mysql_fetch_assoc($result);

$price = $row[ price ];

$_SESSION[ order_details ] = array("price"=>$price);

www.un.org/Depts/DGACM/index_spanish.htm 这项工作:。

$query = "SELECT * FROM example WHERE price= $id ";
$result = mysql_query($query) or die(mysql_error());
$row = mysql_fetch_assoc($result);

$price = $row[ price ];

$price =  9.99 ;  

$_SESSION[ order_details ] = array("price"=>$price);

Any help would be greatly appreciated.

最佳回答

友好的URLs是 Chrome的 me子。 我的会议没有任何错误。

问题回答

举例来说,价格是一阵。 你试图将这一阵列添加到另一个阵列中array(“price”=>$price);

第二例,正如你可以看到的那样,价格是一阵列(<>面值=9.99 ;),因此,你可以将此加到另一阵列。





相关问题
why the session in iis automatically log out?

I used iis6, and when i called a function Directory.delete(), the all the session relate this website will be logged out. and i debugged the website, i found no exception. any one have ideas on this ? ...

Check session from a view in CodeIgniter

What is the best way to check session from a view in CodeIgniter, it shows no way in their user guide, otherwise I will have to make two views on everything, which is kinda weird...still a newbie to ...

Can I get the size of a Session object in bytes in c#?

Is it possible to get the size(in bytes) of a Session object after storing something such as a datatable inside it? I want to get the size of a particular Session object, such as Session["table1"], ...

提供严格分类的出席会议物体

提供严格分类的与会机会的最佳方式是什么? 我正计划转而选择矩阵,这正在促使汇编者抱怨我的幻觉方案拟订方法......

PHP Session is not destroying after user logout

I m trying to create an authentication mechanism for my PHP Application and I m having difficulty destroying the session. I ve tried unsetting the authentication token which was previously set within ...

热门标签