Page 1 of 1

MySQL php quesry question

Posted: Fri May 21, 2010 6:06 pm
by moussa854
Hi,
I will try my best to explain my question. I have a table 'abc' and I want to include queries from column '3' in a php code. I need help please.

---------
| 1 | 2 | 3|
|--|--|--|
| a | b | c |
|--|--|--|
| d | e | f |
|--|--|--|

Code: Select all

$query  = "SELECT 1,2,3  FROM abc ";
$req = mysql_query($query);	
$header='<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
			<html xmlns="http://www.w3.org/1999/xhtml">
			<head>'.$3   <-------HERE