Posts: 1,012
Threads: 94
Joined: May 2011
Reputation:
0
Code name: blog.php
[lua]
<?php
<html>
include("header.php");
echo "<link href="style.css" rel="stylesheet" type="text/css">";
echo "<center><p>------------------------------------------------------------------------------------</p></center><p><center>";
echo "<p>Posted July 7th, 2011:</p>";
echo "<p>Hello my name is Matt, but just call me chaos. If you have in fact stumbled across</p>";
echo "<p>this site then you have no real reason to be on here. Maybe you just want to check out</p>";
echo "<p>my progress since this is simply a practice site getting me ready for the real world!</p>";
include("footer.php");
</html>
?>
[/lua]
ERROR:
Parse error: syntax error, unexpected '<' in /home/a1555635/public_html/blog.php on line 2
Posts: 2,843
Threads: 382
Joined: Jul 2012
Reputation:
0
(07-14-2011, 02:25 AM)Chaos Wrote: Code name: blog.php
[lua]
<?php
<html>
include("header.php");
echo "<link href="style.css" rel="stylesheet" type="text/css">";
echo "<center><p>------------------------------------------------------------------------------------</p></center><p><center>";
echo "<p>Posted July 7th, 2011:</p>";
echo "<p>Hello my name is Matt, but just call me chaos. If you have in fact stumbled across</p>";
echo "<p>this site then you have no real reason to be on here. Maybe you just want to check out</p>";
echo "<p>my progress since this is simply a practice site getting me ready for the real world!</p>";
include("footer.php");
</html>
?>
[/lua]
ERROR:
Parse error: syntax error, unexpected '<' in /home/a1555635/public_html/blog.php on line 2 You have the <html> tags inside the PHP tags without echo statements, I'm guessing that's just an accident though.
And if you use double quotes in a string surrounded by double quotes, or single quotes in a string with single quotes, you have to put backslashes before them.
Also, did you know you can mix HTML and PHP in one file? It's a lot easier that way:
[lua]
<html>
<?php
include("header.php");
?>
<link href="style.css" rel="stylesheet" type="text/css">
<center><p>------------------------------------------------------------------------------------</p></center><p><center>
<p>Posted July 7th, 2011:</p>";
<p>Hello my name is Matt, but just call me chaos. If you have in fact stumbled across</p>
<p>this site then you have no real reason to be on here. Maybe you just want to check out</p>
<p>my progress since this is simply a practice site getting me ready for the real world!</p>
<?php
include("footer.php");
?>
</html>
[/lua]
Posts: 1,553
Threads: 201
Joined: May 2011
Reputation:
0
(07-14-2011, 02:52 AM)Jacob_ Wrote: (07-14-2011, 02:25 AM)Chaos Wrote: Code name: blog.php
[lua]
<?php
<html>
include("header.php");
echo "<link href="style.css" rel="stylesheet" type="text/css">";
echo "<center><p>------------------------------------------------------------------------------------</p></center><p><center>";
echo "<p>Posted July 7th, 2011:</p>";
echo "<p>Hello my name is Matt, but just call me chaos. If you have in fact stumbled across</p>";
echo "<p>this site then you have no real reason to be on here. Maybe you just want to check out</p>";
echo "<p>my progress since this is simply a practice site getting me ready for the real world!</p>";
include("footer.php");
</html>
?>
[/lua]
ERROR:
Parse error: syntax error, unexpected '<' in /home/a1555635/public_html/blog.php on line 2 You have the <html> tags inside the PHP tags without echo statements, I'm guessing that's just an accident though.
And if you use double quotes in a string surrounded by double quotes, or single quotes in a string with single quotes, you have to put backslashes before them.
Also, did you know you can mix HTML and PHP in one file? It's a lot easier that way:
[lua]
<html>
<?php
include("header.php");
?>
<link href="style.css" rel="stylesheet" type="text/css">
<center><p>------------------------------------------------------------------------------------</p></center><p><center>
<p>Posted July 7th, 2011:</p>";
<p>Hello my name is Matt, but just call me chaos. If you have in fact stumbled across</p>
<p>this site then you have no real reason to be on here. Maybe you just want to check out</p>
<p>my progress since this is simply a practice site getting me ready for the real world!</p>
<?php
include("footer.php");
?>
</html>
[/lua]
That's what I told him lol
Posts: 1,012
Threads: 94
Joined: May 2011
Reputation:
0
Posts: 3,110
Threads: 109
Joined: Apr 2011
Reputation:
0
07-14-2011, 01:05 PM
(This post was last modified: 07-14-2011, 01:06 PM by MoonDroplet.)
I thought you were an advance coder?
I'm kind of on that level, I study something new everyday on w3schools.
Hello
Posts: 1,012
Threads: 94
Joined: May 2011
Reputation:
0
07-15-2011, 08:10 PM
(This post was last modified: 07-15-2011, 08:11 PM by manbat116.)
I am pretty advanced. I just got stuck in that little jut. If you want, I can show you some of my projects. I made a working calculator, forum, and other things.
It's really the website things that get me stuck with the CSS and HTML. I'm pretty good at making little gadgets for sites.
Posts: 3,110
Threads: 109
Joined: Apr 2011
Reputation:
0
Sure, I'd like to see.
Hello
Posts: 1,012
Threads: 94
Joined: May 2011
Reputation:
0
I just posted one in this section.
Posts: 823
Threads: 75
Joined: Apr 2011
Reputation:
0
(07-15-2011, 08:10 PM)Chaos Wrote: I am pretty advanced. I just got stuck in that little jut. If you want, I can show you some of my projects. I made a working calculator, forum, and other things.
No offense but, many people wouldn't call that stuff very advanced... it's still cool, but just be careful when you call yourself an experienced programmer...
Posts: 3,110
Threads: 109
Joined: Apr 2011
Reputation:
0
(07-16-2011, 06:34 AM)noob007 Wrote: (07-15-2011, 08:10 PM)Chaos Wrote: I am pretty advanced. I just got stuck in that little jut. If you want, I can show you some of my projects. I made a working calculator, forum, and other things.
No offense but, many people wouldn't call that stuff very advanced... it's still cool, but just be careful when you call yourself an experienced programmer...
What would you consider advanced?
Hello
|