Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

seemingly simple parse error..

Status
Not open for further replies.

CyRuD

Programmer
Sep 15, 2001
1
GB
Hi all,

Im relatively new to php, coming from a more asp based background. I have recently aquired free hosting for php/mysql and am attempting to set up a simple database application to get familarised with the code.

I have got most of the pages sorted now but i am getting a parse error on this code.

//initial non dynamic part of table
printf(&quot;<TR><TD><B> Name </B></TD>
<TD><B> EMail </B></TD>
<TD><B> City </B></TD>
<TD><B> Description </B></TD>
<TD><B> Telephone </B></TD>
<TD><B>Modify_Delete</B></TD>
</TR>\n&quot;);


this is really confusing me, as far as i can tell there is no problems but..................

Any replies/ideas would be appreciated..

Marcus...
 
Why are you using printf?

printf is format printing (such as right aligning currency values)

You need to be using echo or print:

echo &quot;<TR><TD><B> Name </B></TD>
<TD><B> EMail </B></TD>
<TD><B> City </B></TD>
<TD><B> Description </B></TD>
<TD><B> Telephone </B></TD>
<TD><B>Modify_Delete</B></TD>
</TR>\n&quot;;

or

print(&quot;<TR><TD><B> Name </B></TD>
<TD><B> EMail </B></TD>
<TD><B> City </B></TD>
<TD><B> Description </B></TD>
<TD><B> Telephone </B></TD>
<TD><B>Modify_Delete</B></TD>
</TR>\n&quot;);

Chad. ICQ: 54380631
online.dll
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top