PHP mysql_list_dbs() ပရိုဂရမ်

အသုံးပြု နှင့် ဖော်ပြ

mysql_list_dbs() ပရိုဂရမ် သည် MySQL လုပ်ငန်း အတွင်းရှိ အားလုံး အခြေခံ ကို ပြောဆိုသည်

ပြောဆို

mysql_list_dbs(အသုံးပြု)
ပါ ဖော်ပြ
အသုံးပြု ဆိုခဲ့သည့် အခြေခံ ကို အသုံးပြုခြင်း

ဖော်ပြ

mysql_list_dbs() သည် တရုတ် MySQL လုပ်ငန်း အတွင်းရှိ အားလုံး အခြေခံ အရှိုက် ကို ပြန်လည် ပြောဆိုသည်

mysql_tablename() ပရိုဂရမ် က သက်သေ မှတ်ကို ခွဲခြားလိုက်သည် သို့မဟုတ် သက်သေ မှတ် အသုံးပြုသည် အဲ့ဒါ အသုံးပြုသည် အန္တရာယ် mysql_fetch_array()

အကျိုးသက်ရောက်

<?php
$con = mysql_connect("localhost", "hello", "321");
if (!$con)
  {
  die('Could not connect: ' . mysql_error());
  }
$db_list = mysql_list_dbs($con);
while ($db = mysql_fetch_object($db_list))
  {
  echo $db->Database . "<br />";
  }
mysql_close($con);
?>

တိုက်ရိုက် ပြန်လည် ပြောဆိုခြင်း

mysql
test
test_db