PHP Code Funktion kopieren?
Verfasst: 11.10.2011 14:31
Das ist mein Code:
Ich weis das nicht alle Klammern geschlossen werden. Das liegt daran das der o.g. Code nur ein kleiner Auschnitt ist. Die Klammern werden alle weiter unten geschlossen. Es Funktioniert auch alles. Nur will ich neber videobb_url auch noch videobb_url_low haben.
Wie mach ich das ?
Folgendes hab ich schon versucht :
Versuch1 :
Versuch 2:
Versuch 3:
Hab das Blind getestet weil ich nicht viel Ahnung von PHP habe.
Kann mir jemand helfen?
Code: Alles auswählen
if (!empty($row['videobb_url' . $video_mode])) {
$videobb_urls = explode("\n", $row['videobb_url' . $video_mode] . "\n");
$num = 1;
$thisVideoButton = NULL;
for ($i = 0; $i < count($videobb_urls); $i++) {
if ($num > 2) {
$videobb_parts = true;
}
Wie mach ich das ?
Folgendes hab ich schon versucht :
Versuch1 :
Code: Alles auswählen
if (!empty($row['videobb_url' . $video_mode])) {
$videobb_urls = explode("\n", $row['videobb_url' . $video_mode] . "\n");
$num = 1;
$thisVideoButton = NULL;
for ($i = 0; $i < count($videobb_urls); $i++) {
if ($num > 2) {
$videobb_parts = true;
}
if (!empty($row['videobb_url_low' . $video_mode])) {
$videobb_urls = explode("\n", $row['videobb_url_low' . $video_mode] . "\n");
$num = 1;
$thisVideoButton = NULL;
for ($i = 0; $i < count($videobb_urls); $i++) {
if ($num > 2) {
$videobb_parts = true;
}
Code: Alles auswählen
if (!empty($row['videobb_url' . $video_mode])) {
$videobb_urls = explode("\n", $row['videobb_url' . $video_mode] . "\n");
if (!empty($row['videobb_url:low' . $video_mode])) {
$videobb_urls = explode("\n", $row['videobb_url_low' . $video_mode] . "\n");
$num = 1;
$thisVideoButton = NULL;
for ($i = 0; $i < count($videobb_urls); $i++) {
if ($num > 2) {
$videobb_parts = true;
}
Code: Alles auswählen
if (!empty($row['videobb_url' && 'videobb_url_low' . $video_mode])) {
$videobb_urls = explode("\n", $row['videobb_url' && 'videobb_url_low'. $video_mode] . "\n");
$num = 1;
$thisVideoButton = NULL;
for ($i = 0; $i < count($videobb_urls); $i++) {
if ($num > 2) {
$videobb_parts = true;
}
Kann mir jemand helfen?