/* login to db */ $db = mysql_connect("localhost", "nobody", ""); /* $db = mysql_connect("localhost", "tin", ""); */ /* collect info */ $dbname = "vietgate"; mysql_select_db($dbname, $db) or die('Could not select database $dbname'); $table = "ngos"; // $result = mysql_query("SHOW COLUMNS FROM $table", $db); // $fields = mysql_num_rows($result); $title = ""; $searchval = ""; /* echo "fields = $fields
\n"; $order = "order by " + mysql_Field_Name($db, $fields, 0); echo "order = $order
\n"; */ SetType($sql, "string"); /* fetch data and put it in $result */ // $result = mysql($db, "select * from $table $order"); /* are we calling ourself? */ if (isset($searchval)) { $searchval = htmlspecialchars($searchval); $searching = 1; $result = mysql_query( "select * from $table where (name like '%$searchval%' or desc1 like '%$searchval%') order by name"); } else { $result = mysql_query("select * from $table order by name"); } if ($result > 0) { $num_rows = mysql_num_rows($result); $num_fields = mysql_num_fields($result); } ?>
This list of NGOs in Vietnam is sponsored by Saigon.COM, a public service of Tin Le.
If your site point to this page, for our information, please let us know. In return, you will get notified if this page is ever moved.
Please send additions and corrections to vnngo-info@saigon.com
There are other NGOs directory on the web. We will attempt to list those that we know here. If yours is not listed, please let us know and we will update out list. Thanks.
/* output results */
$row = 0;
while ($row < $num_rows) {
$field = 0;
$addr = "";
/* output all fields */
while ($field < $num_fields) {
/* output the data */
$field_name = mysql_field_name($result, $field);
$temp = mysql_result($result, $row, $field_name);
if (strlen($temp) > 0) {
switch($field_name) {
case "name":
echo "$temp
\n";
break;
case "url":
echo "URL: $temp
\n";
break;
case "email":
echo "
$temp
\n"; $row++; } ?> The seed data for this list of NGOs was kindly provided by John Buquoi of Vietnamerican Business Development Services. We are grateful to John for his assistance.
John Buquoi can be contacted at:
jbuquoi@unicomp.net
Vietnamerican Business Development Services
7602 N. Jupiter, Suite 114-645
Garland, TX 75044-2082
Please send all corrections and additions to vnngo-info@saigon.com.
For comments, additions/corrections, questions
and
other requests, please send email to
webmaster@saigon.com.