there is quite a lot wrong with it ..... but question is are you trying to print or echo the link in php?
Any one tell me what wrong this code?
It showCode:<a href='".$file." ;="" onclick="top()"'>-Download Now-</a>
Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ',' or ';' in /home/mysite/public_html/a/file.php on line 55
Please any one help me
there is quite a lot wrong with it ..... but question is are you trying to print or echo the link in php?
Originally Posted by utpal [Only registered and activated users can see links. Click Here To Register...]
onclick="top()" missed dots :pPHP Code:echo"<a href='".$file." onclick=".top()."'>-Download Now-</a>";
onclick=".top()."
Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in C:\Program Files (x86)\VertrigoServ\www\test.php on line 4
Last edited by just_m3.; 10-04-12 at 20:14.
This is ten percent luck, twenty percent skill
Fifteen percent concentrated power of will
Five percent pleasure, fifty percent pain
And a hundred percent reason to remember the name!
still wrong :/Originally Posted by just_m3. [Only registered and activated users can see links. Click Here To Register...]
javascript needs to be inside the stringPHP Code:echo "<a href='".$file."' onclick='top()'>-Download Now-</a>";
ooops :D m'a bad .. i didn't knew that top() is from js function ..Originally Posted by something else [Only registered and activated users can see links. Click Here To Register...]
![]()
This is ten percent luck, twenty percent skill
Fifteen percent concentrated power of will
Five percent pleasure, fifty percent pain
And a hundred percent reason to remember the name!
if it was a php function your post would be still wrong as your missing two 'Originally Posted by just_m3. [Only registered and activated users can see links. Click Here To Register...]
eg:
PHP Code:echo "<a href='".$file."' onclick='".top()."'>-Download Now-</a>";
Last edited by something else; 10-04-12 at 20:29.
OMFG i'm so dizzy todayOriginally Posted by something else [Only registered and activated users can see links. Click Here To Register...]
(nasty day at work) ... missed that too ... :p
how's it now ?PHP Code:echo "<a href='".$file."' onclick='".top()."'>-Download Now-</a>";
but that's why you are here .. to fix things !
and let me tell ya ' one more thing about another day like this .. i wass so dizzy that i didn't knew why listing all data from database ain't work. (missed while function !)
but that's another part of me .. haha ..tnx for that one :p
This is ten percent luck, twenty percent skill
Fifteen percent concentrated power of will
Five percent pleasure, fifty percent pain
And a hundred percent reason to remember the name!
My java scripts isOriginally Posted by just_m3. [Only registered and activated users can see links. Click Here To Register...]
andCode:<script type="text/javascript"> function top() { window.open("http://google.com","funlive","width=1%, height=1%, toolbar=no,location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, copyhistory=yes"); } </script>this code also Fatal error..PHP Code:echo "<a href='".$file."' onclick='".top()."'>-Download Now-</a>";
Please help me.
use my second post![]()
That showOriginally Posted by something else [Only registered and activated users can see links. Click Here To Register...]
Code:Fatal error: Call to undefined function top() in /home/mysite/public_html/a/file.php on line 55
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks