Parse Error

I checked around the forum, didn't really see the same problem I have. Well, actually a friend of mine. Can't see homepage unless you point to  "index.html"

This is the error :

Parse error: syntax error, unexpected '=' in /home/thehunt1/public_html/templates/base/scripts/BxBaseIndexPageView.php on line 321

So I took out the   "=" (equal sign) there are only two on that line, This is what line 321 says.

$sqlCondition .= "AND `Profiles`.`$sField` = '$sValue'";
        }

I removed others in case the line count was wrong, no effect.

This shows up when going to the site directly without using index.html

 

A head of time thank you,

Rob

Quote · 30 May 2011

Hello make the attachment of that file in post it here

PS: If possible do not write me personally, please try to ask on the forum first
Quote · 30 May 2011

$sqlCondition .= "AND `Profiles`.`$sField` = '$sValue'";

should it not be:

$sqlCondition .= " AND `Profiles`.`$sField` = '$sValue'"; ?

See the space before AND .. it loop thru an array and add ' AND ..' strings, so else your string will end up with:
'AND Profiles.field = 'value'AND... without spaces, please check that...


Quote · 30 May 2011

 

$sqlCondition .= "AND `Profiles`.`$sField` = '$sValue'";

should it not be:

$sqlCondition .= " AND `Profiles`.`$sField` = '$sValue'"; ?

See the space before AND .. it loop thru an array and add ' AND ..' strings, so else your string will end up with:
'AND Profiles.field = 'value'AND... without spaces, please check that...


 There error of PHP code not in sql!

PS: If possible do not write me personally, please try to ask on the forum first
Quote · 30 May 2011

Ok, Thanks,

I will upload the file BxBaseIndexPageview.txt (php file)

This is for my friend that I mentioned I actually did a search for that file and came up with 4 copies of that file. I can usually handle this type of thing but, I'm thinking this is beyond me. I tried what ArgonX said and I don't know, I tried a few things already and I am not sure what is going on.

Rob

Bxfile.txt · 16.4K · 135 downloads
Quote · 30 May 2011

is this a custom template?

do you have the same problem when using the uni template?

if this is uni, can you just replace that file with a default version?

When a GIG is not enough --> Terabyte Dolphin Technical Support - Server Management and Support
Quote · 30 May 2011

Hey, This is the path and I'm trying not to screw up so, I'm staying on the path. My friend says he's going to hold off for two months before he presents this to the public.

/home/thehunt1/public_html/templates/base/scripts/BxBaseIndexPageView.php on line 321

 

I've had a class for php and I thought it would be a breeze, I've done about ten different things yesterday without any luck.

Parse error: syntax error, unexpected '=' in /home/thehunt1/public_html/templates/base/scripts/BxBaseIndexPageView.php on line 321

This is what the line (321) says:

$sqlCondition .= "AND `Profiles`.`$sField` = '$sValue'";

Quote · 30 May 2011

Check this code:

// possible conditions
        $sqlCondition = "WHERE `Profiles`.`Status` = 'Active' and (`Profiles`.`Couple` = 0 or `Profiles`.`Couple` > `Profiles`.`ID`)”;
        if (is_array($aParams)) {
             foreach ($aParams as $sField => $sValue)
                 $sqlCondition .= "AND `Profiles`.`$sField` = '$sValue'";
             }

 

and this line

$sqlCondition = "WHERE `Profiles`.`Status` = 'Active' and (`Profiles`.`Couple` = 0 or `Profiles`.`Couple` > `Profiles`.`ID`)”;

penultimate character here is wrong, compare with your txt file and you will see the difference, should be a clean "

Quote · 31 May 2011

Sorry man I don't see it, or I must be going blind did a few things yesterday and worked on it a little to try everything again. could you maybe fix it on my text attachment from earlier and I could upload it. Like I said I've had classes on php but, this is beyond me. Ask me to create  blocks the old way and I could do that all day but, this I don't know.

by penultimate you meant next to last right, tried removing the characters with no luck.

 

Thanks everyone

Rob

Quote · 31 May 2011

OK I have fixed issue into your file. Replace content in your old file with my

Bxfile.php · 16.4K · 62 downloads
PS: If possible do not write me personally, please try to ask on the forum first
Quote · 31 May 2011

Wow, I want to be like you, maybe in the fall after the last php class I might be able to figure this stuff out. I'm feeling a bit punchy these past few days, no sleep. Had about 3 hrs. sleep tonight, been working on a project that might help people here. Anyhow, I want to thank you for the help maybe I can return the favor sometime soon. My friends site looks pretty cool now I can finally see what his project looks like.

Thank You, tons

Rob

Quote · 31 May 2011

Your are welcome

PS: If possible do not write me personally, please try to ask on the forum first
Quote · 31 May 2011
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.