Click here to Skip to main content
16,018,802 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a page on my web that I edit daily and then ftp to server. This is very time consuming and takes a lot of airtime as it is a large file.

Is it possible to edit the page online with admin level and then save it to overwrite old page.

example

XML
<table border="1" width="40%" id="table1">
    <tr>
        <td width="85">RACE</td>
        <td width="115">TURF</td>
        <td width="90">VAAL</td>
        <td width="90">DBVL</td>
        <td>SCOT</td>
    </tr>
    <tr>
        <td width="85">3</td>
        <td width="115">change daily</td>
        <td width="90">change daily</td>
        <td width="90">change daily</td>
        <td>change daily</td>
    </tr>
    <tr>
        <td width="85">4</td>
        <td width="115">change daily</td>
        <td width="90">change daily</td>
        <td width="90">change daily</td>
        <td>change daily</td>
    </tr>
</table>


This is then saved as an html and ftp to server
The change daily is what gets edited daily

Any help please as to which direction or where to start. I have checked google and cannot get anywhere.

Thanks
Posted
Comments
Mohibur Rashid 26-Aug-13 21:02pm    
if you use database then you can change it in a simple way
Member 10152998 28-Aug-13 6:26am    
thanks.i have tried but i cannot get the css to work with php
Mohibur Rashid 28-Aug-13 20:32pm    
why is that?
Member 10152998 29-Aug-13 8:43am    
this is my css.
<style type="text/css">
tftable {font-size:12px;color:#333333;width:100%;border-width: 1px;border-color: #729ea5;border-collapse: collapse;}
tftable th {font-size:12px;background-color:#acc8cc;border-width: 1px;padding: 8px;border-style: solid;border-color: #729ea5;text-align:left;}
tftable tr {background-color:#d4e3e5;}
tftable td {font-size:12px;border-width: 1px;padding: 2px;border-style: solid;border-color: #729ea5;}
td:nth-of-type(even) {
background-color:#ccc;
}
</style>
this is my php


<tr>
<th>A</th>
<th>B</th>
<th>C</th>
<th>D</th>
<th>F</th>
<th>G</th>
<th>H</th>
<th>I</th>
<th>J</th>
<th>K</th>
<th>L</th>
<th>M</th>
<th>N</th>
<th>O</th>
<th>P</th>
<th>Q</th>
<th>R</th>
<th>S</th>
<th>T</th>
<th>U</th>
<th>V</th>
<th>W</th>
<th>X</th>
<th>Y</th>

</tr>";

while($row = mysql_fetch_array($result))
{
echo "<tr>";
echo "<td>" . $row['A'] . "</td>";
echo "<td>" . $row['B'] . "</td>";
echo "<td>" . $row['C'] . "</td>";
echo "<td>" . $row['D'] . "</td>";
echo "<td>" . $row['F'] . "</td>";
echo "<td>" . $row['G'] . "</td>";
echo "<td>" . $row['H'] . "</td>";
echo "<td>" . $row['I'] . "</td>";
echo "<td>" . $row['J'] . "</td>";
echo "<td>" . $row['K'] . "</td>";
echo "<td>" . $row['L'] . "</td>";
echo "<td>" . $row['M'] . "</td>";
echo "<td>" . $row['N'] . "</td>";
echo "<td>" . $row['O'] . "</td>";
echo "<td>" . $row['P'] . "</td>";
echo "<td>" . $row['Q'] . "</td>";
echo "<td>" . $row['R'] . "</td>";
echo "<td>" . $row['S'] . "</td>";
echo "<td>" . $row['T'] . "</td>";
echo "<td>" . $row['U'] . "</td>";
echo "<td>" . $row['V'] . "</td>";
echo "<td>" . $row['W'] . "</td>";
echo "<td>" . $row['X'] . "</td>";
echo "<td>" . $row['Y'] . "</td>";


echo "</tr>";
}
echo "</table>";

?>
where do i put the css

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900