Jump to content

Result Return


cdtc

Recommended Posts

By result you mean a mysql query if so you do something like this:
[code=php:0]<?php

// connect to db

$query = "SELECT * FROM table_name WHERE condition=some_value")
$result = mysql_query($query);

if(mysql_num_rows($result) < '1')
{
    // the query returned no results
    header("Location: no-results.php");
}
else
{
    // the query return at least 1 or more results
    header("Location: results.php");
}

?>[/code]
Link to comment
https://forums.phpfreaks.com/topic/13373-result-return/#findComment-51631
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.