Re: [PHP] solution

2010-04-19 Thread tedd
At 7:26 PM +0200 4/18/10, Michiel Sikma wrote: On 17 April 2010 13:03, Paulo-WORK wrote: I have reached a solution for my problem with js. Following all the sugestions and using jquery turned out to be quite simple. using .hide( ) and .show( ) i am able to change the #div with Js enabled

Re: [PHP] solution

2010-04-18 Thread Michiel Sikma
On 17 April 2010 13:03, Paulo-WORK wrote: > I have reached a solution for my problem with js. > Following all the sugestions and using jquery turned out to be quite > simple. > using .hide( ) and .show( ) i am able to change the #div with Js enabled > content and no js. > > That's the best way t

Re: [PHP] solution

2010-04-17 Thread lala
Paulo-WORK wrote: I have reached a solution for my problem with js. Following all the sugestions and using jquery turned out to be quite simple. using .ide( ) and .show( ) i am able to change the #div with Js enabled content and no js. So defining with css for example: #main{display:none;} #m

Re: [PHP] Solution

2010-04-13 Thread Karl DeSaulniers
My mistake. You are correct. Karl On Apr 13, 2010, at 2:16 PM, Jim Lucas wrote: Karl DeSaulniers wrote: Hey Gary, instead try something like this maybe? $dbc=mysqli_connect('localhost','root','','test') or die('Error connecting to MySQL server'); $query_name="INSERT INTO name(fname='$fname

Re: [PHP] Solution

2010-04-13 Thread tedd
At 3:09 PM -0400 4/13/10, Andrew Ballard wrote: On Tue, Apr 13, 2010 at 2:50 PM, tedd wrote: For example, a user has name, address, height, weight, color, language, etc. Those things can be listed in a single table. And now for the universal DBA answer - it depends. There are cases where th

Re: [PHP] Solution

2010-04-13 Thread Jim Lucas
Andrew Ballard wrote: > On Tue, Apr 13, 2010 at 2:50 PM, tedd wrote: >> For example, a user has name, address, height, weight, color, language, etc. >> Those things can be listed in a single table. > > And now for the universal DBA answer - it depends. There are cases > where that information nee

Re: [PHP] Solution

2010-04-13 Thread Jim Lucas
Karl DeSaulniers wrote: > Hey Gary, instead try something like this maybe? > > > $dbc=mysqli_connect('localhost','root','','test') or die('Error > connecting to MySQL server'); > > $query_name="INSERT INTO name(fname='$fname', lname='$lname')"; > $query_address="INSERT INTO address (street='$str

Re: [PHP] Solution

2010-04-13 Thread Andrew Ballard
On Tue, Apr 13, 2010 at 2:50 PM, tedd wrote: > For example, a user has name, address, height, weight, color, language, etc. > Those things can be listed in a single table. And now for the universal DBA answer - it depends. There are cases where that information needs to be normalized to another t

Re: [PHP] Solution

2010-04-13 Thread Gary
Karl Thanks for the reply, I copied your code and it did not work, tried a few variations and same result. Gary "Karl DeSaulniers" wrote in message news:e56be001-63f6-4df1-8c72-ad468c23e...@designdrumm.com... > Hey Gary, instead try something like this maybe? > > > $dbc=mysqli_connect('localho

Re: [PHP] Solution

2010-04-13 Thread tedd
At 12:26 PM -0400 4/13/10, Gary wrote: Tedd I had four tables. name, (fname, lname) address(street, town, state, zip), contact(phone, fax, email), comments (comments). It was done this way because it is strictly a learning exercise. I had never created a DB with multiple tables, so I wanted t

Re: [PHP] Solution

2010-04-13 Thread Jim Lucas
tedd wrote: > > I don't see any reason to separate the attributes of the person into two > different tables. Why do that? > tedd, Funny you ask this. I have always thought the same thing. Then just last week I started listing to the Zend Dev Zone podcasts. I came across this one and thought

Re: [PHP] Solution

2010-04-13 Thread Gary
Tedd I had four tables. name, (fname, lname) address(street, town, state, zip), contact(phone, fax, email), comments (comments). It was done this way because it is strictly a learning exercise. I had never created a DB with multiple tables, so I wanted to be able to contruct one using foreig

Re: [PHP] Solution

2010-04-13 Thread tedd
At 6:04 PM -0400 4/12/10, Gary wrote: For those that were looking to see a solution, this is what I have come up with. It was pointed out on another board (MySQL) that inserting multiple in one script is probably prohibited because of security reasons. What I did was open the connection, insert

Re: [PHP] Solution

2010-04-12 Thread Karl DeSaulniers
Hey Gary, instead try something like this maybe? $dbc=mysqli_connect('localhost','root','','test') or die('Error connecting to MySQL server'); $query_name="INSERT INTO name(fname='$fname', lname='$lname')"; $query_address="INSERT INTO address (street='$street', town='$town', state='$state'

Re: [PHP] Solution

2010-04-12 Thread Peter Lind
On 13 April 2010 00:04, Gary wrote: > For those that were looking to see a solution, this is what I have come up > with.  It was pointed out on another board (MySQL) that inserting multiple > in one script is probably prohibited because of security reasons. > > What I did was open the connection,

Re: [PHP] Solution for writing a function layer between pecl-memcache and PHP

2007-07-27 Thread Nathan Nobbe
ppp and static / non-static are unrelated topics. the former is regarding access control or visibility into the members (variables or methods) of a class. the latter is regarding whether a member can be called from the context of an instance or not. essentially static means to associate a function

Re: [PHP] Solution for writing a function layer between pecl-memcache and PHP

2007-07-27 Thread Sascha Braun - CEO @ Braun Networks
I checked out the book from mister rethans and mister gutmans and mister bakken, mh, its seems easier to simply say how the book is named :)) To check out, what exactly it means, to create static and public and so on methods. Yeah, I can easely call them static, as you prefered. But now there cam

Re: [PHP] Solution for writing a function layer between pecl-memcache and PHP

2007-07-27 Thread Sascha Braun - CEO @ Braun Networks
Thank you very much Nathan. You mean I should change the the method from public to static? Is that right? I hope I was getting you right. I now juggled around abit with the code, and as it happens most of the time, in case I invoke the XML object, that the file given was not read right. When i i

Re: [PHP] Solution for writing a function layer between pecl-memcache and PHP

2007-07-27 Thread Nathan Nobbe
judging by the method invocation you have shown site::memcache($pointername, $dataset); that indicates site is a class and memecahce is a method defined in site, which is being invoked statically in this case. and in the definition of memecache you showed, the definition does not have the static

Re: [PHP] Solution: [PHP] OOP slow -- am I an idiot?

2006-10-16 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2006-10-15 13:59:39 -0700: > As I cannot think of a class-based way to build my report, I think > I'll use a customer class everywhere BUT in the report. Inside the > report I'll just use one SQL statement instead of dozens > of instances and hundreds of queries. > > I'll ma

[PHP] Re: PHP solution for virtual folder management

2006-10-09 Thread Colin Guthrie
Angelo Zanetti wrote: > Hi all, > > WE are developing a system and now we have to create our own folder > management system, it however wont be physical folders on the hard drive > but more database entries and then the user will view the output as if > they were directories. > > So Im looking fo

Re: [PHP] [SOLUTION] Re: [PHP] Convert an array in an object instance

2004-10-27 Thread Francisco M. Marzoa Alonso
Erm... I've seen there're some aspects to perform... it fails because the name of the members is changed during conversion to the array. It puts the class name using '\0' (0 is a zero, not a caps 'o') character as separator before member name in private and an '*' in protected. It's not an unaff

RE: [PHP] Solution to display the results of an exec/system + rsh command

2004-03-18 Thread Frédéric Martin
Hi guys, With the help of a guy, we found the solution. So for information, this is what you have to do to succeed such kind of command. You have to use the same username in your webserver as the name of the account in the remote machine you're trying to access with rsh. typically if you want to d

Re: [PHP] Solution to register_globals=off & existing code???

2002-07-03 Thread 1LT John W. Holmes
PROTECTED]> Sent: Wednesday, July 03, 2002 2:33 PM Subject: Re: [PHP] Solution to register_globals=off & existing code??? > Or just use extract($HTTP_POST_VARS); Same thing. :) > -Kevin > > - Original Message - > From: "PHPCoder" <[EMAIL PROTECTED]>

Re: [PHP] Solution to register_globals=off & existing code???

2002-07-03 Thread PHPCoder
DOH! Now you tell me!!! :-[ Hah, thanks man, should have known that there is always a simple solution in PHP, just need to know where to look for it... Kevin Stone wrote: >Or just use extract($HTTP_POST_VARS); Same thing. :) >-Kevin > >- Original Message - >From: "PHPCoder" <[EMAIL

Re: [PHP] Solution to register_globals=off & existing code???

2002-07-03 Thread Kevin Stone
Or just use extract($HTTP_POST_VARS); Same thing. :) -Kevin - Original Message - From: "PHPCoder" <[EMAIL PROTECTED]> To: "php-general" <[EMAIL PROTECTED]> Sent: Wednesday, July 03, 2002 12:24 PM Subject: [PHP] Solution to register_globals=off & existing code??? > Hi > Already posted

Re: [PHP] Solution to "headers already sent" error.

2001-06-20 Thread Jens Nedal
Hy there 8) This one is easy... The thing IS that when you use the header statement there is absolutly NO OUTPUt like echo(); inside the PHP-brackets allowed AND NO OUTPUT allowed outside the PHP-Brackets, before the first header statement appears! Not even simple linebreaks or anything! So wat

Re: [PHP] Solution to "headers already sent" error.

2001-06-18 Thread Ethan Schroeder
lt;[EMAIL PROTECTED]> Sent: Monday, June 18, 2001 3:54 PM Subject: Re: [PHP] Solution to "headers already sent" error. > Hiho, > > Merio, Quinn wrote: > > So, during the time the lists were down, i was banging my head over a > > seemingly impossible error messag

Re: [PHP] Solution to "headers already sent" error.

2001-06-18 Thread Alexander Wagner
Hiho, Merio, Quinn wrote: > So, during the time the lists were down, i was banging my head over a > seemingly impossible error message. > > Warning: Cannot send session cache limiter - headers already sent > > What?! I exlaimed.. the first line in my page registered the session > variable i was u

RE: [PHP] Solution for PHP - IMAP - WAP ?

2001-05-09 Thread Valter Santos
Hi Nikolajsu and PHPers! I am now working in a complete solution for Web/WAP/PDA, with content management + portal services (chat, forum, email, etc...) But I think that you will have to wait until July 2001 for the first public release. The solution is a complete platform for deploy a Portal o

Re: [PHP] solution

2001-02-06 Thread Nick Talbott
We have implemented this using AliasMatch directives in the Apache configuration file. Here is our recipe: AliasMatch ^/.+/(.+)\.php /website/$1.php AliasMatch ^/(.+)\.php /website/$1.php AliasMatch ^/.* /website/start.php What this achieves is that any specific reference to a PHP script (even

Re: [PHP] solution

2001-02-05 Thread Chris Adams
On 5 Feb 2001 23:31:17 -0800, andreas \(@work\) <[EMAIL PROTECTED]> wrote: >a 404 php-file which extracts the path and generates a page for that out of >mysql > >or is there a better solution out there ? This approach can work and, properly done, work fairly well. However, a more elegant approac