Wrox Programmer Forums
|
Pro PHP Advanced PHP coding discussions. Beginning-level questions will be redirected to the Beginning PHP forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Pro PHP section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 26th, 2006, 07:14 AM
Authorized User
 
Join Date: Jan 2006
Posts: 22
Thanks: 0
Thanked 0 Times in 0 Posts
Default "Help!"

Hi,

     I am trying to find out its explanation but not getting understand.
Would you like to tell me about
mysql_fetch_assoc($res);
and
mysq_free_result($res);
and
what these lines of code shows..........
$editFormAction = $HTTP_SERVER_VARS['PHP_SELF'];
if (isset($HTTP_SERVER_VARS['QUERY_STRING'])) {
  $editFormAction .= "?" . $HTTP_SERVER_VARS['QUERY_STRING'];
}
I will be very thankful to you for this and saving my time to go here and there but not success.

 
Old January 26th, 2006, 11:03 AM
Friend of Wrox
 
Join Date: Dec 2004
Posts: 154
Thanks: 0
Thanked 0 Times in 0 Posts
Default

mysql_fetch_assoc:
http://www.scit.wlv.ac.uk/appdocs/ph...tch-assoc.html

mysql_free_result($res); (its mysql_free and not msq_free but I guess thats just a typo)
http://www.scit.wlv.ac.uk/appdocs/ph...ee-result.html

$editFormAction = $HTTP_SERVER_VARS['PHP_SELF'];
That contain the server folder and current file.. say you are on a website under http://xyz.com/picture/index.php amd that code was inside, $editFormAction = picture/index.php

Not sure about the isset part
What it does is add the value of $HTTP_SERVER_VARS['QUERY_STRING']; to the $editFormAction IF $HTTP_SERVER_VARS['QUERY_STRING']; exist.

I'm not "hot" on HTTP_SERVER so I dont know what its suppose to do. Query_string coul dmean it carry some kind of string from a query ... ??









Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.