https://www.youtube.com/watch?v=ZjIXZT9Hxwg
اتفضل يا باشا و هتلاقى فيديوهات تانية عيش براحتك
how to connect to mysql database using php in Apache on Ubuntu?
thanks
يارب حد يرد
بارك الله فيكم
https://www.youtube.com/watch?v=ZjIXZT9Hxwg
اتفضل يا باشا و هتلاقى فيديوهات تانية عيش براحتك
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
اشكرك أخي مكة روحي على اجتهادك ولكن أرجو المتابعة من باقي الإخوة بارك الله فيكم
الحل بسيط جداً
ان شاء الله على يوم الاتنين كدا راح ابعت مقالة هنا عن الحل
وانت كمان تابع معانا ان شاء الله تستفيد
[CENTER][B]Move - 2- Improve[/B]
[/CENTER]
[FONT=Tahoma][SIZE=4] اللهم اشفي مرضانا وجميع مرضى المسلمين[/SIZE][/FONT]
[CENTER][SIGPIC][/SIGPIC] [/CENTER]
طيب راجع الرابط دة ممكن يفيدك
https://www.youtube.com/watch?v=tqfl51HVodI
عنوان الرابط
PHP and MYSQL - Connecting to a Database and Adding Data
المفضلات