php query help - Printable Version -Shoutbox (https://shoutbox.menthix.net) +-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58) +--- Forum: Skype & Technology (/forumdisplay.php?fid=9) +---- Forum: Tech Talk (/forumdisplay.php?fid=17) +----- Thread: php query help (/showthread.php?tid=48458) php query help by Ezra on 08-03-2005 at 07:49 PM
I'm trying to make a interactive page and made a function to query a string from my database. code: however, I want to add it to my database. like this: code: It's kinda hard to explain , I hope someone understands me and can help me... I just want to be abled to type in my database: title_query(3) and the ouput on the website should be the result of the title_query(3) RE: php str_replace help by Veggie on 08-03-2005 at 07:52 PM hhmm i dont really foolow, what has this got to do with str_replace? RE: php str_replace help by Ezra on 08-03-2005 at 07:54 PM AH, right, well... forgot to say, I was trying to work with str_replace to let it work, but I thought maybe someone here knows another way. RE: php query help by Veggie on 08-03-2005 at 07:56 PM from the look of that little picture you will need 3 quierys, are you using MYSQL? RE: php query help by Eljay on 08-03-2005 at 07:57 PM i dont get why you need to insert it and get it back out again, if youre inserting it you obviously have it in a variable so why not just output it normally? RE: php query help by Ezra on 08-03-2005 at 07:58 PM
That's not really what I mean, and yes I use MySql. quote: Because all the data is in the database, and for every id I need a different query, like title_query(3) or title_query(4) RE: php query help by Veggie on 08-03-2005 at 07:59 PM
quote:as far as i know theres no internal function 'title_query' so i asume thats your php function. code:to help theres a basic sql query RE: php query help by Ezra on 08-03-2005 at 08:04 PM
Well... I have a basic lay-out and all the data is in the database. And if you change the id number the data changes but not the lay-out. code: At the first link where it says title_query()(3), I want it to change to the title of the movie, that is stored in the database with that query EDIT: Basicly I want to store a piece of my php code in my database to be executed later RE: php query help by Ezra on 08-03-2005 at 11:19 PM
I tried and tried and tried, and couldn't get it working... RE: php query help by jren207 on 08-04-2005 at 01:31 AM
code: RE: php query help by Ezra on 08-04-2005 at 01:20 PM
I had that already working , but my problem was that I had to store a part of the php code in the database and it wouldn't execute that part. code: RE: php query help by Eljay on 08-04-2005 at 01:37 PM |