php-general Digest 24 Feb 2008 09:38:34 -0000 Issue 5311

2008-02-24 Thread php-general-digest-help

php-general Digest 24 Feb 2008 09:38:34 - Issue 5311

Topics (messages 269975 through 269987):

mysql_field_name
269975 by: Emiliano Boragina

Re: temporary error
269976 by: Andrés Robinet
269981 by: Robert Cummings
269984 by: Andrés Robinet

Re: validate + if
269977 by: Richard Lynch

Re: while
269978 by: Richard Lynch

Re: Session destruction problem
269979 by: Adil Drissi

Question about PHP Licence and it's future!
269980 by: Tamer Higazi
269982 by: Robert Cummings
269983 by: Andrés Robinet
269985 by: Andrés Robinet
269986 by: Andrés Robinet
269987 by: Robert Cummings

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--
---BeginMessage---
Hi list

 

I have the following code:

 

?

 $base = panel;

 $conexion = mysql_connect ( 'localhost' , 'root' , 'root' );

 mysql_select_db ( $base , $conexion );

 echo table border='1';

 $resultado = mysql_query (select * from registro , $conexion);

 while ( $registro = mysql_fetch_row ($resultado)) {

   echo tr;

   foreach ( $registro as $clave ) {

echo td . mysql_field_name($resultado, '') .
/td;

   }

   echo /tr;

   echo tr;

   foreach ( $registro as $clave ) {

echo td . $clave . /td;

   }

 }

 echo /tr/table;

?

 

But the result is two TR with only the first field name of the DB.

I want to see all fields name of the DB and only in one TR… how can I do
that (in code please)?

 

Thanks.

 

+  _
   // Emiliano Boragina _

   // Diseño  Comunicación //
+  _

   // [EMAIL PROTECTED]  /
   // 15 40 58 60 02 ///
+  _

 

---End Message---
---BeginMessage---
 -Original Message-
 From: Greg Donald [mailto:[EMAIL PROTECTED]
 Sent: Saturday, February 23, 2008 1:33 PM
 To: [EMAIL PROTECTED]
 Subject: Re: [PHP] Re: temporary error
 
 On 2/23/08, tedd [EMAIL PROTECTED] wrote:
  I love the book written by Carl Sagan the The Dragons of Eden -- he
   has an interesting perspective on the God thing and it contains more
   substance than a cute quote.
 
 Well as long as we're quoting famous old fence-sitting agnostics, lets
 not forget Sagan's best:
 
 'If by God one means the set of physical laws that govern the
 universe, then clearly there is such a God. This God is emotionally
 unsatisfying... it does not make much sense to pray to the law of
 gravity.'
 
 
 --
 Greg Donald
 http://destiney.com/

Why not? Many people believes in such a God, so he has a very high probability
of existence, and it has taken the worst part as nobody I know of is currently
praising and praying to him.
Maybe, it is about time to give some recognition to *the real God*:

I believe in Spinoza's God, who reveals Himself in the lawful harmony of the
world, not in a God Who concerns Himself with the fate and the doings of
mankind. - Albert Einstein

At least this God seems not to incite people to kill other people, and doesn't
ask you to go to church every Sunday to put some money in the priest's pockets.

Regards,

Rob

Andrés Robinet | Lead Developer | BESTPLACE CORPORATION 
5100 Bayview Drive 206, Royal Lauderdale Landings, Fort Lauderdale, FL 33308 |
TEL 954-607-4207 | FAX 954-337-2695 | 
Email: [EMAIL PROTECTED]  | MSN Chat: [EMAIL PROTECTED]  |  SKYPE: bestplace |
 Web: bestplace.biz  | Web: seo-diy.com
---End Message---
---BeginMessage---

On Sat, 2008-02-23 at 20:11 -0500, Andrés Robinet wrote:
  -Original Message-
  From: Greg Donald [mailto:[EMAIL PROTECTED]
  Sent: Saturday, February 23, 2008 1:33 PM
  To: [EMAIL PROTECTED]
  Subject: Re: [PHP] Re: temporary error
  
  On 2/23/08, tedd [EMAIL PROTECTED] wrote:
   I love the book written by Carl Sagan the The Dragons of Eden -- he
has an interesting perspective on the God thing and it contains more
substance than a cute quote.
  
  Well as long as we're quoting famous old fence-sitting agnostics, lets
  not forget Sagan's best:
  
  'If by God one means the set of physical laws that govern the
  universe, then clearly there is such a God. This God is emotionally
  unsatisfying... it does not make much sense to pray to the law of
  gravity.'
  
  
  --
  Greg Donald
  http://destiney.com/
 
 Why not? Many people believes in such a God, so he has a very high probability
 of existence, and it has 

php-general Digest 24 Feb 2008 22:00:56 -0000 Issue 5312

2008-02-24 Thread php-general-digest-help

php-general Digest 24 Feb 2008 22:00:56 - Issue 5312

Topics (messages 269988 through 270014):

Re: temporary error
269988 by: Robert Cummings
269989 by: tedd
269990 by: tedd
27 by: Zoltán Németh

Re: All Survey leading to PHP
269991 by: tedd

Re: mysql_field_name
269992 by: tedd

Re: Plant Extracts and Our Factory
269993 by: tedd
269997 by: Shawn McKenzie

Re: Question about PHP Licence and it's future!
269994 by: tedd

Re: System errno in PHP
269995 by: Michal Maras

Re: Session destruction problem
269996 by: Shawn McKenzie

Re: Shopping Carts
269998 by: Shawn McKenzie
26 by: Robert Cummings
270005 by: Bastien Koert

Re: temprorary error
270001 by: Mary Anderson
270002 by: Robert Cummings
270003 by: Zoltán Németh
270010 by: tedd
270013 by: Robert Cummings

PHPTriad and php error
270004 by: hE
270006 by: Bastien Koert
270007 by: hE
270009 by: Bastien Koert

mysql test and error
270008 by: hE
270011 by: Brady Mitchell
270012 by: Nathan Rixham
270014 by: hE

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--
---BeginMessage---
On Sun, 2008-02-24 at 03:34 -0500, Andrés Robinet wrote:
  -Original Message-
  From: Robert Cummings [mailto:[EMAIL PROTECTED]
  Sent: Sunday, February 24, 2008 2:34 AM
  To: Andrés Robinet
  Cc: [EMAIL PROTECTED]
  Subject: RE: [PHP] Re: temporary error
  
  
  On Sat, 2008-02-23 at 20:11 -0500, Andrés Robinet wrote:
-Original Message-
From: Greg Donald [mailto:[EMAIL PROTECTED]
Sent: Saturday, February 23, 2008 1:33 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Re: temporary error
   
On 2/23/08, tedd [EMAIL PROTECTED] wrote:
 I love the book written by Carl Sagan the The Dragons of Eden -- he
  has an interesting perspective on the God thing and it contains more
  substance than a cute quote.
   
Well as long as we're quoting famous old fence-sitting agnostics, lets
not forget Sagan's best:
   
'If by God one means the set of physical laws that govern the
universe, then clearly there is such a God. This God is emotionally
unsatisfying... it does not make much sense to pray to the law of
gravity.'
   
   
--
Greg Donald
http://destiney.com/
  
   Why not? Many people believes in such a God, so he has a very high
  probability
   of existence, and it has taken the worst part as nobody I know of is
  currently
   praising and praying to him.
  
  You sir have homework:
  
  http://en.wikipedia.org/wiki/Bandwagon_effect
  http://en.wikipedia.org/wiki/List_of_cognitive_biases
  http://en.wikipedia.org/wiki/Critical_Thinking
  

 LOL, I have to recognize that my previous email had some dirty tricks in it. 
 I was mostly being ironic. I'm actually more of an agnostic person (with some 
 atheism moments from time to time). So, let me clarify what I said and to 
 whom I said it:
 
 *Many people believe in such a God, so he has a very high probability of 
 existence*:
 
 To those who say that something exists because they believe in it. That can't 
 be true, since anybody can argue the opposite (something does not exist, 
 because they don't believe in it) and neither of them can be proved.
 As both statements can't be true, we can assume there's no deterministic way 
 in which existence can be derived from belief. So we can propose as an 
 alternate hypothesis that existence is a probabilistic variable, proportional 
 to the number of believers, ergo, the aforementioned God has pretty good 
 chance of existence.
 Furthermore, in order to simplify the problem we can compute the probability 
 of existence, in a weighted average fashion, using the metric *believer 
 contribution to the human race* (from now on called C), we get following 
 formula:
 
 P(G) = SUM [ C(i)*X(i) ] / SUM [ C(i) ]
 
 Were, P(G) is the *probability of existence of god G*, C(i) is the 
 aforementioned metric applied to person *i* and X is a binary variable, such 
 that:
 
 X(i) = [*i* is a person: 1 if person *i* is a believer of god G, 0 otherwise]
 
 We can even find joint probabilities for gods G1 and G2 and calculate all 
 sorts of statistic parameters. The only problem is determining C(i), that is, 
 a measure of the contribution of person *i* to the human race, but our team 
 has found a method for that. I can't get deeper into this, because I would be 
 in violation the NDA I have signed with NSA.
 Interesting though, is that we can find gods that have more probability of 
 existence than an electron in the first level of energy of an hydrogen atom 
 (and we don't have