Reply to Re: Simple Query viewer

Your name:

Reply:


Posted by UKuser on 02/06/06 21:45

For a further example, I have some example code in a book (part of the
full code):

if (isset($left))
{
query = "SELECT id, name, email FROM addressbook WHERE id < $id " .
"ORDER BY id DESC";
$result = mysql_query($query);
check_mysql();
$row = mysql_fetch_row($result);
check_mysql();
if ($row[0] > 0)
{
$id = $row[0];
$name = $row[1];
$email = $row[2];
}
}

Problem is, this code means you have to scroll through each record.
What I would like is for all the results to be displayed and editable.
Therefore you rather than just having <input type="text" name="name"
value="\php bits $name"> it would display lots of rows depending on the
query results.

Thanks

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация