[PHP] Re: SESSION variable and register_globals

2003-02-10 Thread Bastian Vogt
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

[PHP] Re: Data type issues

2003-01-14 Thread Bastian Vogt
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

Re: [PHP] Re: mail()

2002-12-20 Thread Bastian Vogt
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

[PHP] Re: mail()

2002-12-19 Thread Bastian Vogt
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

[PHP] Re: repeat region

2002-12-19 Thread Bastian Vogt
>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

[PHP] Re: creating objects by reference?

2002-12-19 Thread Bastian Vogt
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

[PHP] Re: *Cannot connect to db

2002-12-18 Thread Bastian Vogt
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

[PHP] Re: list and (array) get_val

2002-12-18 Thread Bastian Vogt
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

Re: [PHP] Update query

2002-12-12 Thread Bastian Vogt
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

[PHP] Re: Pls Help: Moving script from Win to Linux

2002-12-10 Thread Bastian Vogt
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

[PHP] Re: MySQL ?

2002-12-05 Thread Bastian Vogt
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

[PHP] Re: passing sessions via POST

2002-12-05 Thread Bastian Vogt
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

[PHP] Re: Encrypting a message

2002-12-04 Thread Bastian Vogt
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

[PHP] Re: assignment to $this inside constructor

2002-12-04 Thread Bastian Vogt
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 ) { >

[PHP] Re: PHP Sessions

2002-12-04 Thread Bastian Vogt
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

Re: [PHP] Whimper, help :)

2002-12-04 Thread Bastian Vogt
> $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

Re: [PHP] "x" as a multiplier

2002-12-03 Thread Bastian Vogt
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!

[PHP] Re: some data output formatting and grouping question...

2002-12-02 Thread Bastian Vogt
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

[PHP] Re: Can't recover data in php posted with a form tag.

2002-11-29 Thread Bastian Vogt
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

[PHP] Re: checkboxes

2002-11-22 Thread Bastian Vogt
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

Re: RES: [PHP] Passing Variables from one php doc to another

2002-11-21 Thread Bastian Vogt
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