Forum Moderators: phranque

Message Too Old, No Replies

Php

Need Help Please?

         

customdy

2:05 am on Dec 15, 2003 (gmt 0)

10+ Year Member



Trying to use PHP to create a database that would store all corresponsing part numbers and prices.

Created a mysql database - done and working

With the help of a few members here, created the PHP code to query the database and pull the corresponsing data.

Questions:
By renaming the page from .htm to .php - will this have any negative effect on spiders?

How do I pass the variable from the php section of the page to body?

<?php........

$msrp = ****

<?)

<form post ...need to display $msrp here

Thanks

mcavic

5:26 am on Dec 15, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



renaming the page from .htm to .php - will this have any negative effect on spiders?

Aside from the normal effects of changing a filename, no. But adding a "?" to the url can cause some spiders not to index that page (at least not as quickly).

How do I pass the variable from the php section of the page to body?

You embed another php section in the body:

The price is <?php print "$msrp";?> plus shipping and handling.