Jump to content

Recommended Posts

Yes, I am in over my head with a project and I need some help.  I have been slowly learning on my own but a good friend came to me with a script and asked me to modify it... the page is kind of long, but here are the parts I think are relevant...

 

[pre]

$seekthis = (int) get_param("seeking", 1);

echo 'look for: ' .$seekthis;

[/pre]

returns "look for:5"

 

[pre]

p_orientation=" . to_sql(DB::result("SELECT id FROM const_orientation WHERE id=" . get_param("seeking", 1), "Number"), "Number") . ",

[/pre]

or equivalently (I tried both ways)

[pre]

p_orientation=" . to_sql($seekthis, "Number") . ",

[/pre]

these yield 0 in my the field named p_orientation

 

the statement replaced

[pre]

p_orientation=" . to_sql(DB::result("SELECT search FROM const_orientation WHERE id=" . to_sql(get_session("j_orientation"), "Number")), "Number") . ",

[/pre]

this second statement was using a variable which has no more use, but did perform it's alotted function.

 

if there are other relevant statements I am missing, please msg me if you can take a bit of time to  help.

Link to comment
https://forums.phpfreaks.com/topic/54673-in-over-my-head/
Share on other sites

get_param() I have found references too as part of a library

the other is a rather simple lib function which can been see here:

http://www.railsapi.org/activerecord-connectionadapters-tabledefinition-to_sql

This was a purchase by a friend who spent $600 to get 95% of the functionality he wanted and I'm just trying to finish things off for him...

 

Link to comment
https://forums.phpfreaks.com/topic/54673-in-over-my-head/#findComment-270416
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.