Hi all,
> 1.If register_globals is on, then doing an unset($_SESSION["blah"]), to unset
> a session variable will not work as the variable will be unset in that
> particular instance but will be restored in next instance of that session.
> Hence session_unregister("blah") also must be used to prop
Hi Peter,
you're looking for "ord();"
cu,
Bastian
>
> Is there some way to make PHP add an int to the ASCII value of a single
> character string (since there seems to be no char type)?
>
> Thanks,
>
> Peter
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.ph
Hi,
if you use plain text use "\n",
elseif you use text/html use "" (and all the other html-tags)
HTH,
Bastian
Edward Peloke schrieb:
> Can I still keep the formatting? When I added the Content-type: text/html
> to the header last night, the link worked but my formatting did not.
> Everything
erunited.com\pages\activate_account.php?clientid=$u
> name'>Activate Account";
>mail($email,'Thanks',$mailcontent,"From:
> aircharterunited.com");
--
Mit freundlichem Gruß
i.A. Bastian Vogt
+ KomTel Gesellschaft fuer
+ Kommunikations
>From the manual:
example: $a % $b
name: Modulus
value: Remainder of $a divided by $b.
Not from the manual:
example2: 47 % 5
value2: 2
HTH,
Bastian
> Jeff or anyone,
>
> Ok, I'll bight. What are you doing with the % and %7 ?
>
> > $idx=1;
> > echo()
> > while(fetch_rows) {
> > prin
Hi,
if you're interested in the future of object handling, I suppose you to
look at this: http://www.zend.com/engine2/ZendEngine-2.0.pdf
Regards,
Bastian
> If you are looking to the future: I don't believe the ability to return
> objects by reference will be an option in Zend Engine 2.
>
> Matt
Hi,
leave out the "@", and give us the error message.
"@" suppresses error messages of any function.
HTH,
Bastian
> mySQL; php running in safe mode; compared to the other code on the same
> server. here is mine - I don't get any connection. What could be wrong?
> Also, what does this @ sign mea
As you can read here: http://www.php.net/manual/en/function.list.php
Note: list() only works on numerical arrays and assumes the numerical
indices start at 0.
"b" is not numerical, I think ;-)
HTH,
Bastian
> a.php
>
> list($a) = $_GET;
> print $a;
> ?>
>
> and I typed a.php?b=c
>
> I expected c
Hi,
did you "echo $query;" and put the output into phpmyadmin?
Perhaps there's an error message that may help you
HTH,
Bastian
Steve Jackson schrieb:
> It doesn't work in that it doesn't update the database.
> I have a form which when loaded takes a variable ItemCode from the
> previous pag
n.
>
> Can any Server pros out there possibly throw me a bone? My deadline is looming. :^)
>
> As always, a million thanks in advance.
> Yours truly.
> -NorthBayShane
--
Mit freundlichem Gruß
i.A. Bastian Vogt
+ KomTel Gesellschaft fuer
+ Kommunikations- und
+ Informationsdienste
Hi,
use mysql_list_tables();
HTH,
Bastian
Hacook schrieb:
> I am really sorry but i can't find any good mySQL good mailing list...
>
> How can i make a little php function to check if a table exists ?
>
> Thanks a lot,
> Hacook
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe
Hi,
make sure there's a "session_start();" on each page.
Your server should keep the session_id.If it doesn't try this:
HTH,
Bastian
Myrage schrieb:
> How do we pass sessions via post ?? I seem to lose the session once it has
> been submitted through the POST Method.
>
> Any help??
--
PH
Hi,
$array = ($var1, $var2, $var3, $var4);
for (...)
{
$counter++;
$counter = $counter % 4;
// "%" is the "mod-" operator which returns the rest of the division $counter / 4
// here you use the variable $array[$counter]
}
HTH, Bastian
Rodrigo De Oliveira schrieb:
> Hi g
Hi,
I suggest reading from page 12 of this document:
http://www.zend.com/engine2/ZendEngine-2.0.pdf
There's an example which matches with your technique
Regards,
Bastian
Filippo Veneri schrieb:
> Let's begin with a small code snippet:
>
>
>
> class A {
> function A( $selector ) {
>
If the session is started on any other page befor and the variable is
registered before, the answer should be "yes". AFAIK, php treats the main
script and the included ones as one script.
Maybe the session_start() is missing somewhere?
Regards,
Bastian
Andy Kirk schrieb:
> Can anyone tell me if
> $sql = 'SELECT id,AU,ST,BT,AT FROM '.$table.' WHERE MATCH
> (TNum,YR,AU,ST,SD,BT,BC,AT,PL,PR,PG,LG,AUS,KW,GEO,AN,RB,CO)
> AGAINST (\''.stripslashes($search).'\' IN BOOLEAN MODE) ORDER BY id asc';
> http://ccl.flsh.usherb.ca/print/display.table.in
Hi,
try $newwidth." x ".$newheight instead.
It's important to put the spaces inside the " <- ...don't know the word
:-)
If it's still not working you could try
settype($newwidth, "string");
settype($newheight, "string");
echo $newwidth." x ".$newheigt;
but I think, this is not necessary!
Hi,
if I got you right, you want to output each value for "Y" and then print out
how often this value appears?
If yes, you could try this:
SELECT Y, COUNT(Y) AS NUMBER FROM TABLE GROUP BY Y HAVING U = 'me'
Well, it's Monday morning and I don't know, if this will work, but I guess
it does! ;-)
Just
hi,
you could try to fetch the value from the superglobal variable "$_POST" or
"$HTTP_POST_VARS"
(echo $_POST[clSQL];
echo $HTTP_POST_VARS[clSQL];)
regars,
bastian
Luc Roettgers schrieb:
> I have 2 files runQuery.php and doSQL.php, where the first one is posting data
>entered by the user to
hi,
your missing some brackets "[]"!
this should work better:
AAA
SSS
regards,
Bastian
> Hello;
>
> I want to do that:
>
> I have two checkboxes:
> if first one is checked assign the value as a;
> if first one is checked assign the value as s;
> if both of them checked assign
hi,
then you have to do it like this:
http://www.example.com/doo.php?dah=something&dee=
regards,
Bastian
> I tried to use this way but it doesnt work I think its because it is a
> variable that I have to pass, something like:
>
> http://www.example.com/doo.php?dah=something&dee=$somethingels
21 matches
Mail list logo