alexguz79
Members-
Posts
38 -
Joined
-
Last visited
Never
Everything posted by alexguz79
-
plis... anybody?
-
hey everybody.. trying to have this code working but allways give error on line 23-25 after the search, can anybody help me? Code: ----------------------------------------------------------------------------------------- <? if (isset($keywords) && $keywords != "") { $searchterms = $_GET["keywords"]; $query = "select * from perfect where match(nombre,texto) against('".mysql_real_escape_string($searchterms)."')"; $result = mysql_query($query); if ($row = mysql_fetch_array($result)) { print"<br /><b>Your search returned ".mysql_num_rows($result)." results.</b>"; $i = 1; do { print"<br /><br />This is search result number {$i}"; $i++; { while ($row = mysql_fetch_array($result)); } else { print"<br />Your search returned no results." } else { include('picture_search.php'); } ?> -----------------------------------------------------------------------
-
here is what yo can see what im getting: http://mytrende.com/index_picture_flash.php?id=6
-
hey... i posted this before and i'm having problems.... can't figured out how to do this... the swf on my database is no loading on the site im using this code and its not working: this is the object tht calls the flash *------------------------------------ <object classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="555" height="500"> <param name="movie" value="picture_movie.php?id=<?php echo $id;?>"> <param name="quality" value="high"> <embed src="picture_movie.php?id=<?php echo $id;?>" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="555" height="500"></embed> </object> ------------------------------------ this is the file picture_movie.php called ------------------------------------ <?php require_once('config_picture.php'); $q = 'SELECT swf_evento FROM perfect WHERE ID = '.mysql_real_escape_string($_GET['id']); $r = mysql_query($q) or die(mysql_error().$q); header("content-type: application/x-shockwave-flash"); list($data) = mysql_fetch_assoc($r); echo $data; } ?> --------------------------------------- please anyone... im stuck
-
problem loading swf from mysql... please help
alexguz79 replied to alexguz79's topic in PHP Coding Help
anyone please -
problem loading swf from mysql... please help
alexguz79 replied to alexguz79's topic in PHP Coding Help
im using both... firefo and explorer..... i thing we're getting there.... now my page recognize is a swf that has to display.... the thing is... it's not displaying the swf on the database... again... here's the code... million thanx in advance this is where should display the swf file ---------------------------- <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="555" height="500"> <param name="movie" value="picture_movie.php?id=<?php echo $id;?>"> <param name="quality" value="high"> <embed src="picture_movie.php?id=<?php echo $id;?>" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="555" height="500"></embed> </object> ---------------------------- this is the file picture_movie.php ---------------------------- <?php require_once('config_picture.php'); if(is_int($_GET['id'])){ $q = "Select swf_evento as data from `perfect` where id = ".mysql_real_escape_string($_GET['id']); $r = mysql_query($q) or die(mysql_error().$q); header("content-type: application/x-shockwave-flash"); list($data) = mysql_fetch_assoc($r); echo $data; } ?> ---------------------------- -
problem loading swf from mysql... please help
alexguz79 replied to alexguz79's topic in PHP Coding Help
thats what i see too this is the code <?php connectSQL(); if(is_int($_GET['id'])){ $q = "Select swf_evento as data from `perfect` where id = ".mysql_real_escape_string($_GET['id']); $r = mysql_query($q) or die(mysql_error().$q); header("content-type: application/x-shockwave-flash"); list($data) = mysql_fetch_assoc($r); echo $data; ?> -
problem loading swf from mysql... please help
alexguz79 replied to alexguz79's topic in PHP Coding Help
this is the error i get with that: Parse error: syntax error, unexpected $end in /home/mytrende/public_html/picture_movie.php on line 9 and line 9 is the end of the code.... i dont get it -
problem loading swf from mysql... please help
alexguz79 replied to alexguz79's topic in PHP Coding Help
that from cooldude didnt work eather... any ideas?? im stuck -
problem loading swf from mysql... please help
alexguz79 replied to alexguz79's topic in PHP Coding Help
its an swf file.... ****.swf is stored in my database -
hey everybody.... this is it.. im trying to load an swf file stored in my database with this code: <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="555" height="500"> <param name="movie" value="<?=$row['swf_evento']?>" /> <param name="quality" value="high" /> <embed src="<?=$row['swf_evento']?>" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="555" height="500"></embed> </object> the thing is... on the site i just get the binary code..... can somebody hellp me with this
-
Help with Cannot modify header information
alexguz79 replied to alexguz79's topic in PHP Coding Help
ok... thanx.... here is how i fix it.... found the answer on this forum forgot about the index_toptrends.... and forgot abot making changes to img_tech... on the page i wanted the image to display i just changed the code for a <img src="img_tech.php"> THAT FIX IT.... thanxs again -
Hey everybody... i have this HUGE question.... maybe you guys can help me i'm having this 'Cannot modify header information' problem: -------------------------------------------------------------------- Cannot modify header information - headers already sent by (output started at /home/mytrende/public_html/index_toptrends.php:7) in /home/mytrende/public_html/img_tech.php on line 8 -------------------------------------------------------------------- somewhere i read that you have to fix the first file on the line... not the second.... but when i check the file 'index_toptrends.php' everything looks ok to me... here is the code of that file: -------------------------------------------------------------------- <title>Trend*e :: Top Trends</title> </head> <body> <table width="1000" border="0" cellpadding="0" cellspacing="0" align="center"> <tr> <td width="1000" height="19" valign="top"> <?php define('IN_SCRIPT','true'); $script_root = './'; include($script_root . 'head.php'); ?> </td> </tr> </table> <table width="1000" border="0" cellpadding="0" cellspacing="0" align="center"> <tr> <td width="1000" height="19" valign="top"> <? define('IN_SCRIPT', 'true'); $script_root = './'; include($script_root . 'toptrends.php'); ?> </td> </tr> </table> </body> </html> -------------------------------------------------------------------- If you can help me.. plese... i.ve been reading about the problem but still can't fix it