First php tutorial I saw and already understand it well and finally mysql actually worked with me! YAY!
But anyway, I believe the charset (collation) on the database is wrong to me, letters like "é" appears as a "?" looking like some symbol. which Collation should I use for body and title?
I've tried to follow the tutorial but I get this error "Access denied for user 'ODBC'@'localhost' (using password: NO)" - what should I do to solve this problem?
@ScoobyDooobyD00 - I've been trying to learn PHP for a while, but practicing code bit by bit just isn't sticking in. I'm hoping by doing a project (a CMS) I'll learn better.
But what I'd like to know is, in your tutorials, will you be showing ways of securing the CMS from things like SQL injection, spam etc?
Hi, thanks a lot for this tutroial What I wanted to ask is - let's say I need to echo not just content (title, body), but to take out of mysql - metakeywords, metadescription, metatitle and so on. I cannot understand how to take all those mysql fields out of the get_content function to index.php file?
Wow i have wamp installed php scripts work but the only thing that is showing up is the get_content()?> i even tried putting this on a website that has php support on it and it don't display anything i have in that data base i made. Anyone have any ideals?
Your way is fine however, create a constructor that takes username,password, database name and host. Once you instantiate the class $obj=new ModernCMS("username","password","host","dbName");
In the constructor you can set the var at the top and call the function connect();
Your example is bleeding from the class. You want to try to encapsulate.
I think that this is a great series. The only thing is that prefacing the examples you say that you aren't going to go into great detail, because people can ask around. I think that the purpose of doing a tutorial is to explain, and go into detail. Otherwise why do it. For example, tutvid does GREAT tutorials on all types of things, and he goes into great detail, which is why so many people watch his stuff. If he did CMS I would be there. People want to learn.
Hey, i'm stuck roughly half way through this video. I've finished the first complete part of cms_class.php and have everything down to a T, ive checked every piece of punctuation against the lines in the video and still i get:
"Parse error: syntax error, unexpected ')' in /Applications/XAMPP/xamppfiles/htdocs/tensai_cms/_class/cms_class.php on line 13"
I know roughly what this error means and have checked over all brackets etc and its exactly the same! What am I doing wrong?
is there anyone here that can help me with a database that can support 10000 people and there login info. and points they can earn points and redeem them for prizes anyone who can help me and wants to get in to this website with me message me! plz
MVCs are great but it is fairly difficult to build a good MVC from scratch. One of the reasons for making this series was to introduce classes in PHP so I could create another series on building an MVC similar to Code Igniter. My problem was trying to link a database class and pull results in my view file from the controller.
Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'root'@'localhost' (using password: NO) in /home/simplit/public_html/tester/_class/cms_class.php on line 11
Access denied for user 'root'@'localhost' (using password: NO)
check your database password or privileges. or restart apache. If this problem continues, try to remove and reinstall xampp or wamp.
you can save the tables you already created by using ''export'' and then once xampp is reinstalled, create a new database and ''import'' the tables back into it...and bingo fresh start.
Awesome tutorial! 5*
First php tutorial I saw and already understand it well and finally mysql actually worked with me! YAY!
But anyway, I believe the charset (collation) on the database is wrong to me, letters like "é" appears as a "?" looking like some symbol. which Collation should I use for body and title?
Thanks for reading,
*reply by anyone is appreciated too! :)
RBCbclprodz 1 week ago
Hello .. thank you for your tutorial .. i am facing problem with get_content()
Call to undefined function get_content()
can you help me solving it?
ahmedmansoori90 2 weeks ago
Man you are the best but i need some tut about DB :D
P1Raul 2 weeks ago in playlist CMS Tutorials
I don't see a point in using a class.
For a global connection I just use an external file.
include 'scripts/SQLconnect.php';
Pitfallstudios 3 weeks ago
I've tried to follow the tutorial but I get this error "Access denied for user 'ODBC'@'localhost' (using password: NO)" - what should I do to solve this problem?
lesterjin 1 month ago
This has been flagged as spam show
this is great and all but this really helped me when i started out:
Link: 65b50gm)c1e)q)z)b)r2ox)k0e)o)die)c)v).hop.click)bank.)net/?tid=SUN41212
just remove the brackets.
Seandrew0 1 month ago
@ScoobyDooobyD00 - I've been trying to learn PHP for a while, but practicing code bit by bit just isn't sticking in. I'm hoping by doing a project (a CMS) I'll learn better.
But what I'd like to know is, in your tutorials, will you be showing ways of securing the CMS from things like SQL injection, spam etc?
cbspace 4 months ago
Comment removed
TomTech321 4 months ago
Hi, thanks a lot for this tutroial What I wanted to ask is - let's say I need to echo not just content (title, body), but to take out of mysql - metakeywords, metadescription, metatitle and so on. I cannot understand how to take all those mysql fields out of the get_content function to index.php file?
alexmc814 6 months ago
Parse error: syntax error, unexpected T_OBJECT_OPERATOR in C:\xampp\htdocs\_class\cms_class.php on line 10
i've done everything i've tried 3 diff servers and still this shit comes out what should i do ?
supervoodoob 7 months ago
@supervoodoob
Hi, I had the same error, you've spelt one of the commands wrong, I fixed it by removing all of the text and just starting again in that function.
sorryunlucky 1 month ago in playlist CMS Tutorials
Got a question for you.This is only for MAC? Or for Windows too?
dragosh32 8 months ago in playlist CMS Tutorials
@dragosh32 windows to !
dragon10y 8 months ago
@dragon10y
And -> is => in windows ? Sorry if my questions are stupid :s
dragosh32 8 months ago
@dragosh32 no -> is just a code, it doesn't have anything to do with MAC or windows ^^
dragon10y 8 months ago
Wow i have wamp installed php scripts work but the only thing that is showing up is the get_content()?> i even tried putting this on a website that has php support on it and it don't display anything i have in that data base i made. Anyone have any ideals?
PhiberOptics 9 months ago
This has been flagged as spam show
thank you thank you thank you!!!! I have watched a ton of tutorials, and no one has got it to work like you have. I will keep watching more!
ajrademacher 10 months ago
thank you thank you thank you!!!! I have watched a ton of tutorials, and no one has got it to work like you have. I will keep watching more!
ajrademacher 10 months ago
For those of you seeing indexphp is get_content()?>
you have to run it on apache with PHP. Try downloading xampp server. Google it.
davidknag 1 year ago
@davidknag Probably they also forgot the semi-colon :3
abcdef12330 11 months ago
All I see on indexphp is get_content()?>
zeificaiOn 1 year ago
Great tutorial ! And unlike lots of tutorials on the web, this actually works :P
Subscribed!
kleinespelvids 1 year ago
Why would a web designer choose "scoobydooobyd00"? And... why would a web designer use a mac? Bleh...
Foaman 1 year ago
name of the text editor?
7715z 1 year ago
@7715z I used TextMate in this video, and still today.
LDDCreations 1 year ago
A solution that worked for me. ?php echo $obj->get_content(); ?
WheelTireFamily 1 year ago
Comment removed
WheelTireFamily 1 year ago
nice editor... when I get to work Im going to download it... god I hope my PC comes soon :D
Zeffrin101 1 year ago
i get this error:
Parse error: syntax error, unexpected T_VARIABLE in [---my directory---] on line 9
yawnx2 1 year ago
@yawnx2 I get the same thing
ctminarchist 1 year ago
Your way is fine however, create a constructor that takes username,password, database name and host. Once you instantiate the class $obj=new ModernCMS("username","password","host","dbName");
In the constructor you can set the var at the top and call the function connect();
Your example is bleeding from the class. You want to try to encapsulate.
In another note Good job !
darkknightgaury 1 year ago
Did you take a summer class or go to school to learn some of this?
fungames2 1 year ago
Comment removed
kaeleon1111 1 year ago
Comment removed
kaeleon1111 1 year ago
Thank u so much for this great tutorial...but now im stuck!
me too ...I have followed this video,and in my index.php i visualize:
get_content()") ?>
what's the problem?
i read the comments below...and i realize that im not the first one with this problem.
If you can help me, i really apprecciated! greetings from italy!
javarnanda 1 year ago 3
I have followed this, all i get in my index.php is:
get_content()") ?>
Any solutions?
Thanks
G15BT 1 year ago 11
@G15BT add echo between <?php (here) $obj
jorgerko15 1 year ago
@jorgerko15 tyvm!
jelco222 1 year ago
@G15BT You have to run it on apache with PHP. Try downloading xampp server. Google it.
davidknag 1 year ago
hey, when i add the code $obj->host the -> part stops the code and it wont work
zacharney1 1 year ago 3
I think that this is a great series. The only thing is that prefacing the examples you say that you aren't going to go into great detail, because people can ask around. I think that the purpose of doing a tutorial is to explain, and go into detail. Otherwise why do it. For example, tutvid does GREAT tutorials on all types of things, and he goes into great detail, which is why so many people watch his stuff. If he did CMS I would be there. People want to learn.
Kiajw 1 year ago
Hey, i'm stuck roughly half way through this video. I've finished the first complete part of cms_class.php and have everything down to a T, ive checked every piece of punctuation against the lines in the video and still i get:
"Parse error: syntax error, unexpected ')' in /Applications/XAMPP/xamppfiles/htdocs/tensai_cms/_class/cms_class.php on line 13"
I know roughly what this error means and have checked over all brackets etc and its exactly the same! What am I doing wrong?
wankshit 2 years ago
p.s, the part im at is around 6.30, when i try to test the connection i get the aformentioned error
wankshit 2 years ago
is there anyone here that can help me with a database that can support 10000 people and there login info. and points they can earn points and redeem them for prizes anyone who can help me and wants to get in to this website with me message me! plz
backbreaker95 2 years ago
This still isn't really modern... most new stuff is following the MVC model these days.
ivolol 2 years ago 4
MVCs are great but it is fairly difficult to build a good MVC from scratch. One of the reasons for making this series was to introduce classes in PHP so I could create another series on building an MVC similar to Code Igniter. My problem was trying to link a database class and pull results in my view file from the controller.
LDDCreations 2 years ago
I logged into my other account, sorry if there was any confusion.
ScoobyDooobyD00 2 years ago
@ivolol if they can't understand this then MVC will really lose them...lol
fallendown2005 1 year ago
I get this :
Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'root'@'localhost' (using password: NO) in /home/simplit/public_html/tester/_class/cms_class.php on line 11
Access denied for user 'root'@'localhost' (using password: NO)
mine070 2 years ago
check your database password or privileges. or restart apache. If this problem continues, try to remove and reinstall xampp or wamp.
you can save the tables you already created by using ''export'' and then once xampp is reinstalled, create a new database and ''import'' the tables back into it...and bingo fresh start.
emadmoussa 2 years ago
I have a online payed for Linux server.
mine070 2 years ago
Comment removed
Xelzull 2 months ago
Great series mate, really helping me start off in PHP. (Y)
GreenyFool 2 years ago
Hey great series, I am having a problem. I get this:
get_content()?>
where it should display the content from the database.
Got any idea?
-FireDart
FireDartOnline 2 years ago
nicely done doggie
CamiloSanchez1979 2 years ago
This CMS series is excellent! I am learning alot very quickly! You should consider getting some of your work on Nettuts, you have good quality tuts!
zeckdude 2 years ago
Great!
Kj3k53 2 years ago
excellent vid, thanks for recommending this to me. i learnt a lot. : D
crazymanny00 2 years ago 2
You really do have some pro tutorials.
Thankyou.
TendencyDriven 2 years ago 6
Your Welcome, Thanks
ScoobyDooobyD00 2 years ago