Hello,
This is a reply to an e-mail that you wrote on Tue, 15 Jul 2003 at 15:19,
lines prefixed by '>' were originally written by you.
> Can i ask another question? What if i want to increment a global
> counter from within a function. at the moment i am trying to declare
> the variable normally:
Thanks for the reply!
I must admit i and confused by the answer to the global variables question.
Can i ask another question? What if i want to increment a global counter from within a
function. at the moment i am trying to declare the variable normally:
$counter=0;
then within the function:
f
Am Dienstag, 15. Juli 2003 14:39 schrieb bob pilly:
> Can i declare an array that doesnt have a fixed size? Basically i want to
> assign the results of a query to the array but obviously the query results
> can change. Something along the lines of:
$myarray= array();
> while($temp=mssql_fetch_arr
Every array does not have a fixed size:
while($temp=mssql_fetch_array($tmresult)){
$array[] = $temp["fieldname"]; // ads an element at the end
// or
$array[$temp["id"]]= $temp["fieldname"]; // the table id is the key
}
You can access global variables in functions or class methods by:
1. declarin
Hi all, yet again im struggling with php syntax after to many years with c.
If anyone can help or point me to some good doc's i'd would really appreciate it! My
two questions are:
Can i declare an array that doesnt have a fixed size? Basically i want to assign the
results of a query to the arra
5 matches
Mail list logo