Php blog from scratch ?

Place for questions and answers for all newcomers and new coders. This is a free for all forum, no question is too stupid and to noob.
Post Reply
Krazilec
Posts: 7
Joined: Mon Jul 18, 2011 12:03 pm

Php blog from scratch ?

Post 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 .
sniko
Posts: 23
Joined: Fri Jan 17, 2014 2:56 pm

Re: Php blog from scratch ?

Post 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.
Image

Code: Select all

class Life extends Bitch {
  //...
}
Krazilec
Posts: 7
Joined: Mon Jul 18, 2011 12:03 pm

Re: Php blog from scratch ?

Post 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 ...
sniko
Posts: 23
Joined: Fri Jan 17, 2014 2:56 pm

Re: Php blog from scratch ?

Post 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?
Image

Code: Select all

class Life extends Bitch {
  //...
}
User avatar
Verahta
Posts: 441
Joined: Wed Aug 24, 2011 1:50 am

Re: Php blog from scratch ?

Post 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.
"In order to understand recursion, one must first understand recursion".
User avatar
vitinho444
Posts: 2825
Joined: Mon Mar 21, 2011 4:54 pm

Re: Php blog from scratch ?

Post 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
My Company Website: http://www.oryzhon.com

Skype: vpegas1234
User avatar
OldRod
Posts: 1321
Joined: Sun Sep 20, 2009 4:26 pm

Re: Php blog from scratch ?

Post 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.
User avatar
vitinho444
Posts: 2825
Joined: Mon Mar 21, 2011 4:54 pm

Re: Php blog from scratch ?

Post by vitinho444 »

OldRod wrote: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.
Backed, Phpacademy is probably the best place to learn PHP and web dev.
My Company Website: http://www.oryzhon.com

Skype: vpegas1234
User avatar
Verahta
Posts: 441
Joined: Wed Aug 24, 2011 1:50 am

Re: Php blog from scratch ?

Post 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.
"In order to understand recursion, one must first understand recursion".
Krazilec
Posts: 7
Joined: Mon Jul 18, 2011 12:03 pm

Re: Php blog from scratch ?

Post 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 ...
Post Reply

Return to “Beginner Help and Support”