מה?!!??
שמע, או שאתה מדבר סינית, או שאני ממש עייף, אבל לפי מה שאני קורא, אתה כל שנייה סותר את עצמך. אני אסביר: כתבת "לכתוב פקודות sql אני יודע כתבתי פקודות היוצרות טבלאות ונתונים בתוכם" (משתמע מכך, שאכן יצרת טבלאות בשמות מסוימיים בתוך מסד בשם מסויים), ואז כתבת "איך אני יוצר שם בסיס נתונים בשםa וטבלאות b ו c?"?!!? מאוד תמוה. בכל אופן, אם אתה יודע ליצור מסד נתונים וטבלאות בתוכו, אז מה בדיוק השאלה? אם לא אז הנה דוגמא:
<? // this is how you do it with PHP: $host = "your_mysql_host"; $username = "your_mysql_username"; $password = "your_mysql_password"; // let´s create the database and it´s tables as you asked: $new_db_name = "a"; $table1 = "b"; $table2 = "c"; $db_link = mysql_connect($host, $username, $password); // create the new database: mysql_query("CREATE DATABASE $new_db_name"); mysql_select_db($new_db_name, $db_link); // create it´s tables: // the dots means that you should write the table structure // according to your needs (look in mysql guide for "create table syntax" mysql_query("CREATE TABLE $table1 ...... "); mysql_query("CREATE TABLE $table2 ...... "); ?>
מקווה שזה עזר.