My first question in the Mysql forum....
I have something that is confusing me.... it seems to work ok on some servers while not on others... does anyone know of a work around like doing a data base reset or something to allow a second count or second selection..
When the first run is made the code works fine on most servers but when the loop begins it just simply hangs up and will not proceed on the second pass...
On the average when the query is done it usually selects about 35,000 records... then the count($links) says 35k found. Then all the other work goes down ok.. but when its time to loop back to select and count again it hangs at
the following command: $links=$this->db->get_results($query);
So how do I know where its stuck since no indicators are given? The echo query prints fine but the print_r fails the second time around... and a program restart it all works fine one time...
So my question? Is there a data base reset command that would ensure that it could select and recount again.. and what is weird is that it works fine on some servers but not others....
$query="SELECT * FROM wplb_comments_blogs WHERE blog_keyword ='-1' and campaign_id = '$camp->id' and status='0'";
echo $query;
$links=$this->db->get_results($query);
print_r($links);
if (count($links) ==0 ){
Oh.. if someone is looking for the loop, its not shown but I am sure you understand what I meant.. it loops for the total number of keywords I happen to be working with at the time.. but the first loop and all others fail... due to the lockup at the point I showed..
Thanks for any ideas...