By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,746 Members | 1,928 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,746 IT Pros & Developers. It's quick & easy.

Creating Variable using mysql and php

P: n/a

I am trying to create a variable but it just will not work. Anyone
see the error?

$query = "SELECT Name FROM dataAA WHERE
$result = mysql_query($query)
or die ("no can do.");
while($row = mysql_fetch_array($result))

$Name = "echo $row["Name"]";

May 7 '07 #1
Share this Question
Share on Google+
2 Replies

P: n/a
On May 7, 11:08 am, bokke <micr...@gmail.comwrote:

$Name = "echo $row["Name"]";
$Name = $row["Name"];
echo $Name;


May 7 '07 #2

P: n/a
Thanks HTH .

May 7 '07 #3

This discussion thread is closed

Replies have been disabled for this discussion.