Posted by Simon on 09/28/92 11:44
$sql_query = "SELECT column4 FROM $table WHERE entry = 4";
$dd = 0;
while ($row = mysql_fetch_row($result)) {
$column4[$dd] = $row['column4'];
$dd++;
<endlesstide@gmail.com> wrote in message
news:1144483472.431452.152910@v46g2000cwv.googlegroups.com...
> $sql_query = "SELECT * FROM $table WHERE entry = 4";
>
> // now put all the data into arrays
> $dd = 0;
> while ($row = mysql_fetch_row($result)) {
> $column4[$dd] = $row[3];
> $dd++;
>
>
> I am trying to simplifly this query -- I don't want to select * from
> the table, I want to only get data from column called "column4". I
> know the next part putting into the arrays is redundent. I just want a
> single record. Is running a select * going to add lots of overhead to
> the server?
>
[Back to original message]
|