• Howdy! Welcome to our community of more than 130.000 members devoted to web hosting. This is a great place to get special offers from web hosts and post your own requests or ads. To start posting sign up here. Cheers! /Peo, FreeWebSpace.net
managed wordpress hosting

[PHP] Ned Help

ducktape

NLC
NLC
PHP:
@include('http://neonsonline.com/forums/ssi.php?m=posts&a=topicposts&topic=<? echo "$post_id"; >&start=0&show=10');

Why isnt this working...lol...below is he part around it. the rest of the file is sucking info from a database

http://neonsonline.com/nom/nom.php?id=26

the part thats not working right is the Feedback which gets info from IPB forum.

The snippet above works if i put the number like 4897 in the snippet but if i try to call the 4897 from a database it wont work

PHP:
echo "<p>
<table cellpadding='3' cellspacing='0' width='100%' border='0' class='main'>
<tr>
<td width='100%'><img src='/nom/images/feedback.gif'></td>
</tr><tr>
<td height='1' width='100%' bgcolor='#1365B1'></td>
</tr></table><p>";

@include('http://neonsonline.com/forums/ssi.php?m=posts&a=topicposts&topic=<? echo "$post_id"; >&start=0&show=10');

echo "<p>
<table cellpadding='3' cellspacing='0' width='100%' border='0' class='main'>
<tr>
<td width='100%'><img src='/nom/images/additionalphotos.gif'></td>
</tr><tr>
<td height='1' width='100%' bgcolor='#1365B1'></td>
</tr></table>
 
Im thinking this would work :\
PHP:
<?php
echo "<p>
<table cellpadding='3' cellspacing='0' width='100%' border='0' class='main'>
<tr>
<td width='100%'><img src='/nom/images/feedback.gif'></td>
</tr><tr>
<td height='1' width='100%' bgcolor='#1365B1'></td>
</tr></table><p>";

@include("http://neonsonline.com/forums/ssi.php?m=posts&a=topicposts&topic=$post_id&start=0&show=10");

echo "<p>
<table cellpadding='3' cellspacing='0' width='100%' border='0' class='main'>
<tr>
<td width='100%'><img src='/nom/images/additionalphotos.gif'></td>
</tr><tr>
<td height='1' width='100%' bgcolor='#1365B1'></td>
</tr></table>
 
i tried that b4 and still got nothing

i have tried

PHP:
$post_id
<? echo "$post_id"; ?>
<? print "$post_id"; ?>
 
PHP:
<?
$inc_link = 'http://neonsonline.com/forums/ssi.php?m=posts&a=topicposts&topic=' . $post_id . '&start=0&show=10';
if ( file_exists($inc_link) ) include $inc_link;
?>
never use @ for your variables. Coding with that is like taking shortcuts MS used in IE.
 
Back
Top