Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Not a member yet? Click here to register.
Forgot Password?

HELP

Asked Modified Viewed 2,277 times
A
afaaro
A
afaaro 10
  • Senior Member, joined since
  • Contributed 295 posts on the community forums.
  • Started 68 threads in the forums
  • Started this discussions
asked
Senior Member

Can anyone help me with how to create a page contents table and this is the code, can you please some one corrects it:


<?php

require_once "maincore.php";
require_once "subheader.php";
require_once "side_left.php";


echo "<table style="width: 600; border-collapse: separate; height: 70" borderColor="#cccccc" cellSpacing="3" cellPadding="0" align="center" border="1">
<tr>
<td vAlign="top" colSpan="4" width="590" height="24">
</td>
</tr>
<tr>
<td vAlign="top" width="42" height="11">
<div>
<p align="center"><strong style="font-weight: 400">
<font face="Verdana" size="2">-</font></strong></div>
</td>
<td vAlign="top" width="229" height="11">
</td>
<td vAlign="top" width="41" align="center" height="11">
<strong><font face="Verdana" size="2" color="#008000">-</font></strong></td>
<td vAlign="top" width="201" height="11">

</td>
</tr>
<tr>
<td vAlign="top" width="42" align="center" height="1">
<div>
</div>
</td>
<td vAlign="top" width="229" height="1"></td>
<td vAlign="top" width="41" align="center" height="1">
</td>
<td vAlign="top" width="201" height="1"></td>
</tr>
<tr>
<td vAlign="top" width="42" align="center" height="4">
<div>
</div>
</td>
<td vAlign="top" width="229" height="4">
</td>
<td vAlign="top" width="41" align="center" height="4">
</td>
<td vAlign="top" width="201" height="4">
</td>
</tr>
<tr>
<td vAlign="top" width="42" align="center" height="13">
<div>
</div>
</td>
<td vAlign="top" width="229" height="13">
</td>
<td vAlign="top" width="41" align="center" height="13">
</td>
<td vAlign="top" width="201" height="13">
</td>
</tr>
</table>";


require_once "side_right.php";
require_once "footer.php";
?>

after all its giving me these error
" Parse error: parse error, unexpected T_STRING, expecting ',' or ';' in /home/site/public_html/site/test.php on line 17
0 replies

12 posts

H
helmuth
H
Danish translator of PHP-Fusion helmuth@php-fusion.dk
-----------------------------------------
All people are born alike - except Republicans and Democrats. (Groucho Marx)
Listen to the music... https://soundcloud.com/helmuth-mikkel...mikkelsen/
  • Senior Member, joined since
  • Contributed 706 posts on the community forums.
  • Started 219 threads in the forums
  • Answered 1 question
answered
Senior Member

in the echo statement you have to change all double quotes = " with single quotes = '

that should do it ;)
0 replies
F
Falk
F
Falk 131
Need help?, Having trouble?
• View our Documentation for Guides, Standards and Functions
• Name and Organize your Topics and Content correctly in the corresponding Forums for best support results
• Attaching Log Files and Screenshots when reporting issues will help
• Provide with an URL to live example if one exists
• Please read the How to Report an Error post
• Please read and comply with the Code of Conduct

(¯·._.·(¯°·._.·°º*[ Project Manager ]*º°·._.·°¯)·._.·¯)
  • Super Admin, joined since
  • Contributed 6,201 posts on the community forums.
  • Started 639 threads in the forums
  • Answered 11 questions
answered
Super Admin

or use \"
0 replies
A
afaaro
A
afaaro 10
  • Senior Member, joined since
  • Contributed 295 posts on the community forums.
  • Started 68 threads in the forums
  • Started this discussions
answered
Senior Member

hi Helmuth,

Am still getting same error :

Parse error: parse error, unexpected T_STRING, expecting ',' or ';' in /home/site/public_html/site/test.php on line 48
0 replies
T
Taino
T
Taino 10
  • Junior Member, joined since
  • Contributed 36 posts on the community forums.
  • Started 3 threads in the forums
answered
Junior Member

.
Edited by Taino on 06-08-2006 15:35,
0 replies
A
afaaro
A
afaaro 10
  • Senior Member, joined since
  • Contributed 295 posts on the community forums.
  • Started 68 threads in the forums
  • Started this discussions
answered
Senior Member

i put this code: <?php

require_once "maincore.php";
require_once "subheader.php";
require_once "side_left.php";

echo "<table style="width: 600; border-collapse: separate; height: 70" borderColor="#cccccc" cellSpacing="3" cellPadding="0" align="center" border="1">
<tr>
<td vAlign="top" colSpan="4" width="590" height="24">
</td>
</tr>
<tr>
<td vAlign="top" width="42" height="11">
<div>
<p align="center"><strong style="font-weight: 400">
<font face="Verdana" size="2">-</font></strong></div>
</td>
<td vAlign="top" width="229" height="11">
<div align="center">
<strong><font face="Verdana" size="2" color="#008000">Subject</font></strong></div>
</td>
<td vAlign="top" width="41" align="center" height="11">
<strong><font face="Verdana" size="2" color="#008000">-</font></strong></td>
<td vAlign="top" width="201" height="11">

<p align="center">
<strong><font face="Verdana" size="2" color="#008000">Subject</font></strong></td>
</tr>
<tr>
<td vAlign="top" width="42" align="center" height="1">
<div>
<strong style="font-weight: 400"><font face="Verdana" size="2">001</font></strong></div>
</td>
<td vAlign="top" width="229" height="1">Test</td>
<td vAlign="top" width="41" align="center" height="1">
<font size="2" face="Verdana">002</font></td>
<td vAlign="top" width="201" height="1">Test</td>
</tr>
<tr>
<td vAlign="top" width="42" align="center" height="4">
<div>
<strong style="font-weight: 400"><font face="Verdana" size="2">003</font></strong></div>
</td>
<td vAlign="top" width="229" height="4">
Test</td>
<td vAlign="top" width="41" align="center" height="4">
<font size="2" face="Verdana">004</font></td>
<td vAlign="top" width="201" height="4">
Test</td>
</tr>
<tr>
<td vAlign="top" width="42" align="center" height="13">
<div>
<strong style="font-weight: 400"><font face="Verdana" size="2">005</font></strong></div>
</td>
<td vAlign="top" width="229" height="13">
Test</td>
<td vAlign="top" width="41" align="center" height="13">
<font size="2" face="Verdana">006</font></td>
<td vAlign="top" width="201" height="13">
Test</td>
</tr>
</table>
";

require_once "side_right.php";
require_once "footer.php";
?>



i get error [ Parse error: parse error, unexpected T_STRING, expecting ',' or ';' in /home/site/public_html/site/test.php on line 7 ]
0 replies
H
HaCk3R
H
HaCk3R 10
Data technician and developer spawned form the PHP-Fusion community :-)
  • Senior Member, joined since
  • Contributed 223 posts on the community forums.
  • Started 17 threads in the forums
answered
Senior Member

That is because you are using " in between the echo..
you have to escape them like \" or change them to single quotes '
or do this..
?>
YOUR CODE
<?
0 replies
T
Taino
T
Taino 10
  • Junior Member, joined since
  • Contributed 36 posts on the community forums.
  • Started 3 threads in the forums
answered
Junior Member

.
Edited by Taino on 06-08-2006 15:39,
0 replies
H
helmuth
H
Danish translator of PHP-Fusion helmuth@php-fusion.dk
-----------------------------------------
All people are born alike - except Republicans and Democrats. (Groucho Marx)
Listen to the music... https://soundcloud.com/helmuth-mikkel...mikkelsen/
  • Senior Member, joined since
  • Contributed 706 posts on the community forums.
  • Started 219 threads in the forums
  • Answered 1 question
answered
Senior Member

are you going to use it as a custom page or filename.php ?

use the code underneath for the filename.php

TESTED

<?php

require_once "maincore.php";
require_once "subheader.php";
require_once "side_left.php";

echo "<table style='width: 600; border-collapse: separate; height: 70' borderColor='#cccccc' cellSpacing='3' cellPadding='0' align='center' border='1'>
<tr>
<td vAlign='top' colSpan='4' width='590' height='24'>
</td>
</tr>
<tr>
<td vAlign='top' width='42' height='11'>
<div>
<p align='center'><strong style='font-weight: 400'>
<font face='Verdana' size='2'>-</font></strong></div>
</td>
<td vAlign='top' width='229' height='11'>
<div align='center'>
<strong><font face='Verdana' size='2' color='#008000'>Subject</font></strong></div>
</td>
<td vAlign='top' width='41' align='center' height='11'>
<strong><font face='Verdana' size='2' color='#008000'>-</font></strong></td>
<td vAlign='top' width='201' height='11'>

<p align='center'>
<strong><font face='Verdana' size='2' color='#008000'>Subject</font></strong></td>
</tr>
<tr>
<td vAlign='top' width='42' align='center' height='1'>
<div>
<strong style='font-weight: 400'><font face='Verdana' size='2'>001</font></strong></div>
</td>
<td vAlign='top' width='229' height='1'>Test</td>
<td vAlign='top' width='41' align='center' height='1'>
<font size='2' face='Verdana'>002</font></td>
<td vAlign='top' width='201' height='1'>Test</td>
</tr>
<tr>
<td vAlign='top' width='42' align='center' height='4'>
<div>
<strong style='font-weight: 400'><font face='Verdana' size='2'>003</font></strong></div>
</td>
<td vAlign='top' width='229' height='4'>
Test</td>
<td vAlign='top' width='41' align='center' height='4'>
<font size='2' face='Verdana'>004</font></td>
<td vAlign='top' width='201' height='4'>
Test</td>
</tr>
<tr>
<td vAlign='top' width='42' align='center' height='13'>
<div>
<strong style='font-weight: 400'><font face='Verdana' size='2'>005</font></strong></div>
</td>
<td vAlign='top' width='229' height='13'>
Test</td>
<td vAlign='top' width='41' align='center' height='13'>
<font size='2' face='Verdana'>006</font></td>
<td vAlign='top' width='201' height='13'>
Test</td>
</tr>
</table>
";

require_once "side_right.php";
require_once "footer.php";
?>


if you use it as a custom page, then either you can delete the following or enter two slashes in front of the lines (as showed):

Quote

//require_once "maincore.php";
//require_once "subheader.php";
//require_once "side_left.php";

...
code here
...
//require_once "side_right.php";
//require_once "footer.php";



EDIT
send my salary to the earthquake wictims !
Edited by helmuth on 02-06-2006 00:20,
0 replies
T
Taino
T
Taino 10
  • Junior Member, joined since
  • Contributed 36 posts on the community forums.
  • Started 3 threads in the forums
answered
Junior Member

.
Edited by Taino on 06-08-2006 15:43,
0 replies
H
helmuth
H
Danish translator of PHP-Fusion helmuth@php-fusion.dk
-----------------------------------------
All people are born alike - except Republicans and Democrats. (Groucho Marx)
Listen to the music... https://soundcloud.com/helmuth-mikkel...mikkelsen/
  • Senior Member, joined since
  • Contributed 706 posts on the community forums.
  • Started 219 threads in the forums
  • Answered 1 question
answered
Senior Member

hadn't seen your post, Taino - but you're completely right about the repeat-repeat-repeat thing ;)
0 replies
A
afaaro
A
afaaro 10
  • Senior Member, joined since
  • Contributed 295 posts on the community forums.
  • Started 68 threads in the forums
  • Started this discussions
answered
Senior Member

thanks helmuth and Taino.

it worked with the one with helmuth, many thanks for your time

And one more thing, can i create pages under the filename.php like the custom page/viewpage?page_id=....
Edited by afaaro on 02-06-2006 11:10,
0 replies
H
helmuth
H
Danish translator of PHP-Fusion helmuth@php-fusion.dk
-----------------------------------------
All people are born alike - except Republicans and Democrats. (Groucho Marx)
Listen to the music... https://soundcloud.com/helmuth-mikkel...mikkelsen/
  • Senior Member, joined since
  • Contributed 706 posts on the community forums.
  • Started 219 threads in the forums
  • Answered 1 question
answered
Senior Member

Quote

And one more thing, can i create pages under the filename.php like the custom page/viewpage?page_id=....


I don't really understand your question: do you want to include links to other custom pages or what ?

filename.php is just a suggestion for the files name ... you can call it whatever you like to ;)
0 replies

Category Forum

Bugs and Errors - 6

Labels

None yet

Statistics

  • Views 0 views
  • Posts 12 posts
  • Votes 0 votes
  • Topic users 5 members

0 participants

Notifications

Track thread

You are not receiving notifications from this thread.

Related Questions

Not yet