I I am trying to make a site checker for my traffic exchange Now i was able to get this to work
SELECT*FROM vtp_urls where ID=326
and it puled up the right file and everything so I search the web for a way to display the url so I can see if it is good or bad and found this:
<?php
include("mysql_config.php");
if ($dbc = mysql_connect ($host, $user, $passwrd)) // make connection
{
if (!mysql_select_db ($db))
{ // If it can not select the database.
echo 'failed to select db';
exit();
}
{
$geturl= mysql_query ("SELECT*FROM "vtp_urls" WHERE id='362'") or die(mysql_error());
$count = mysql_num_rows($geturl);
if($count == 1)
{
$row = mysql_fetch_assoc($geturl);
{
$url= $row['url'];
{
echo "<iframe src=$url style="background: #fff;" frameborder="0" height="450" scrolling="auto" width="100%"></iframe>";
</div>
}
?>
now that should have displayed the same site but no luck get a Parse error:
syntax error, unexpected T_STRING in /home/royalfam/public_html/sitetester.php on line 12
this is just the start of the site checker just to see if I can get the same result as I did before.
This is my first bit of code I am writing on my own so please be gentle and remember in this I am dumber than a fifth grader. LOL
so any help in fixing the parse error or ideas on how to do this better would be great:)
Dave