Page 1 of 1
Php blog from scratch ?
Posted: Tue Sep 16, 2014 7:12 am
by Krazilec
Hello there . Anyone here who knows how to make a php blog from scratch without wordpress/joomla etc ... I need for a project. I'm a webdesigner and the client asked me to create a blog like module where i can add :
a blogpost
a blog presentation
edit the blog
preview the post
admin user ...
I'm kinda lost in this and i really need your help guys . Thanks .
Re: Php blog from scratch ?
Posted: Tue Sep 16, 2014 7:58 am
by sniko
What part are you having difficulty with, specifically?
It's hard to sum up all modules in a forum post when we don't know what part you're having difficulty with. Essentially, it's a CRU(D) application.
Re: Php blog from scratch ?
Posted: Tue Sep 16, 2014 8:24 am
by Krazilec
I found a tutorial on youtube after i followed this one :
http://www.google.ro/url?sa=t&rct=j&q=& ... 7201,d.bGQ which couldn't help me much . I don't know how to create loops for posts to generate a new post page and apply my custom design from css . I know how to send something from php to database but i don't know how to generate a new post ...
Re: Php blog from scratch ?
Posted: Tue Sep 16, 2014 11:49 am
by sniko
Krazilec wrote:I don't know how to create loops for posts to generate a new post page and apply my custom design from css . I know how to send something from php to database but i don't know how to generate a new post ...
I don't understand. You know how to write to a database, but don't know how to read from a database, or apply CSS to your page?
Re: Php blog from scratch ?
Posted: Wed Sep 17, 2014 4:11 am
by Verahta
Just google "free php blog" or something, there is thousands of free php scripts out there. If you use frameworks, google like "laravel php blog tutorial" or similar.
Re: Php blog from scratch ?
Posted: Wed Sep 17, 2014 10:47 am
by vitinho444
You can check my Responsive Bootstrap blog, it is a pretty decent base. It has the admin features, blog posts, just doesn't have blog preview (thats not so hard to do) and blog edition.
Here:
http://indie-resource.com/forums/viewto ... =47&t=7935
Re: Php blog from scratch ?
Posted: Wed Sep 17, 2014 2:27 pm
by OldRod
PHPAcademy has a series on making a blog in PHP:
https://www.youtube.com/playlist?list=P ... 30E7EF6C54
Haven't watched this one, but usually their videos are pretty good.
Re: Php blog from scratch ?
Posted: Wed Sep 17, 2014 4:22 pm
by vitinho444
Backed, Phpacademy is probably the best place to learn PHP and web dev.
Re: Php blog from scratch ?
Posted: Wed Sep 17, 2014 8:38 pm
by Verahta
I like it as well, same with Derek Banas' channel, web dev tips, and other channels. YouTube is a great place to find out how to do something.
Re: Php blog from scratch ?
Posted: Sat Sep 20, 2014 1:27 pm
by Krazilec
I'm done with the blog (somehow don't ask me i wasted 2 nights for this) although i have another problem ... I want to select last/first 3 records of an sql table and echo them separately . I'm searching this like 10 hours on google and i can't find any good reference or idea or something that could help me to understand this .
First problem was solved . I also didn't made a preview of a post ( i kinda don't know how to do it ) but now i finally made it thanks to phpacademy and daveismyname or something like that with his idea of viewpost ( which i understood this ) .
Also my second problem is that I'm scared for my client because of sql injection and I kinda don't know how to protect all of my script ...