Jump to content

Html-->PHP...


FlyingIsFun1217

Recommended Posts

hmmm...

That gives me an error...
[quote]Parse error: parse error, unexpected T_STRING in C:\Program Files\Abyss Web Server\Hosted Pages & Files\sphpblog-0.4.8\scripts\sb_theme.php on line 37[/quote]

I think this might be due to the way that the code that it goes in is set up:
[code]$result = array();
$result[ 'title' ] = 'Am I on AIM?';
$result[ 'content' ] = 'content(php code to retireve image) goes here';

return ( $result );
}[/code]

If you would like to see what I am kinda trying to change, check out [url=http://www.simplephpblog.com/static.php?page=adding_php_block]this page[/url]

Thanks again!
FlyingIsFun1217
Link to comment
Share on other sites

[code]<?php
echo '<a href="aim:GoIM?screenname=myscreenname">
<img src="http://api.oscar.aol.com/SOA/key=fl1aQV3Tmy/presence/myscreennameagain" border="0"></a>';
?>[/code]

There is no unescaped characters in that code above.
Link to comment
Share on other sites

So would it be set up as so?
[code]function menu_aim_presence () {
// AIM Presence Block

$result = array();
$result[ 'title' ] = 'Am I on AIM?';
$result[ 'content' ] = 'echo '<a href="aim:GoIM?screenname=myscreenname">
<img src="http://api.oscar.aol.com/SOA/key=fl1aQV3Tmy/presence/myscreennameagain" border="0"></a>';

return ( $result );
} [/code]
If so, I am still getting an error for some reason:
[quote]Parse error: parse error, unexpected T_STRING in C:\Program Files\Abyss Web Server\Hosted Pages & Files\sphpblog-0.4.8\scripts\sb_theme.php[/quote]

Thanks for helpin a noob...
FlyingIsFun1217
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.