Jump to content

populate array with sql row values using php


detox

Recommended Posts

I can't get

'$cred1;' => '$cred2',

 

to populate with row1 and row2 values why?

how can i do this

Thank you

 

$RunThisQuery = "SELECT row1, row2 FROM frm_auth WHERE userid=".$_REQUEST['id'];
$results = $connector->query($RunThisQuery);
while ($row = $connector->fetchArray($results)){
$cred1=$row['row1'];
$cred2=$row['row2'];

$LOGIN_INFORMATION = array(
'$cred1;' => '$cred2',
'neverguess' => 'neverguess2'
);
}

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.