Jump to content

For loop terminating unexpectedly


mrp101

Recommended Posts

It reads data from one dbase, uses the data to search on another then writes the result to the first.

It seems to be breaking before the while statement;

 

$Query3 = "SELECT f1, f2, MATCH (f1) AGAINST ('".$t."') AS SCORE FROM table2";

 

$Result3 = mysql_query ($Query3, $Link);

 

While($Row3 = mysql_fetch_array ($Result3)) { 

$scores[] = $Row3[sCORE]; }

 

Link to comment
Share on other sites

Thanks for the error message code.

 

Problem seems to be the error below.

 

Fatal error: Maximum execution time of 30 seconds exceeded in /var/www/html/phpscript/opendb8.php on line 49

 

Line 49 is:    While($Row3 = mysql_fetch_array ($Result3))

 

Some kind of timeout on the dbase query ??

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.