mercredi 2 janvier 2019

Problem in php array is not work with while

I have a php code when I want to show info to the browser it show me : Notice: Array to string conversion in Can You Help Me Please I want to show this information from function because I don't want to create new while one every request.

    function get_school($school_code){
        global $conn,$Lang;
            $school_select      = $conn->query("SELECT * FROM schools WHERE code='$school_code'");
            $school_exs         = $school_select->num_rows;

                if ($school_exs != 0) {
                    $show = array();
                    while ($school_info  = mysqli_fetch_array($school_select)) {
                        $nestedData         = array();
                        $nestedData[]       = $school_info['id'];  
                        $nestedData[]       = $school_info['name'];  
                        $nestedData[]       = $school_info['code'];  
                        $nestedData[]       = $school_info['type'];  
                        $nestedData[]       = $school_info['wilaya'];  
                        $nestedData[]       = $school_info['baladiya'];  
                        $nestedData[]       = $school_info['capacity'];  
                        $nestedData[]       = $school_info['phone'];  
                        $nestedData[]       = $school_info['email'];  
                        $nestedData[]       = $school_info['adress'];
                        $nestedData[]       = $school_info['arabic_name'];
                        $nestedData[]       = $school_info['direction'];
                        $nestedData[]       = $school_info['language'];
                        $show[]             = $nestedData;
                    }

                }else{


                }
        return  $show;
    }

    echo get_school($admin_school_code);




Please support my bachelor thesis by filling out my survey for selecting a Web App Test Software for e2e tests

Hey guys I really need your support and your knowledge. Please visit my survey https://docs.google.com/forms/d/e/1FAIpQLSfg85RjukBUttjYfKo8ek5C027nbwIm2JMmj-lN-mGYCrWTQg/viewform?usp=sf_link

The duration of this survey is about three to six minutes.

You can choose wheather you'd like to fill out in english or in german.

The results of this survey are in my bachelor thesis "TESTING IN AGILE ENVIRONMENT - Selection and implementation of a test software for e2e testing tools using the example of Capital Pioneers GmbH".




Arduino ethernet shield as web server eventually fails

I have written an application on an olimexino STM32 board (arduino-like) using a W5100 ethernet shield. It implements a web server which provides a very simple web page. For sake of RAM size, the data is sent to the client using about 20 very short frames. At the beginning it would work for a few minutes then fail. I found that I missed to process the favicon request, which produced on the client side a lot of retries that eventually would block the W5100 chip. I added a «410 gone» reply that solved the problem. However, I still experience failures after a few days which require that I reboot my application. I am thus wondering what I could have missed. My first concern is about the resending of lost frames. I still do not understand how this is handled: is it automatically done by the W5100, since my web page is smaller than the chip's transmit buffer? Or should it be done at the application level? In this case how do I know which segment is to be resent? In any case, did anyone experience a similar problem? Thanks.




HTML Report for Squish for web

I have an Squish for Web for automating web application. I would like to know whether HTML report will be generated for Squish and steps to generate it




Horizontal slider with blank space appearing on tablet and less width

I created PC friendly website, but i'm starting to make it responsive, but i got into a problem. For some reason at tablet and less width i'm getting white space which is comming from html according to inspector.

enter image description here

I tried to make body and height width to 100%, but it doesn't work. I honestly have no idea how to fix this.

Files im working with: HTML SCSS




Is hyperlink on web part of the document or it is just content type as document or multimedia?

Possibilities according to level:

One possiblity:

  • hyperlink = multimedia = document

Second possibility:

  • multimedia = document (hyperlink as content in doc.)



Wordpress site showing up as text instead of images and text

not sure what I did wrong here, removed and re-installed all plugins but to no avail.

My site stopped showing images as images but rather as text, pls see back and front ends below.

back end editor view

front end view of site