need for you………….

I have completed a project on children learning in visual basic where i faced various problem so i want to give some code which may need for you.

 Option Explicit //declaration;
Dim Voice As SpVoice
Private Sub Form_Load()
    Set Voice = New SpVoice
End Sub
Private Sub ExitBtn_Click()
    Unload Form1
End Sub
Private Sub SpeakItBtn_Click()
    On Error GoTo Speak_Error
     If SaveToWavCheckBox Then
    If Not TextField.Text = “” Then
            Voice.Speak TextField.Text, SVSFlagsAsync
        End If
    End If
    Exit Sub
    MsgBox “Speak Error!”, vbOKOnly
End Sub

Private Sub SaveToWav()
    Dim cpFileStream As New SpFileStream
    cpFileStream.Format.Type = SAFT22kHz16BitMono
    ComDlg.CancelError = True
    On Error GoTo Cancel
    ComDlg.Flags = cdlOFNOverwritePrompt + cdlOFNPathMustExist + cdlOFNNoReadOnlyReturn
    ComDlg.DialogTitle = “Save to a Wave File”
    ComDlg.Filter = “All Files (*.*)|*.*|Wave Files ” & “(*.wav)|*.wav”
    ComDlg.FilterIndex = 2
    cpFileStream.Open ComDlg.FileName, SSFMCreateForWrite, False
    Set Voice.AudioOutputStream = cpFileStream
    Voice.Speak TextField.Text, SVSFDefault
    Set cpFileStream = Nothing
    Set Voice.AudioOutputStream = Nothing
    Exit Sub
End Sub

only you need to design a form including a textfield,two button,and a checkbox,then it will be nice project.

Now I am trying to be a php developered,  I know php allready I can  connect  MySQL database, insert,delete ,search and update data from table,  now i will try to learn javacript…… if you have any suggetion please comment me.  

Learning MYSQL i faced various problem such as how to connect data base, i seems my given cood will need for MYSQL beginer,

All program should write in the php program:
db_connect :
$link = mysql_connect (“localhost”, “”, “”)
or die (“Could not connect”);
print (“Connected successfully”);
mysql_close ($link);

Create database in the Mysql:
$link = mysql_pconnect (“localhost”, “”, “”)
or die (“Could not connect”);
if (mysql_create_db (“database_name”)) {
print (“Database created successfully\n”);
} else {
printf (“Error creating database: %s\n”, mysql_error ());

Show data from table
mysql_connect (“localhost”, “”, “”);
$result = mysql_db_query (“database_name”,”select * from table_name”);
while ($row = mysql_fetch_array ($result)) {
echo $row[“user_id”];
echo $row[“fullname”];
mysql_free_result ($result);

Show table from database:
mysql_connect (“localhost”,””,””);
$result = mysql_list_tables (“database_name”);
$i = 0;
while ($i < mysql_num_rows ($result)) {
$tb_names[$i] = mysql_tablename ($result, $i);
echo $tb_names[$i];


Data insert in the database Table:
$query=”INSERT INTO table_name” .”(name,roll, dept, mobile, dis) VALUES “.”(‘$a’, ‘$b’, ‘$c’, ‘$d’, ‘$e’)”;

Delete data from table:
mysql_query(“DELETE FROM `table_name` WHERE roll = ‘$a’ “)]

  1. Hi, this is a comment.
    To delete a comment, just log in, and view the posts’ comments, there you will have the option to edit or delete them.

  2. Hey sexy boy!

    • Shaiun
    • November 14th, 2007


    • ranacse05
    • December 2nd, 2007

    কিরে মঙ্গা মঙ্গা লাগছে কেন ? বাড়ী কি রংপুর ?

  3. I saw that a charming lady stands with you . Really, She is very very charming and prety lady.So, you no never weak to her.OK

    • shamimcse05
    • December 4th, 2007

    Kire Linus man Rana akhono ki Rangpur bashi mone hoy?

    • shamimcse05
    • December 4th, 2007

    Thanks Farid for your advise but you should remember that shamim also cute boy any girl can like him so dont worry……………i am ok

    • Mukut
    • April 17th, 2008

    shamim, crown here from somewherein. Thnx for your invitation to visit your page. I am in DUET as a Lecturer of ME since November, 2006. Have a good day. Keep in contact.

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: