Jump to content

Orphy

New Members
  • Posts

    8
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

Orphy's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Hi I need to parse url defined by the user. SO far I used the parser magpiesrss ...works for a single url but not when I tried to make it a varible. so this is the url View RSS Feed [a href=\"http://finance.yahoo.com/rss/headline?s=VARIABLE\" target=\"_blank\"]http://finance.yahoo.com/rss/headline?s=VARIABLE[/a] you see where it says variable, I want to get the user text and parse that url. Please tell me how I can do it.. and with what. Magpierss was able to parse single url, and when I define the variable with $usertext like this View RSS Feed [a href=\"http://finance.yahoo.com/rss/headline?s=$usertext\" target=\"_blank\"]http://finance.yahoo.com/rss/headline?s=$usertext[/a] it can't read it properly. Please tell me what I shoul do
  2. Hey gast, thank you very much for taking the time out to reply, Yes the code looks cleaner now. But I am still getting an error. Basically the error is in the whole php codes I think. Thats what I see in dreamweaver. Is the code logical? Basically what am I trying to do is, take the user's input and stick in the $search of yahoo url.
  3. Thank you swat, I will fix this and see what happens but before that I am getting error on "echo" line. Is that how it supposed to be given waht I want as mentioned above. I can follow logic but not syntax.
  4. [code]<HEAD> <TITLE>Test page</TITLE> </HEAD> <BODY> <FORM METHOD="get" ACTION="graphtest.html"> <INPUT TYPE=hidden NAME=choice VALUE=request> Type stock symbol(like: bby)   <INPUT TYPE="text" SIZE="20" NAME="search" VALUE=""> <INPUT TYPE="submit" VALUE="Search!"> </FORM> <?php if ($choice == request) { echo "<img src= "http://ichart.finance.yahoo.com/z? s=""$search""&t=1y&q=c&l=on&z=m&a=v&p=s/>"" }; ?> </BODY> </HTML> [/code] Please look at the echo feature, I do not know how to use the proper syntax . Basically I want a user to submit a symbol and I will give out the graph and that graph is in [a href=\"http://ichart.finance..\" target=\"_blank\"]http://ichart.finance..[/a]. url. The $search would be the input. So basically if someone typed BBY in the box, the output will give the graph of bby. Many thanks.
  5. [!--quoteo(post=358177:date=Mar 25 2006, 03:54 AM:name=draxxus)--][div class=\'quotetop\']QUOTE(draxxus @ Mar 25 2006, 03:54 AM) [snapback]358177[/snapback][/div][div class=\'quotemain\'][!--quotec--] Maybe write a local script to gather all the names? You can split the file names up into seperate strings wherever a "_" is. Then have another script append any neccessary info so that you could just copy/paste into sql. Only way I can think of :) [/quote] Hello draxxus, I do have a program to spit out the file name.... So for example, I can easily convert Publisher_Author_Date.pdf to the text Publisher_Author_DATE. Now what? I am totally new at this...has been only 2 days.. and already feel like giving up! How will I change Publisher_Author_Date to something something which then I can import to mysql table. Please tell me a step by step process.
  6. dear keeb, thank you for replying. It seems to me after reading a bit that I need to make a database. Forget my original question for now.... Is there a way to automatically create the database with Columns of Publisher, Date and subject given the file names are this way: Publlisher_Date_Subject.pdf
  7. Dear all, Will someone be kind enough to point me to the right examples to do the following: (I can follow examples and tweak it but can not write codes from scratch as it's been less than 2 days of php for me). I will forever be indebted to you. My "database base" is a bunch of pdf files (let say 1K) and each pdf file will be named this way: Subject_date_author I want to set up the site in a way, so that all I have to do is place new pdf files into the folder and the prgoram (php and mysql?) will automatically generate a webPAGE with each SUBJECT. and under subject - there will be the list of authors w/ date which will be a clickable pdf . Please advise on how I can tackle this project. I spent hour after hours searching the net to find similar examples. No luck!! Thank you
×
×
  • 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.