Mysidia Adoptables Support Forum  

Home Community Mys-Script Creative Off-Topic
Go Back   Mysidia Adoptables Support Forum > Off Topic Discussions > Webmasters Area

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 09-18-2012, 02:26 PM
Tequila's Avatar
Tequila Tequila is offline
The Grim One
 
Join Date: Jan 2009
Location: Souther Tier, New York State
Posts: 1,356
Gender: Female
Credits: 97,312
Tequila is on a distinguished road
Default PHP Error on other script.

Since there are very few people answering questions about this script on it's page (dead site, yuck!) I figured I'd turn here.

I'm getting this error when I try to view cards:
PHP Code:
Parse errorsyntax errorunexpected '>' in /home/u666097869/public_html/viewcards.php on line 9 
The file in question reads as is:
PHP Code:
<?php include("mytcg/settings.php");
include(
"$header");
$deck $_GET['deck'];
$query="SELECT * FROM `$table_cards` WHERE filename='$deck'";
$result=mysql_query($query);
while(
$row=mysql_fetch_assoc($result)) {
    
?>
    <h1>Cards &raquo; <?php echo $row[deckname]; ?></h1>
    <table>
    <tr><td valign="top" width="100px"><?php echo "<img src=\"cards\filler.png" />"; ?>
    </td><td valign="
top"><b>Deck Name:</b> <?php echo "$row[deckname]"; ?> (<?php echo "$row[filename]"; ?>)<br />
    <b>Card Count:</b> <?php
    if(
$row[filename]=="member") {
        
$select2 = mysql_query("SELECT FROM `$table_membersWHERE `membercard`='Yes'");
        
$memnum = mysql_num_rows($select2);
        echo "
$memnum";
    }
    else {
        echo "
$row[count]";
    }
    ?><br />
    <b>Card Worth:</b> <?php echo "
$row[worth]"; ?><br />
    <b>Masterable?</b> <?php echo "
$row[masterable]"; ?><br />
    <b>Masters:</b> <?php echo "
$row[masters]"; ?>
    </td></tr>
    </table><br />
    
    <center>
    <?php
    if(
$deck=="member") {
        
$query2 = "SELECT FROM $table_members WHERE `membercard`='Yes' ORDER BY `name`";
        
$result2=mysql_query($query2);
        while(
$row2=mysql_fetch_assoc($result2)) {
            echo "
<img src=\"/decks/mc-$row2[name].$ext\" />\n";
        }
    }
    if(
$row[puzzle]=="yes") {
echo 
"<img src=\"$tcgcardurl$row[filename]01.$ext\" /><img src=\"$tcgcardurl$row[filename]02.$ext\" /><img src=\"$tcgcardurl$row[filename]03.$ext\" /><br><img src=\"$tcgcardurl$row[filename]04.$ext\" /><img src=\"$tcgcardurl$row[filename]05.$ext\" /><img src=\"$tcgcardurl$row[filename]06.$ext\" /><br><img src=\"$tcgcardurl$row[filename]07.$ext\" /><img src=\"$tcgcardurl$row[filename]08.$ext\" /><img src=\"$tcgcardurl$row[filename]09.$ext\" /><br><img src=\"$tcgcardurl$row[filename]10.$ext\" /><img src=\"$tcgcardurl$row[filename]11.$ext\" /><img src=\"$tcgcardurl$row[filename]12.$ext\" /><br><img src=\"$tcgcardurl$row[filename]13.$ext\" /><img src=\"$tcgcardurl$row[filename]14.$ext\" /><img src=\"$tcgcardurl$row[filename]15.$ext\" /><br>";
    }
    else {
        for(
$x=1;$x<=$row[count];$x++) {
            if(
$x<10) {
                echo 
"<img src=\"$tcgcardurl$row[filename]";
                echo 
"0";
                echo 
"$x.$ext\" />\n";
            }
            else {
                echo 
"<img src=\"$tcgcardurl$row[filename]$x.$ext\" />\n";
            }
        }
    }
    
echo 
"<br /><br /></div><h1>Master Badge</h1>";
echo 
"<center>";
echo 
"<img src=\"$tcgcardurl"."$deck";echo "-master.$ext\" />";
echo 
"</center>";
echo 
"<br /><br />";
}
include(
"$footer"); ?>
Any idea?
__________________
Artist. Designer. Gamer. Mother.
[portfolio] [tarot] [Rune Hollow] [freebies]
Reply With Quote
  #2  
Old 09-18-2012, 02:35 PM
schepers12's Avatar
schepers12 schepers12 is offline
Member
 
Join Date: Sep 2012
Location: netherlands
Posts: 30
Gender: Male
Credits: 7,874
schepers12 is on a distinguished road
Default

add a backslash, it must look like this: cards\filler.png\"
and not cards\filler.png"

i hope this helps~ ;)
Reply With Quote
  #3  
Old 09-18-2012, 06:11 PM
Tequila's Avatar
Tequila Tequila is offline
The Grim One
 
Join Date: Jan 2009
Location: Souther Tier, New York State
Posts: 1,356
Gender: Female
Credits: 97,312
Tequila is on a distinguished road
Default

And that's why I ask for help. ;3 I overlook the simple things! Thank you!
__________________
Artist. Designer. Gamer. Mother.
[portfolio] [tarot] [Rune Hollow] [freebies]
Reply With Quote
  #4  
Old 09-18-2012, 11:46 PM
Nemesis's Avatar
Nemesis Nemesis is offline
Member
 
Join Date: Mar 2011
Location: Ohio, United States
Posts: 641
Gender: Male
Credits: 49,030
Nemesis is on a distinguished road
Default

Schepers12 first post too. Like a sniper camping out for days finally making his mark.
__________________
https://gemnode.com
Free Hosting for Mysidia Adopt Sites
Just join our forum and request your free hosting account
Reply With Quote
  #5  
Old 09-19-2012, 06:38 AM
Tequila's Avatar
Tequila Tequila is offline
The Grim One
 
Join Date: Jan 2009
Location: Souther Tier, New York State
Posts: 1,356
Gender: Female
Credits: 97,312
Tequila is on a distinguished road
Default

I saw that! A nice first post as well.
__________________
Artist. Designer. Gamer. Mother.
[portfolio] [tarot] [Rune Hollow] [freebies]
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Parse error: syntax error, unexpected T_STRING MikiHeart Questions and Supports 29 10-31-2013 12:46 AM
ACP Error : Fatal error: Class 'AppController' not found in... Isura Questions and Supports 39 06-17-2013 02:26 AM
Script error SilverDragonTears Questions and Supports 12 05-01-2012 05:22 PM
Parse error: syntax error, unexpected T_ELSE in /home/.nyles/ Saphira Questions and Supports 11 05-26-2009 11:45 AM


All times are GMT -5. The time now is 11:24 AM.

Currently Active Users: 9786 (0 members and 9786 guests)
Threads: 4,080, Posts: 32,024, Members: 2,016
Welcome to our newest members, jolob.
BETA





What's New?

What's Hot?

What's Popular?


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
vBCommerce I v2.0.0 Gold ©2010, PixelFX Studios
vBCredits I v2.0.0 Gold ©2010, PixelFX Studios
Emoticons by darkmoon3636