النتائج 1 إلى 5 من 5

الموضوع: how to connect to mysql database using php in Apache on Ubuntu? thanks

  1. #1
    عضوية جديدة
    تاريخ التسجيل
    Feb 2009
    المشاركات
    54
    معدل تقييم المستوى
    0

    how to connect to mysql database using php in Apache on Ubuntu? thanks

    how to connect to mysql database using php in Apache on Ubuntu?
    thanks
    يارب حد يرد

    بارك الله فيكم

  2. #2
    عضو الصورة الرمزية مكة روحى
    تاريخ التسجيل
    Oct 2009
    المشاركات
    978
    الدولة: Egypt
    معدل تقييم المستوى
    19

    رد: how to connect to mysql database using php in Apache on Ubuntu? thanks

    https://www.youtube.com/watch?v=ZjIXZT9Hxwg

    اتفضل يا باشا و هتلاقى فيديوهات تانية عيش براحتك

  3. #3
    عضوية جديدة
    تاريخ التسجيل
    Feb 2009
    المشاركات
    54
    معدل تقييم المستوى
    0

    رد: how to connect to mysql database using php in Apache on Ubuntu? thanks

    thanks for ur fast replay but this is not the ans for my question
    my question was
    how to connect to mysql database using php in Apache on Ubun
    not
    how to install mysql database using php in Apache on Ubun
    by my search on google i find this i think that is i want but unfortinatly i cant apply this?
    can any one help me? بارك الله فيكم
    Make sure you have a database. Record the database name, user name and password. The host name is usually "localhost", however some hosting companies (like GoDaddy) will give you a different host name, so you may need to do a little research to find it. A note on the following steps : eHow doesn't like line breaks, so for the actual text of the code, see the tips section below.

    Step 2
    Create your connection file. This should be separate from your other files, and should be something obvious - connect.php or setup.php. You can create this in any text editor (even notepad) but using a PHP editor like Eclipse is best, since it will tell you if you have an error.

    Step 3



    First, we need to set our connection variables. This will make it easier to change what's happening later on. I like this syntax, because everything lines up very nicely.

    Step 4



    Next, we're going to tell PHP what to do. We're first going to tell it to connect to the host. We're using the function mysql_connect(), which needs to know the host, then the user name, then the password. We'll also tell it to echo any errors that we may receive when we try to connect.

    Step 5



    After this, we're going to tell it to select our database by using the mysql_select_db() function. We've already connected to the host, so we just need to tell it which database we want to play with.

    Step 6
    For testing purposes, we should have it do something after it connects. Once you've established that it is, in fact, connecting, you should remove this section. Just echo or print something to let you know it worked


    اشكرك أخي مكة روحي على اجتهادك ولكن أرجو المتابعة من باقي الإخوة بارك الله فيكم

  4. #4
    عضو برونزي الصورة الرمزية م/ أحمد بخيت
    تاريخ التسجيل
    Sep 2006
    المشاركات
    1,156
    الدولة: United Arab Emirates
    معدل تقييم المستوى
    19

    رد: how to connect to mysql database using php in Apache on Ubuntu? thanks

    الحل بسيط جداً
    ان شاء الله على يوم الاتنين كدا راح ابعت مقالة هنا عن الحل
    وانت كمان تابع معانا ان شاء الله تستفيد
    [CENTER][B]Move - 2- Improve[/B]
    [/CENTER]
    [FONT=Tahoma][SIZE=4] اللهم اشفي مرضانا وجميع مرضى المسلمين[/SIZE][/FONT]
    [CENTER][SIGPIC][/SIGPIC] [/CENTER]

  5. #5
    عضو الصورة الرمزية مكة روحى
    تاريخ التسجيل
    Oct 2009
    المشاركات
    978
    الدولة: Egypt
    معدل تقييم المستوى
    19

    رد: how to connect to mysql database using php in Apache on Ubuntu? thanks

    طيب راجع الرابط دة ممكن يفيدك
    https://www.youtube.com/watch?v=tqfl51HVodI

    عنوان الرابط
    PHP and MYSQL - Connecting to a Database and Adding Data

المواضيع المتشابهه

  1. Oracle Database 11g - Underground Advice for Database Administrators
    بواسطة bloodyelf في المنتدى الأرشيف
    مشاركات: 0
    آخر مشاركة: 15-12-2011, 02:28
  2. ابهما افضل ubuntu 11.04 ام ubuntu 11.10
    بواسطة farhad karim في المنتدى الأرشيف
    مشاركات: 2
    آخر مشاركة: 22-10-2011, 09:15
  3. Expert Oracle Database Architecture: Oracle Database Programming 9i, 10g, and 11g Te
    بواسطة Abouzied في المنتدى الأرشيف
    مشاركات: 5
    آخر مشاركة: 04-10-2010, 11:49
  4. كتاب Build Your Own Database Driven Website Using PHP & MySQL, Third Edition
    بواسطة Ibrahim.Hamdy في المنتدى البرمجه والتصميمات الفنيه ( الجرافيكس )
    مشاركات: 6
    آخر مشاركة: 16-02-2009, 15:19

المفضلات

ضوابط المشاركة

  • لا تستطيع إضافة مواضيع جديدة
  • لا تستطيع الرد على المواضيع
  • لا تستطيع إرفاق ملفات
  • لا تستطيع تعديل مشاركاتك
  •