- Messages
- 76
- Reaction score
- 0
- Points
- 26
Re: Mga Tanong tungkol sa PHP, CSS, jquery, HTML at MySQL pa
Use regular expression para mabilis ang paghahanap ng word sa isang sentence then count the occurances and output it. It can be used on PHP, Javascript/Jquery and other prog languages and server scripts. So hindi kita mabbigyan ng advise kasi hindi ko alam kung anu nirerequire mo gamiting language.
This should answer your question directly.
http://stackoverflow.com/questions/14659992/load-a-csv-file-into-mysql-via-php
Please see yung template na ginawa ko below. It should help you out in the long run. Naginclude na rin ako ng sample scripts to insert, select, delete from the database. Ito latest approach when connecting into MySQL database sa server as long as the server is running PHP 4.1 and above. Most of the freehosting and paid hostings should be using PHP 5.0+ nowadays so walang problema.
http://pastiebin.com/52c380ed38d10
You should use MSQLI_CONNECT kaysa MSQL_CONNECT both will do pero malapit na alisin ang MSQL_CONNECT and soon will be deprecated or it might not work in the future projects you have. Both are procedural pero yung nasa template is object oriented approach mas madali mong matutunan at basahin.
If you want the Procedural style na kadalasang tinuturo sa schools or colleges:
http://pastiebin.com/52c388f90ee75
Most of the time ilalagay mo eh "localhost". Pero if you are not sure access phpMyAdmin or any database admin and look for the host. Some hosting providers will use IP address and some are domain e.g "213.45.64.1" or "db.hosting.com.uk". Depende talaga sa server mo. Most of them just use localhost
View attachment 150356
Write a program to find the number of times that the given word occurs in a sentence
Use regular expression para mabilis ang paghahanap ng word sa isang sentence then count the occurances and output it. It can be used on PHP, Javascript/Jquery and other prog languages and server scripts. So hindi kita mabbigyan ng advise kasi hindi ko alam kung anu nirerequire mo gamiting language.
ask ko lang po kung meron sa inyo ng
import ng .csv to database using script of php
This should answer your question directly.
http://stackoverflow.com/questions/14659992/load-a-csv-file-into-mysql-via-php
sir , pano na po icoconect ung database mo pag pinag upload mo na sya sa freewebhosting ? 3owl.com po gamit kung webhosting . salamat po
Please see yung template na ginawa ko below. It should help you out in the long run. Naginclude na rin ako ng sample scripts to insert, select, delete from the database. Ito latest approach when connecting into MySQL database sa server as long as the server is running PHP 4.1 and above. Most of the freehosting and paid hostings should be using PHP 5.0+ nowadays so walang problema.
http://pastiebin.com/52c380ed38d10
You should use MSQLI_CONNECT kaysa MSQL_CONNECT both will do pero malapit na alisin ang MSQL_CONNECT and soon will be deprecated or it might not work in the future projects you have. Both are procedural pero yung nasa template is object oriented approach mas madali mong matutunan at basahin.
If you want the Procedural style na kadalasang tinuturo sa schools or colleges:
http://pastiebin.com/52c388f90ee75
ano ang ilalagay sa db_host kapag nasa freewebhosting kana ?
Most of the time ilalagay mo eh "localhost". Pero if you are not sure access phpMyAdmin or any database admin and look for the host. Some hosting providers will use IP address and some are domain e.g "213.45.64.1" or "db.hosting.com.uk". Depende talaga sa server mo. Most of them just use localhost
View attachment 150356
Attachments
Last edited: