Payless
07-22-2003, 11:19 AM
Hi,
I am quite new to mysql/php.
My question is how to use this kind of syntax in php pages (mysql queries): fx: <%fields%>
I have a database table called 'clients' with the following fields:
name
description
photo
thumb
--------
I would like to put these fields into a php-table/template:
<table width="400" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>
<%name%>
</td>
</tr>
<tr>
<td>
<%thumb%>
<br>
<a href="<%name%>.php" target="_blank">View big version</a> </td>
</tr>
<tr>
<td>
<%description%>
</td>
</tr>
</table>
the photo field <%photo%> will be used on the page "<%name%>.php"
Any suggestions as to how I can obtain such a function?
Best regards
Jens
I am quite new to mysql/php.
My question is how to use this kind of syntax in php pages (mysql queries): fx: <%fields%>
I have a database table called 'clients' with the following fields:
name
description
photo
thumb
--------
I would like to put these fields into a php-table/template:
<table width="400" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>
<%name%>
</td>
</tr>
<tr>
<td>
<%thumb%>
<br>
<a href="<%name%>.php" target="_blank">View big version</a> </td>
</tr>
<tr>
<td>
<%description%>
</td>
</tr>
</table>
the photo field <%photo%> will be used on the page "<%name%>.php"
Any suggestions as to how I can obtain such a function?
Best regards
Jens