Reply
Syntax problem
Old 08-18-2007, 08:08 PM Syntax problem
goheadtry's Avatar
Webmaster Talker

Posts: 715
Name: John
Location: United States of America, California
I am having a problem with syntax I don't know what to do to get this to read correct I know it isn't parsing the whole thing though If I haven't given you talkupation yet and you answer it correct I will give you talkupation
PHP Code:
<?php
$sect 
= ('vidz');


require(
'configure.php');

require(
'mySqlClass.inc.php');
$db = new mysqlClass();
$db->Connect(DB_SERVERDB_SERVER_USERNAMEDB_SERVER_PASSWORDDB_DATABASE);

require(
'myPaginationClass.inc.php');
$pagination = new myPagination();

$results $pagination->ReturnResults('*''games''1=1 ORDER BY id'1);

//echo "<b><center>Database Output</center></b><br><br>";

$i=0;
while(!
$results->EOF) {

$gatitle=$results->fields['title'];
$what=$results->fields['title'];
$gadescr=$results->fields['descr'];
$dsrptn="Game"." - ".$gatitle." - ".$gadescr;
require(
'head.php');
$galocat=$results->fields['locat'];
$what=$results->fields['title'];


$results->MoveNext();
echo 
'<body onload="MM_CheckFlashVersion('7,0,0,0','Content on this page requires a newer version of Adobe Flash Player. Do you want to download it now?');">
<table bgcolor="#FFFFFF" width="95%%" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td><div align="center" class="style1">
      <h2>'
.$gatitle.'</h2>
    </div>
  <tr>
      <td colspan="3"><center>
        <script type="text/javascript">
AC_FL_RunContent( '
codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0','width','342','height','291','id','FLVPlayer','src','FLVPlayer_Progressive','flashvars','&MM_ComponentVersion=1&skinName=Halo_Skin_3&streamName=http://www.technologyforever.com/vidd/'.$galocat.'&autoPlay=true&autoRewind=true','quality','high','scale','noscale','name','FLVPlayer','salign','lt','pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','movie','FLVPlayer_Progressive' ); //end AC code
</script><noscript><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="342" height="291" id="FLVPlayer">
          <param name="movie" value="FLVPlayer_Progressive.swf" />
          <param name="salign" value="lt" />
          <param name="quality" value="high" />
          <param name="scale" value="noscale" />
          <param name="FlashVars" value="&MM_ComponentVersion=1&skinName=Halo_Skin_3&streamName=http://www.technologyforever.com/vidd/'.$galocat.'&autoPlay=true&autoRewind=true" />
          <embed src="FLVPlayer_Progressive.swf" flashvars="&MM_ComponentVersion=1&skinName=Halo_Skin_3&streamName=http://www.technologyforever.com/vidd/'.$galocat.'&autoPlay=true&autoRewind=true" quality="high" scale="noscale" width="342" height="291" name="FLVPlayer" salign="LT" type="application/x-shockwave-flash" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" />          
</object></noscript>
        <p></p>
</center></td>
  </tr>
    <tr>
      <td colspan="3"><div align="center">
        <form id="form1" name="form1" method="post" action="">
          <label> Description:<br />
          <textarea name="textarea" id="textarea" cols="45" rows="5">'.$gadescr.'</textarea>
          </label>
        </form>
        </div></td>
    </tr>
    </td>
  </tr>
</table>';
require('foot.php');
 } ?>

Last edited by goheadtry : 08-18-2007 at 08:09 PM.
goheadtry is offline
Reply With Quote
View Public Profile Visit goheadtry's homepage!
 
When You Register, These Ads Go Away!
Old 08-19-2007, 01:46 AM Re: Syntax problem
intrinzic's Avatar
Novice Talker

Posts: 6
Name: Donna Maddox
Try this:

PHP Code:

<?php
$sect 
= ('vidz');


require(
'configure.php');

require(
'mySqlClass.inc.php');
$db = new mysqlClass();
$db->Connect(DB_SERVERDB_SERVER_USERNAMEDB_SERVER_PASSWORDDB_DATABASE);

require(
'myPaginationClass.inc.php');
$pagination = new myPagination();

$results $pagination->ReturnResults('*''games''1=1 ORDER BY id'1);

//echo "<b><center>Database Output</center></b><br><br>";

$i=0;
while(!
$results->EOF) {

$gatitle=$results->fields['title'];
$what=$results->fields['title'];
$gadescr=$results->fields['descr'];
$dsrptn="Game"." - ".$gatitle." - ".$gadescr;
require(
'head.php');
$galocat=$results->fields['locat'];
$what=$results->fields['title'];


$results->MoveNext();
echo 
"<body onload=\"MM_CheckFlashVersion('7,0,0,0','Content on this page requires a newer version of Adobe Flash Player. Do you want to download it now?');\">
<table bgcolor=\"#FFFFFF\" width=\"95%%\" border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\">
  <tr>
    <td><div align=\"center\" class=\"style1\">
      <h2>"
.$gatitle."</h2>
    </div>
  <tr>
      <td colspan=\"3\"><center>
        <script type=\"text/javascript\">
AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0','width','342','height','291','id','FLVPlayer','src','FLVPlayer_Progressive','flashvars','&MM_ComponentVersion=1&skinName=Halo_Skin_3&streamName=http://www.technologyforever.com/vidd/"
.$galocat."&autoPlay=true&autoRewind=true','quality','high','scale','noscale','name','FLVPlayer','salign','lt','pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','movie','FLVPlayer_Progressive' );
</script><noscript><object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0\" width=\"342\" height=\"291\" id=\"FLVPlayer\">
          <param name=\"movie\" value=\"FLVPlayer_Progressive.swf\" />
          <param name=\"salign\" value=\"lt\" />
          <param name=\"quality\" value=\"high\" />
          <param name=\"scale\" value=\"noscale\" />
          <param name=\"FlashVars\" value=\"&MM_ComponentVersion=1&skinName=Halo_Skin_3&streamName=http://www.technologyforever.com/vidd/"
.$galocat."&autoPlay=true&autoRewind=true\" />
          <embed src=\"FLVPlayer_Progressive.swf\" flashvars=\"&MM_ComponentVersion=1&skinName=Halo_Skin_3&streamName=http://www.technologyforever.com/vidd/"
.$galocat."&autoPlay=true&autoRewind=true\" quality=\"high\" scale=\"noscale\" width=\"342\" height=\"291\" name=\"FLVPlayer\" salign=\"LT\" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash\" />          
</object></noscript>
        <p></p>
</center></td>
  </tr>
    <tr>
      <td colspan=\"3\"><div align=\"center\">
        <form id=\"form1\" name=\"form1\" method=\"post\" action=\"\">
          <label> Description:<br />
          <textarea name=\"textarea\" id=\"textarea\" cols=\"45\" rows=\"5\">"
.$gadescr."</textarea>
          </label>
        </form>
        </div></td>
    </tr>
    </td>
  </tr>
</table>"
;
require(
'foot.php');
 } 
 
 
 
?>
intrinzic is offline
Reply With Quote
View Public Profile Visit intrinzic's homepage!
 
Old 08-19-2007, 01:34 PM Re: Syntax problem
goheadtry's Avatar
Webmaster Talker

Posts: 715
Name: John
Location: United States of America, California
How exactly was this changed?
goheadtry is offline
Reply With Quote
View Public Profile Visit goheadtry's homepage!
 
Old 08-19-2007, 02:49 PM Re: Syntax problem
goheadtry's Avatar
Webmaster Talker

Posts: 715
Name: John
Location: United States of America, California
The code is not loading the flash video part
goheadtry is offline
Reply With Quote
View Public Profile Visit goheadtry's homepage!
 
Old 08-19-2007, 03:13 PM Re: Syntax problem
goheadtry's Avatar
Webmaster Talker

Posts: 715
Name: John
Location: United States of America, California
I forgot to include something it works now Thank You!
goheadtry is offline
Reply With Quote
View Public Profile Visit goheadtry's homepage!
 
Reply     « Reply to Syntax problem
 

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Webmaster Resources Marketplace:
Software Development Company | Webhosting.UK.com | Text Link Brokers 


   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.12680 seconds with 12 queries