Can someone help me with preg_replace?
I want to convert all numbers either 8 or 9 digits in length, into a
link. Such that when it sees:
John Doe, 456890123, is a new employee.
It converts it to:
John Doe, 456890123, is a new
employee.
function callback($buffer) {
// create id links
retur
I put this at the top of long pages,
$processing = "
processing, please wait ...
";
echo $processing;
flush();
Then put this at the bottom,
$hide = "
if (document.layers) {
processing.visibility='hide'
} else if (document.all) {
document.all('processing').
Try taking the square root of the variable
$sqrt = sqrt($var);
then compare the number of decimal places.
if (strlen(strstr($sqrt,".")) <= strlen(strstr($var,"."))) {
// perfect
}
Just guessing of course.
On 5/25/2004 5:06 PM, Stephen Craton wrote:
I'm in a bit of a pickle. I need to find o
$search_usename <> $search_username
you're missing an "r"
On 5/24/2004 5:55 PM, Bob Lockie wrote:
I can't see it.
Maybe other eyes will help. :-)
Why does search_username.1 show the data that was posted with the form
but search_username.2 is empty?
$search_usename = $_REQUEST[search_usern
ray[$key] = $sub_array[$return_key];
}
}
return $ret_array;
}
On 5/24/2004 4:32 PM, John Kaspar wrote:
Something like $users[*]['name']
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Is there a shortcut way to turn an subelement
in a multi-dimensioned array into a regular array.
For example, here's my array:
// print_r($users)
Array
(
[1] => Array
(
[name] => John
[email] => [EMAIL PROTECTED]
)
[2] => Array
(
[
use the global keyword...
http://www.php.net/manual/en/language.variables.scope.php
On 3/7/2004 6:17 PM, Nathan Croker wrote:
I am relatively new to PHP. But something I can't seem to make work is when
I call one of the functions I have made and a variable is set inside that
function
eg. funct
If you want to actually want the variables $flyertotal, $emailtotal, and
$phonetotal, use the line:
${$array[0]."total"} = $row[0];
But as you defined $array, that will actually create the variables
$Flyertotal, $Emailtotal, and $Phonetotal (note the caps).
On 2/13/2004 6:10 AM, Bob pilly wrot
I'm just storing its hash. Then comparing it to the database hash. Is
that bad? Is there a good write-up somewhere discussing authentication
techniques that you could recommend?
Yahoo makes you reenter your password every time you reopen your
browser. I'll check other sites though. Thanks
When my users log in, they enter their username and password, and click
a checkbox to remember the login in the future. If the remember checkbox
is left unchecked, the cookie expire is set to zero. I also have a page
where they can change the password.
My question is - how do I update the passw
$sql = "select id, name from customer";
$rs = mysql_query($sql) or die("sql=$sql => ".mysql_error());
while ($row = mysql_fetch_assoc($rs)) {
$custarray[] = $row;
}
/*
$row is an array with the elements 'id' and 'name'
$custarray becomes a multi-array indexed starting a 0
e.g.
$custarray[0]
11 matches
Mail list logo