Jump to content
UBot Underground

[Solved]How To Pass Variable From CSV File


Recommended Posts

any help appreciated, thanks

 

I want to store a variable name to use in a script [(#name) for example] in a csv file and pass a script generated value to it, like so

csv file has:

row0:John,<br />"is related to {#name}",{#posts},{#location}

row1:Jane,<br />"is following {#name}",{#posts},{#location}

etc...

 

in the script:

set(#name, "Jimmy", "Global")

then use the &table cell as a variable in the script, does this make sense?

 

however, when I call it in the script they just show as #name, #posts and #location and don't inherit the values in the script

 

I must be doing something wrong?

Or is there a trick/syntax to doing this?

Link to post
Share on other sites

haha utter bollocks :D

 

it's not complicated just i am useless at explaining stuff and yea coming back and re-reading this i also dont understand what i mean :)

 

i want to have html stored in a csv file

in the csv file store the variable names {#name},{#posts}, {#location} within html

 

like for example the html stored in the csv file would be:

 

{#name} from <a title="{#name} made {#posts}" href="http://mysite.com/{#location}/{#name}/">{#location}</a> made {#posts} in {#month}

 

but when i call that $table cell into the script only #name #location #posts appears like this:

 

#name from #location made #posts in #month

 

and not the values of those variables in the script

 

make sense?

Link to post
Share on other sites

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.   Paste as plain text instead

  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.

Loading...
×
×
  • Create New...