Skip to content
View in the app

A better way to browse. Learn more.

Froxlor Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Probleme nach upgrading to PHP7.2

Featured Replies

Hallo suzammen,

ich habe von php 5 to PHP 7.2 upgraded. Es ist eine Online-Bibliothek. 

Alle seiten (Pages) funktionieren super außer eine. In dieser Webpage muss die Bücher sortieren werden. (from DB abgeholt werden). Und es muss zeigen, wie viel Bücher es gibt und die Liste von der Bücher zeigen.

Man kann sehen, wie viel Bücher da sind aber es zeigt die Bücher nicht. 

mysql ----> mysqli 

$sortierung = $_GET['Sortierung'];

$num = mysql_num_rows($result);
            if ($num != 0) {
                   if ($num == 1) {
                      echo "Folgender Eintrag wurde gefunden\n";
                      echo "<p>\n";
                   } else {
                      echo "Folgende $num Einträge wurden gefunden\n";
                      echo "<p>\n";
                   }
            } else {
                   echo "Zur Zeit sind keine Bücher verliehen\n";
                   echo "<p>\n";
            }

            echo "<hr>\n";

            echo "<table class=\"liste\">\n";
            
            if ($num != 0) {
                   echo "<th>Autor<th>Titel<th>Inventarnummer<th>Verliehen_am<th>Verliehen_an<th>Email\n";
                   $i = 0;
                   function mysql_fetch_all($result){while($row = mysql_fetch_row($result)) {
                       $datum = formatdate($row[3]);
                      
                      if($i%2==0){
                          echo"<tr align=left class=\"zeilea\">";
                          echo"<td>  $row[0]<td>\n";
                          echo"<td>  $row[1]</td>\n";
                          echo"<td>  $row[2]</td>\n";
                          echo"<td>  $datum</td>\n";
                          echo"<td>  $row[4]</td>\n";
                          echo"<td><a hODref=\"mailto:$row[5]\">  $row[5]</a></td>\n";

                           echo"</tr>";
                      }
                      else{
                          echo"<tr align=left class=\"zeileb\">";
                          echo"<td>  ".$row."</td>\n";
                          echo"<td>  ".$row[1]."</td>\n";
                          echo"<td>  $row[2]</td>\n";
                          echo"<td>  $datum</td>\n";
                          echo"<td>  $row[4]</td>\n";
                          echo"<td><a href=\"mailto:$row[5]\">  $row[5]</a></td>\n";
                          //echo"<td align=left valign=middle bgcolor=$bgcolor>  $row[6]\n";
                           echo"</tr>";
                      }
                      $i++;
                      return $return;
                   }}
            }
            echo "</table>\n";
            mysql_free_result($result);


    

14 minutes ago, behnam mirhashemi said:

mysql ----> mysqli 

öhm...soll das heißen du hast von mysql auf mysqli gewechselt oder was genau?

Denn wenn ich mir deinen Code angucke, ist das eindeutig noch alles mysql-extension...nicht mysqli....und ich frage mich warum du das hier ins Froxlor forum postest...das ist eindeutig kein Problem mit Froxlor

Archived

This topic is now archived and is closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.