[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vp / vr / w / wg / wsg / wsr / x / y ] [Home]
4chanarchives logo
Fuck, I can't get this to work. Yes I've tried google.
Images are sometimes not shown due to bandwidth/network limitations. Refreshing the page usually helps.

You are currently reading a thread in /g/ - Technology

Thread replies: 21
Thread images: 5
File: ahref.png (19 KB, 753x357) Image search: [Google]
ahref.png
19 KB, 753x357
Fuck, I can't get this to work. Yes I've tried google. Does anyone see any reason why the a href link wont work? It's giving me the error "Parse error: syntax error, unexpected 'comments' (T_STRING), expecting ',' or ';' in .... on line 25."
>>
>>54384905
Escape your quotes
>>
>>54384905
that looks fucking terrible.
>>
>>54384919

Where?

>>54384942

I'm new to this.
>>
>>54384905

It looks to me like you forgot something, either you forgot a semi-colon or something else is making the program think you wan to end the line when you don't.
>>
>>54384905
are the two "s supposed to be at the end of the 3rd to last line?
>>
>>54384905
Your code fails because you're mixing " and ' quotes.
>>
>>54384953
href=\"\"
>>
I came here from Hacker News for the first time today as a result of following the link from one of the "HN discussed on 4chan" links.

This is what I see.

/g/ you are pathetic.
>>
>>54385080

Where should the second slash go? Should it look like echo "<td><a href=\"comments.php?id= ' . $row['blogid'] . ' \">Blog post Comments</a></td>"; ?
>>
File: congratsdumbshit.jpg (22 KB, 500x375) Image search: [Google]
congratsdumbshit.jpg
22 KB, 500x375
>>54384905

> all the mixed quoting and busted string literals
>>
>>54385123

Sorry, i'm not a cool hacker. I'll leave /g/ forever after I get this figured out.
>>
>>54385126
>' . $row['blogid'] . '

Change ' to "
>>
File: 1462412332050.jpg (171 KB, 753x357) Image search: [Google]
1462412332050.jpg
171 KB, 753x357
>>
>>54385222

Thanks but that doesn't work.
>>
File: 1462377923584.jpg (67 KB, 755x423) Image search: [Google]
1462377923584.jpg
67 KB, 755x423
>>54385141
next time use /wsr/
>>
File: 1462412332050b.png (44 KB, 753x357) Image search: [Google]
1462412332050b.png
44 KB, 753x357
I think it's pairing your quotes like pic related 1,2,3 & 4 so escape all the ones in the middle until the whole string turns grey.
>>
GOT IT. THANKS EVERYONE

>>54385258
Will do
>>
>>54385123
>I came here from Hacker News

Got tired of circlejerking over the latest hipster faggot js framework?
>>
>>54385313
oops not all of them i wasnt paying attention
>>
-_- Mr. Graphics does not approve!
Thread replies: 21
Thread images: 5

banner
banner
[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vp / vr / w / wg / wsg / wsr / x / y] [Home]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
If a post contains personal/copyrighted/illegal content you can contact me at [email protected] with that post and thread number and it will be removed as soon as possible.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com, send takedown notices to them.
This is a 4chan archive - all of the content originated from them. If you need IP information for a Poster - you need to contact them. This website shows only archived content.