GIDForums  

Go Back   GIDForums > Computer Programming Forums > MySQL / PHP Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 04-Oct-2005, 08:31
amjelnes amjelnes is offline
New Member
 
Join Date: Oct 2005
Posts: 3
amjelnes is on a distinguished road
Unhappy

Cannot get syntax right....


I cannot seem to get this line of code to work properly:
PHP Code:

<? $link->doLink($_SERVER['PHP_SELF'].'?order=start_date&amp;vert=ASC', '".$conf['ui']['AscendImage']."', '', '', translate('Sort by ascending date')) ?>


I know it´s the
PHP Code:

'".$conf['ui']['AscendImage']."' 


part that's causing me trouble but how do I correct it??
  #2  
Old 04-Oct-2005, 08:42
admin's Avatar
admin admin is offline
Administrator
 
Join Date: Sep 2002
Posts: 841
admin will become famous soon enough

Re: Cannot get syntax right....


Hello amjelnes,

The string '".$conf['ui']['AscendImage']."' doesn't make sense as a parameter value.

Try removing the single and double quotes, i.e.

PHP Code:

<?php$link->doLink(  $_SERVER['PHP_SELF'].'?order=start_date&amp;vert=ASC',                $conf['ui']['AscendImage'],                '',                '',                translate('Sort by ascending date')  )?>

__________________
Custom BB codes you can use here:
[HTML] | [C++] | [CSS] | [JAVA] | [PY] | [VB]
  #3  
Old 04-Oct-2005, 08:47
amjelnes amjelnes is offline
New Member
 
Join Date: Oct 2005
Posts: 3
amjelnes is on a distinguished road

Re: Cannot get syntax right....


Hmmmm seems I have a lot to learn thanx alot!!
  #4  
Old 04-Oct-2005, 08:52
admin's Avatar
admin admin is offline
Administrator
 
Join Date: Sep 2002
Posts: 841
admin will become famous soon enough

Re: Cannot get syntax right....


Hehehe... we have all been there.

You reminded me of those days when I used to "experiment" modifying perl scripts -- I had no idea what I was doing half the time!
__________________
Custom BB codes you can use here:
[HTML] | [C++] | [CSS] | [JAVA] | [PY] | [VB]
  #5  
Old 04-Oct-2005, 13:49
amjelnes amjelnes is offline
New Member
 
Join Date: Oct 2005
Posts: 3
amjelnes is on a distinguished road

Re: Cannot get syntax right....


LOL you are describing my situation scaringly accurate.

BTW It all had to do with getting icons appear in phpScheduleIt instead of [+] and [-].

While I was at it I thought I could just as well add the icons via the configuration file thus making it easier for the end user to customize the looks .

So now I can make my first contribution to the Open Source community thanks to you..... that has to make you proud ;-)
 
 

Recent GIDBlogToyota - 2009 May Promotion by Nihal

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Winsock error when compiling FLTK 2.0 Projects mauriciorossi FLTK Forum 3 16-Aug-2005 11:18
Help with syntax errors PeteGallo C Programming Language 7 08-Aug-2005 21:30
C++ PhoneBook marita C++ Forum 46 12-Jun-2005 13:10
syntax error ??? crq C++ Forum 2 23-Jan-2005 17:57
Hmm what seems to be the problem here? error C2061: syntax error pablowablo C++ Forum 5 12-Jun-2004 23:11

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 22:50.


vBulletin, Copyright © 2000 - 2009, Jelsoft Enterprises Ltd.