Jump to content

naimenim

New Members
  • Posts

    5
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

naimenim's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. <?php $a="Added Successfully"; ?> <script> function echoHello() { <?php hello(); ?>; } </script> <?php function hello() { mysql_query ("INSERT INTO `movies` (`movie_name`,`movie_added`) VALUES ('".mysql_real_escape_string($_POST['movie_name'])."',NOW())"); } ?> <input type="text" name="movie_name" /> <button onclick="echoHello()">Add</button> I have added this code into movies.php so that I could be able to add a title from this page. But, the text input box can't deliver the tiltle to the database, that is why when I click 'add', a new row is created but without any title. Even, a new row is created by every 'reload" of the page, I mean when I refresh this page, a new blank row is created. I guess, the text input doesn't work because it's in POST method....but I have to use javascript here. So, can you please tell me how to make the input work?FHHDTP
  2. If you call it freelancing, then I must be somewhere else like freelancer, elance or oDesk. I don't think this is a big deal and I didn't mean to ask you to write me the whole script. I wanted a code of simple list where I would be able to categorize and differentiate them into two or three types. I don't need to add summary, rating, cast, year blah blah...It's not a professional script. If it seems typical to you, then you are not the right person I'm looking for. I know this is a place of php gurus. So, I'm searching the guru who thinks it's easy and who is helpful enough. I could write some initial, but that would be a mess. So, I left it up to you if you think it really simple. Again, I need the structure of the system....not the whole... Come on...
  3. I should be able to store data by adding individual movie title like "Avatar (2009)" or comma separated titles like "Avatar (2009), Drive (2011), The Smurfs (2011)". The output will be a List like: 1. The Smurfs (2011) 2. Drive (2011) 3. Avatar (2009) * The order will be the Latest to Oldest, I mean If I add Drive (2011) yesterday and Avatar (2009) today, the list will look like: 1. The Avatar (2009) 2. Drive (2011) Each title should have a Check box with it so that the actions to categorize can be applied to individual or multiples. That's it.... Thank you very much for your interest. I'm looking forward to learn some knowledge from the code you will give...
  4. Well, I actually don't know php and mysql (very least). I just have the very basic knowledge of php like what's variable, function... I want this script to show the list on a html index page and there will be a php file to make it work and a simple sql database (may be just 3 tables). All I need is to categorize the titles in three or two types. Please, take a look on my idea again. And the matter of fact is I couldn't understand from where to start, that's why I haven't any code written. The list will be just on one page, no pagination..
  5. Hi there, I'm a movie freak and I'm planning of building a simple dynamic movie list. There are some movie lister software available on internet, but I want it lighter and customized. Here is the idea: It looks like yahoo mail inbox...I want to create this script based on php and sql. I think this is the right place where can I get some help. Thanks in advance. NaimeniM
×
×
  • 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.