Hi I am a newbe so please be kind and simple. I have used Dreamweaver cs4 to create a web site that displays feedback comments and allows comments to be added. Similar to Adobe's tutorial. I have got it to run on the pc using xmapp and its apache and mysql programs to test the site and it works yippee.
When I upload however it does not work. I have tried changing the database to the Mysql on the host but it still does not work.
I have created the same fields, created and linked a user put the db name, user and password into cs4 database wizard but still no joy.
Below is the code that works in the test server in xampp on local.
Grateful for any help.
Thnks
<?php do { ?>
<li class="style2"><strong><?php echo $row_Getfancyfeedback['title']; ?></strong><br />
<?php echo $row_Getfancyfeedback['contents']; ?><br />
By <?php echo $row_Getfancyfeedback['author_name']; ?> At <?php echo $row_Getfancyfeedback['created_at']; ?><br />
<br />
<?php } while ($row_Getfancyfeedback = mysql_fetch_assoc($Getfancyfeedback)); ?>
<a href="<?php printf("%s?pageNum_Getfancyfeedback=%d%s", $currentPage, max(0, $pageNum_Getfancyfeedback - 1), $queryString_Getfancyfeedback); ?>">Previous</a> Showing <?php echo ($startRow_Getfancyfeedback + 1) ?> to <?php echo min($startRow_Getfancyfeedback + $maxRows_Getfancyfeedback, $totalRows_Getfancyfeedback) ?> of<?php echo $totalRows_Getfancyfeedback ?><a href="<?php printf("%s?pageNum_Getfancyfeedback=%d%s", $currentPage, min($totalPages_Getfancyfeedback, $pageNum_Getfancyfeedback + 1), $queryString_Getfancyfeedback); ?>">Next</a>
</li>
</ol>
</div>
<div class="style21" id="create">
<h2 class="style2">Please send us your comments on the form below</h2>
<form action="<?php echo $editFormAction; ?>" method="post" name="form1" id="form1">
<table align="center">
<tr valign="baseline">
<td nowrap="nowrap" align="right">Your Name:</td>
<td><input type="text" name="author_name" value="" size="32" /></td>
</tr>
<tr valign="baseline">
<td nowrap="nowrap" align="right">Your email:</td>
<td><input type="text" name="author_email" value="" size="32" /></td>
</tr>
<tr valign="baseline">
<td nowrap="nowrap" align="right">Title:</td>
<td><input type="text" name="title" value="" size="32" /></td>
</tr>
<tr valign="baseline">
<td nowrap="nowrap" align="right">Contents:</td>
<td><textarea name="contents" cols="32" rows="5"></textarea></td>
</tr>
<tr valign="baseline">
<td nowrap="nowrap" align="right"> </td>
<td><input type="submit" value="Add" /></td>
</tr>
</table>
<input type="hidden" name="MM_insert" value="form1" />
</form>
<p> </p>
<p></p>
When I upload however it does not work. I have tried changing the database to the Mysql on the host but it still does not work.
I have created the same fields, created and linked a user put the db name, user and password into cs4 database wizard but still no joy.
Below is the code that works in the test server in xampp on local.
Grateful for any help.
Thnks
<?php do { ?>
<li class="style2"><strong><?php echo $row_Getfancyfeedback['title']; ?></strong><br />
<?php echo $row_Getfancyfeedback['contents']; ?><br />
By <?php echo $row_Getfancyfeedback['author_name']; ?> At <?php echo $row_Getfancyfeedback['created_at']; ?><br />
<br />
<?php } while ($row_Getfancyfeedback = mysql_fetch_assoc($Getfancyfeedback)); ?>
<a href="<?php printf("%s?pageNum_Getfancyfeedback=%d%s", $currentPage, max(0, $pageNum_Getfancyfeedback - 1), $queryString_Getfancyfeedback); ?>">Previous</a> Showing <?php echo ($startRow_Getfancyfeedback + 1) ?> to <?php echo min($startRow_Getfancyfeedback + $maxRows_Getfancyfeedback, $totalRows_Getfancyfeedback) ?> of<?php echo $totalRows_Getfancyfeedback ?><a href="<?php printf("%s?pageNum_Getfancyfeedback=%d%s", $currentPage, min($totalPages_Getfancyfeedback, $pageNum_Getfancyfeedback + 1), $queryString_Getfancyfeedback); ?>">Next</a>
</li>
</ol>
</div>
<div class="style21" id="create">
<h2 class="style2">Please send us your comments on the form below</h2>
<form action="<?php echo $editFormAction; ?>" method="post" name="form1" id="form1">
<table align="center">
<tr valign="baseline">
<td nowrap="nowrap" align="right">Your Name:</td>
<td><input type="text" name="author_name" value="" size="32" /></td>
</tr>
<tr valign="baseline">
<td nowrap="nowrap" align="right">Your email:</td>
<td><input type="text" name="author_email" value="" size="32" /></td>
</tr>
<tr valign="baseline">
<td nowrap="nowrap" align="right">Title:</td>
<td><input type="text" name="title" value="" size="32" /></td>
</tr>
<tr valign="baseline">
<td nowrap="nowrap" align="right">Contents:</td>
<td><textarea name="contents" cols="32" rows="5"></textarea></td>
</tr>
<tr valign="baseline">
<td nowrap="nowrap" align="right"> </td>
<td><input type="submit" value="Add" /></td>
</tr>
</table>
<input type="hidden" name="MM_insert" value="form1" />
</form>
<p> </p>
<p></p>