Jump to content

pragan

Members
  • Posts

    11
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

pragan's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. I am just learning to understand PHP-Resque. I did follow the documentation here https://github.com/fridgegit/php-resque Based on the reading of the documentation, I am guessing that I have to set up a job using this command QUEUE=* PHP resuqe.php I tried this command for the demo https://github.com/fridgegit/php-resque/tree/master/demo but I don't see anything as output other than *** Starting worker abcd-65a2ff3d76.abcd.local:34171:* I just see this for long time and I had to abort. Can you please tell me how to run this demo and also if I can see some logging to understand how the queue system works? regards
  2. Hi, Please help me with this following php html form. I can pass the text field variable to the php page but not able to figure out how to do the same when an image is just selected. without using radio buttons or checkboxes. I am not sure if all the images should be passed as hidden values...please guide me. question: I am trying to have a html form with 15 images and if an image is clicked, i am trying to show what they selected in the next page and then have a link in this page(i.e. php page) saying "click here to finish the selection" ..once they click this then I have to store this in the db. Scenario html code should have five images each having its name and value. form tag will have "submit.php", so when an image is clicked then the value is passed to the next page(i.e. in submit.php). Here i will have a link saying "click to finish" then this will show them a landing page(like finish.php) saying thanks and store that value in db..I am also trying to see the count for this image to see how many people selected this image.
  3. no its coming from google'e api which is basically written in JS and CSS. I said I want to use to php to get the iframe thing done if its possible as that's the language I can understand better with some guidance. thanks!!
  4. Hey, thanks for the reply. Here it is : http://www.investorguide.com/news.cgi If you scroll all the way down to the end where it says "Technology News", the news are coming from google's API. I want to show these pages with my iframe when its clicked. Javscript file is here : http://www.investorguide.com/js/googleapi/gsnewsbar.js Hope I am clear! regards Pragan.
  5. Hey Friends, I have a page in my website that shows result from google's api. It displays few links related to the search query. I want to show these new links in a page where I can have my iframe on the top. Is this something possible? This is the situation : News about bikes --here is the new info on bikes --Great bikes All the above news will be going to the respective landing page. These is generated from google's API(newsbar). When we click on the above news I want to open the links in a page where I can show my iframe on the top. Google API has the javascript included. The reason I am asking for php is because that's the scripting language I can work in and I can understand javascript to some extent. Please let me know if its possible and how to achieve it...also let me know if I need to be more clear. regards pragan
  6. Thank you so much! Its so clear now for me to understand then implement it. It worked right! I will save this thread. Let me know if I need to make this thread as "Solved" thanks everyone! regards pragan.
  7. thanks for the reply. I guess I have to use array_search as the text contents are stored in array format after I explode them. Again one more question : If I use array_search9$queryresult, $textcontents), its not doing the search but if I say the word directly array_search("testing", $textcontents) its able to say found/not found...Also I am getting the output like 7 times (i.e. found notfound not found..notfound..) I do not understand this. Please help me out.
  8. Hey Guys, I am trying to get the following code done but I am not able to proceed after some point. Please help me with this. I am trying to read a text file(contents is in this form: a,b,cde,fgh,) and then look for a string(obtained from a mysql query) in this text file. I am able to query the database and get the result, read the text file, explode it to get the words line by line but I am not able to match for the query result in the text file output. Please help me out Ex: If the query result has the value "cde" then I need to look in the text file and say word found else say not found. Waiting for any reply. regards pragan.
  9. Hi, I need help in the following things: We need to generate a report for the fields from the database. For example, StudentId Firstname Lastname Class 101 abc def First year 102 efg hjk Third year 103 lmn rst First year I need to wrtie a script using php that will change the text under the heading as below StudentId Firstname Lastname Class 101 abc def Freshman 102 efg hjk Junior 103 lmn rst Freshman So basicallly I need to change "First Year" to "Freshman" , "Third year" to "Junior" and we will have second year, foruth year also to change to sophomore and senior respectively. I wrote this two lines to change the text with "Freshman" in all the places to just see how custom scripts works in the thrid party software. $class = "Freshman"; $rows[0][3] ->val = $class; //this is the way I can call that column in this CRM software where I can define my scripts. StudentId Firstname Lastname Class 101 abc def Freshman 102 efg hjk Freshman 103 lmn rst Freshman But I could not figure out the id for the each different value under the column "Class" or how to change each different value under the column "Class". It would be great if any one can help me in knowing the array structure in PHP..I can think of a way that I can write four if else conditions as I will have Four different values for the column " Class". For example : if ($rows[0][3] ->val = "First year"; //(I know I should call it through an id than calling it first year but I am not able represent it.") { $rows[0][3] ->val = "Freshman" else { .... .... .... } } Please help me out. Thanks in advance Pragan
  10. Hi, I am creating a HTML form(form.html) for my friends to enter their details and that will be stored in the database(mysql). I need to have a login page that will have a common username/password so that I need have everyone of my friends to register.I found a log in script online and I can make it work but I have the following problem. If they type in that common username and password it will take them to the form.html and they can continue from there...but its so silly that they can just access that form.html if they just type the file name in the browser so my question is how to bring the log in screen if any one try to directly type the file name (mydomain.com/form.html) and display some warning/note message. Please help me out!! Thanks Pragan
×
×
  • 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.