Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7644209
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T09:37:48+00:00 2026-05-31T09:37:48+00:00

What i am trying to do is style a text retrieven from sql. But

  • 0

What i am trying to do is style a text retrieven from sql. But when i try to preview it i get *Fatal error: Maximum execution time of 30 seconds exceeded on line 64 *. I tryed puting ini_set(‘max_execution_time’, 300); but still same problem. here is the code:

    <?php
ini_set('max_execution_time', 300);
        $info="<h3>Τεχνικά Χαρακτηριστικά</h3>";
        $sql_1 = mysql_query("SELECT * FROM info WHERE parent = '$id'")or trigger_error(mysql_error());
        $counter = mysql_num_rows($sql_1);
        if($counter > 0){
            while ($row_1 = mysql_fetch_array($sql_1)){
                $temp = $row_1['add_info'] ."</br>";
                $temp = str_split($temp);
                for($i=0; $i <= sizeof($temp); $i++){
                    if($temp[$i] == ":"){
                            break;
                    }
                }
                $temp_1="<strong>";
                for($w=0; $w < sizeof($temp); $w++){
                    if($w < $i+1){
                        $temp_1 .= $temp[$w];
                    }else if($w = $i+1){
                        $temp_1 .="</strong>";
                    }else{//this is line 64
                        $temp_1 .= $temp[$w];
                    }
                }
                $info .= $temp_1 . "<br/>";
            }
        }
?>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T09:37:49+00:00Added an answer on May 31, 2026 at 9:37 am

    You are probably entering an infinite loop with line }else if($w = $i+1){, change that to }else if($w == $i+1){ or }else if($w === $i+1){.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'd trying to style my ComboBoxes to match the rest of the UI but
I'm trying to change style a text box. By now, I have made that
I am trying to parse a bit of data from an HTML file, but
I'm going around in circles trying to figure this out. HTML/CSS: <style type='text/css'> #content
I'm trying to style a menu, but I keep running into this weird margin
I'm trying to style an ordered list that seemed quite simple but apparently is
I'm trying to create a text box using the vales retrieved from the database.
I am trying to style text on a page that contains TextBlocks and TextBlocks
I am trying to style an input-box rendered using jEditable . I want to
I am trying to style some form labels by selecting them with their 'for'

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.