MySQL php quesry question

Questions about the MySQL, PostgreSQL, and most other databases, as well as using it with PHP can be asked here.

Moderator: General Moderators

Post Reply
moussa854
Forum Newbie
Posts: 23
Joined: Thu Apr 30, 2009 4:10 pm

MySQL php quesry question

Post 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
Post Reply