PDA

View Full Version : passing/print help??



- |Flash Man| -
February 18th, 2007, 05:40 PM
hey all,

i'm trying to pass a value $result which is get from my $query and i want to pass or echo/print the result in a static html page is this possible or does the page have to be a php page??

Cheers :)

evildrummer
February 18th, 2007, 05:42 PM
it would have to be saved as .php or unless the page is not very dynamic in which case you could have a php which takes the variable and writes it into an html page.

bwh2
February 18th, 2007, 05:59 PM
evildrummer's right. also, assuming you're doing something like the code below, you can't just echo out $result because it's a mysql resource:


// can't echo out $result because it's a mysql resource
$result = mysql_query( "SELECT * FROM tbl" );

in that case, you have to at least push $result into an array, which you could echo.