Hello, I appear to be stuck in an infinite loop here, Can anyone tell me what I’m doing wrong?
$data = $result->fetch_assoc();
$str_key = $data['link_labels'];
$str_val = $data['links'];
$links = null;
if($str_key != "")
{
while(strpos($str_key, " ") > 0)
{
$key = substr($str_key, 0, strpos($str_key, " ")-1);
$val = substr($str_val, 0, strpos($str_key, " ")-1);
str_replace(substr($str_key, 0, strpos($str_key, " ")), "", $str_key);
str_replace(substr($str_val, 0, strpos($str_val, " ")), "", $str_val);
$links[$key] = $val;
}
$links[$str_key] = $str_val;
}