Page 1 of 1
Record Results into an array into 1 variable
Posted: Fri Nov 03, 2006 6:24 pm
by ianhull
Hi Guys,
How would I get the results of this array into 1 variable which I could use.
Code: Select all
while($line = mysql_fetch_array($result))
{
extract($line);
}
Thanks in advance
Posted: Fri Nov 03, 2006 7:56 pm
by feyd
$line is a single variable.
Posted: Fri Nov 03, 2006 8:26 pm
by ianhull
feyd,
how would I get each row to write to a text file
I would like to write .css information to a text file based on the results
Code: Select all
while($line = mysql_fetch_array($result))
{
extract($line);
//write this to a .css file for each record in the table
#Property_'.$id.' {
position:absolute;
width:483px;
height:120px;
z-index:1;
left: 256px;
top: '.$plus.'2px;
background-attachment: scroll;
background-image: url(/pictures/'.$picture.');
background-repeat: no-repeat;
background-position: left top;
font-family: Arial, Helvetica, sans-serif;
font-size: 12px;
font-style: normal;
line-height: normal;
font-weight: normal;
font-variant: normal;
text-transform: none;
color: #666666;
text-decoration: none;
text-align: left;
vertical-align: top;
margin-left: 120px;
padding-left: 120px;
}
}
Posted: Fri Nov 03, 2006 8:33 pm
by feyd