PHP PHP CRUD use textfile as database

Lenardkun

Honorary Poster
Joined
Sep 23, 2018
Posts
161
Reaction
20
Points
154
Age
23
Hello po, Tanong ko lang po kung meron po kayong alam na website link na pwedeng puntahan para malaman kung pano gawin po ito. Hindi ko po kasi alam kung anong tamang keyword yung isesearch ko, ala po akong makita 😢. Sana po matulungan nyo po ako sa activity ko. Maraming salamat po!
 
pwede po yan. kung di naman mabigat yung data, using php, read and write si text file. dapat yung laman ni text file is json format, pwede mo syang imanipulate using javascript and ajax. meron lahat kay w3school and stackoverflow

to view:
index.html(data manipulation)->ajax request-> view.php(echo as json / read text file)->db.txt(json format)->index.html

to edit/save:
index.html(data manipulation)->ajax request-> save.php(write text file)->db.txt(json format)

so basically your keyword should be like PHP write json to text file

#javascript #json #php #ajax
 
pwede po yan. kung di naman mabigat yung data, using php, read and write si text file. dapat yung laman ni text file is json format, pwede mo syang imanipulate using javascript and ajax. meron lahat kay w3school and stackoverflow

to view:
index.html(data manipulation)->ajax request-> view.php(echo as json / read text file)->db.txt(json format)->index.html

to edit/save:
index.html(data manipulation)->ajax request-> save.php(write text file)->db.txt(json format)

so basically your keyword should be like PHP write json to text file

#javascript #json #php #ajax
Php lang po pwede namin gamitin
 
kpg text file ata gagamitin na database is per line ang read mangyayari sa crud
yes po ganun po

yes po ganun po
nagawa ko na po mag add

yes po ganun po


nagawa ko na po mag add
1646742004327.png


yes po ganun po


nagawa ko na po mag add

yes po ganun po


nagawa ko na po mag add


1646742004327.png
ang problem ko po kung pano sya i output ng naka tables tapos may checkbox para sa multiple deletion po
 

Attachments

Last edited:
dati naggaganyan kame ng kapwa ko developer kesa mag database kame
meron po ba kayong file :< ?

kahit yung sa edit lang po, need po yung course lang yung ma eedit

1646745359349.png

1646745379105.png

di ko po malagay sa table yung malaman. Sa paturo po sa may alam :<

Sana po matulungan nyo ako 😓. read and write lang po kasi pinakita samin tapos ala pong materials na binigay para dito
 

Attachments

Last edited:
Pano ko po kaya mag edit yung pangatlong word. Ganto po kasi yung nasa text file
0001*John*BSIT
0002*Lenard*COE
pano ko po sya ma eedit kunwari po yung 0002 yung pipiliin ko tapos yung COE yung babaguhin ko po
 
1646889525105.png

1646889567024.png

1646889603363.png

Ano po kaya problem neto. Kapag nag add po ako, nagkakaroon ng undefined array key. dahil po ba yung sa pag apend ko ng "\n" ?
 

Attachments

Similar threads

Back
Top