I am have two php scripts, say "first.php" which calls another php, "second.php" script with a GET value.
The first.php calls the second.php by using GET method.
The GET method value is a string retrieved from the database .
first.php code
$someString = mysqli_query($connectionName,"SELECT someString from db where id=1";
/* Then the php redirects to ->" */
'mywebsite.com/PHP/second.php?data='.someString
second.php
if(isset($_GET['data']))
{
$new_data = $_GET['data'];
}
My problem is that, the data in "someString" is in resultset format ,So I am getting a php error that the GET method needs a String value.
Is there any possible way to convert the sql resultset to string?