Re: [PHP-DB] MySQL Array

2002-12-06 Thread Ignatius Reilly
o dicefiscale) ."', etc" then mysql_query ( $query ) ; Ignatius - Original Message - From: "Antonio Bernabei" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, December 06, 2002 7:12 PM Subject: Re: [PHP-DB] MySQL Array > Hi, > > I want to in

Re: [PHP-DB] MySQL Array

2002-12-06 Thread Antonio Bernabei
Hi, I want to insert the upper case of the strings written in the forn, so I put on the php file called these lines $NOME=strtoupper($nome); mysql_query ("INSERT INTO anagrafe (codice,nome, cognome, codicefiscale) VALUES ('strtoupper($codicefiscale)','$NOME','strtoupper($cognome)','strtoupper($

Re: [PHP-DB] MySQL Array

2002-12-06 Thread Art Chevalier
creating the connection: > > > > $query = "select server_name from servers where midtier = > > '$server'"; > > $dbResult = mysql_query($query,$dblink); > > > > $c = 1; > > print(""); > > while($row = mysql_fetch_array($dbResult))

RE: [PHP-DB] MySQL Array

2002-12-06 Thread Mark
> print("{$row['server_name']}"); > if(($c % 4) == 0) > { > print(""); > } > } > > > > -Original Message- > From: 1LT John W. Holmes [mailto:[EMAIL PROTEC

RE: [PHP-DB] MySQL Array

2002-12-06 Thread Chevalier, Arthur
4) == 0) { print(""); } } -Original Message- From: 1LT John W. Holmes [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 05, 2002 3:26 PM To: Ryan Jameson (USA); Art Chevalier; [EMAIL PROTECTED] Subject: Re: [PHP-D

Re: [PHP-DB] MySQL Array

2002-12-05 Thread 1LT John W. Holmes
} You'll have to account for incomplete rows and clean up the output, but hopefully that gives you an idea. ---John Holmes... - Original Message - From: "Ryan Jameson (USA)" <[EMAIL PROTECTED]> To: "Art Chevalier" <[EMAIL PROTECTED]>; <[EMAIL PROTE

RE: [PHP-DB] MySQL Array

2002-12-05 Thread Aaron Wolski
ECTED] Subject: Re: [PHP-DB] MySQL Array Yes that makes sense, but it is pretty much the same thing I was doing and it's producing the same results. Its basically putting the first element in all 4 table cells. The thing is...I am only selecting from one field. Im trying to get the 4 eleme

Re: [PHP-DB] MySQL Array

2002-12-05 Thread Art Chevalier
hile ($ar = mysql_fetch_array($rs)) echo "". $ar['field1']."".$ar['field2'].""; Make sense? -Original Message- From: Art Chevalier [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 05, 2002 12:44 PM To: [EMAIL PROTECTED] Subject: [P

RE: [PHP-DB] MySQL Array

2002-12-05 Thread Ryan Jameson (USA)
while ($ar = mysql_fetch_array($rs)) echo "". $ar['field1']."".$ar['field2'].""; Make sense? -Original Message- From: Art Chevalier [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 05, 2002 12:44 PM To: [EMAIL PROTECTED] Subjec

[PHP-DB] MySQL Array

2002-12-05 Thread Art Chevalier
Hello, I am pulling one column out of a MySQL table in an array. I want to place each element into a HTML table 4 rows across. I am currently doing this with the mysql_fetch_array() function. How can I pull out 4 array elements in one pass through a while loop? Thanks Art Chevalier -- PHP