Tutorials

Eine immer größer werdende Tutorialdatenbank.

PHP-Fusion Core

Aktuelle PHP-Fusion Vollversionen und Updates

Addon Downloads

Alle Downloads garantiert Kostenlos

Support 24/7

24 Stunden, 7 Tage die Woche, das ganze Jahr.

Thema ansehen
Database Help Thema drucken
Benutzeravatar

Jung Mitglied


afoster Geschrieben am 11.02.2019 um 23:46
 #1 Beitrag drucken Top
This is not php-fusion related although some of the code is php-fusion based, but I'm hoping someone can help me with some code. I am trying to pull information from a mysql table and display it in three columns. The file I am attaching here works by displaying the data in two columns, but I want it displayed in 3 columns. Any assistance would be much appreciated. Thank you.
Bearbeitet von David am 12.02.2019 um 02:18
Beiträge: 15 
Benutzeravatar

Seiten Administrator


David Geschrieben am 12.02.2019 um 02:20
 #2 Beitrag drucken Top
Hello Afoster,

i dont understand what you excactly mean, please explain it with more Details and/or Images.

I also deleted the attached File, because you have in the File the MySQL Connection Datas included. Please change your Password because of prevent Security Problems.

Greets, David.


PS.: Sorry for my bad English.
Liebe Grüße, euer David.


Aktiver PHP-Fusion Nutzer seit 3. September 2006
--------------------------------------------------------
PHP-Fusion Österreich Seitenbetreiber.
Beiträge: 434 
http://www.php-fusion.at/ 
Benutzeravatar

Jung Mitglied


afoster Geschrieben am 12.02.2019 um 05:33
 #3 Beitrag drucken Top

Zitat

David schrieb:

Hello Afoster,

i dont understand what you excactly mean, please explain it with more Details and/or Images.

I also deleted the attached File, because you have in the File the MySQL Connection Datas included. Please change your Password because of prevent Security Problems.

Greets, David.


PS.: Sorry for my bad English.


Thank you for your response. The connection data in the file was to my localhost on my computer and not online, so I believe it is OK. I am attaching it again here for your information. I am also attaching a screen shot of the display generated by the file. As you can see, it is displaying the data in two columns. I want that same information displayed in 3 columns.
afoster hat folgende Datei angehängt:  winners19.zip [925Bytes / 1002 mal Heruntergeladen]
afoster hat folgendes Bild angehängt:
2column.jpg
Beiträge: 15 
Benutzeravatar

Seiten Administrator


David Geschrieben am 21.02.2019 um 17:33
 #4 Beitrag drucken Top
Hello Afoster,

sorry for the late Answer.

Please try my attached File - Backup your old. I hope it works, if not, please post Error Messages.

Greets, David.
David hat folgende Datei angehängt:  winners19_1.zip [1.08kB / 970 mal Heruntergeladen]
Liebe Grüße, euer David.


Aktiver PHP-Fusion Nutzer seit 3. September 2006
--------------------------------------------------------
PHP-Fusion Österreich Seitenbetreiber.
Beiträge: 434 
http://www.php-fusion.at/ 
Benutzeravatar

Jung Mitglied


afoster Geschrieben am 22.02.2019 um 16:27
 #5 Beitrag drucken Top

Zitat

David schrieb:

Hello Afoster,

sorry for the late Answer.

Please try my attached File - Backup your old. I hope it works, if not, please post Error Messages.

Greets, David.


David,

Thank you so much for responding to my request. After trying your file, all I get is a display that shows the header, the number of submitted picks and the headers for the three columns. Unfortunately, no data is being pulled in the columns. I was looking at your attachment to see if I could see the reason for this, but I don't know enough PHP to be able to determine what is causing the problem. Please see the attached screen shot that shows what I mean.
afoster hat folgendes Bild angehängt:
columns.jpg
Beiträge: 15 
Benutzeravatar

Seiten Administrator


David Geschrieben am 23.02.2019 um 10:13
 #6 Beitrag drucken Top
Hello Afoster,

please try my new attached File .. i had in the old one a little failure.

Greets, David.
David hat folgende Datei angehängt:  winners19_2.zip [1.09kB / 939 mal Heruntergeladen]
Liebe Grüße, euer David.


Aktiver PHP-Fusion Nutzer seit 3. September 2006
--------------------------------------------------------
PHP-Fusion Österreich Seitenbetreiber.
Beiträge: 434 
http://www.php-fusion.at/ 
Benutzeravatar

Jung Mitglied


afoster Geschrieben am 23.02.2019 um 15:23
 #7 Beitrag drucken Top

Zitat

David schrieb:

Hello Afoster,

please try my new attached File .. i had in the old one a little failure.

Greets, David.


Thanks again for your help and maybe we are getting closer. Here is a screenshot of the display after the last file you sent me.
afoster hat folgendes Bild angehängt:
syntax.jpg
Beiträge: 15 
Benutzeravatar

Seiten Administrator


David Geschrieben am 23.02.2019 um 15:41
 #8 Beitrag drucken Top
Good, please search for the following Line:

$rows2 = $rows2 / 3;


And replace it with the following:

$rows2 = round($rows2 / 3);


Greets, David.
Liebe Grüße, euer David.


Aktiver PHP-Fusion Nutzer seit 3. September 2006
--------------------------------------------------------
PHP-Fusion Österreich Seitenbetreiber.
Beiträge: 434 
http://www.php-fusion.at/ 
Benutzeravatar

Jung Mitglied


afoster Geschrieben am 23.02.2019 um 16:22
 #9 Beitrag drucken Top
It works....thank you so much. A couple more questions and I will leave you alone.

What code needs to be changed to make the space between columns thinner
Will this code work without using maincore.php? I would like to adapt this to other databases that are not php-fusion based.

Zusammengefügt am 26. Februar 2019 um 19:46:14:
UPDATE: I got it working without the maincore.php requirement. Thanks again for your help.
Bearbeitet von afoster am 26.02.2019 um 19:46
Beiträge: 15 
Benutzeravatar

Seiten Administrator


David Geschrieben am 06.03.2019 um 12:31
 #10 Beitrag drucken Top
No Problem Wink

I am happy, that it works. Enjoy and have Fun Smile

Greets, David.
Liebe Grüße, euer David.


Aktiver PHP-Fusion Nutzer seit 3. September 2006
--------------------------------------------------------
PHP-Fusion Österreich Seitenbetreiber.
Beiträge: 434 
http://www.php-fusion.at/ 
Springe ins Forum:
Anzeige


Anmelden


Registrieren Passwort vergessen

RSS Feeds

Feeds abonieren

Letzte News
Letzte Threads
Anzeige

© Copyright 2024 PHP-Fusion.at | Alle Rechte vorbehalten.

© 2016 Real Space. All rights reserved | Design by W3layouts | 19,357,566 eindeutige Besuche
Powered by PHP-Fusion copyright © 2002 - 2024 by Nick Jones. Released as free software without warranties under GNU Affero GPL v3.