Jump to content

fred asselyon

Members
  • Posts

    17
  • Joined

  • Last visited

Posts posted by fred asselyon

  1. Hi guys!I need help. I need to make a PHP script that will move the contents of a table to another table. I know i might do this with a loop, but i just want to know if there's a more effective way of doing that. Thanks guys. :)

  2. I have a textarea element with the id "post":<textarea id="post"></textarea>How can I create link (a bold link for example) that will insert into the textarea texts (like "" for example?) when I click it?Thanks in advance guys :)

  3. Hi!I've done some page designs in PHP, I tried it out and it worked okay. But when I want to validate it to the HTML validator at the W3C site, I'm confused! Should I just upload the php files? (it's a transitional document)

  4. Is there any way to send a variable from a text link without a form?For example, I have a link here:

    <a href="somefile.php">a hyperlink</a>

    I've read something about an url variable (i think it's related to GET method)Is there any way that i can make this link opens the url AND send a variable to it so that it can be processed by the "somefile.php"? Let's say that I have a variable $var_string. Can I make the link send the variable to it? If I can, how should I name it? should i use the _GET thing?

  5. Can I make a simple forum (no avatar and such, just making new topic and posting replies) application based on MySQL and PHP?This is my idea of the databases, i'm very green in databasing, i've learned some from Microsoft Access's lesson from school though:database one contains the topic name, topic ID, topic starter, number of replies, and date/time:

    ---------------------------------------------------------field name    |   primary key   |   type               |---------------------------------------------------------topic_ID      |   yes           | auto_increment |---------------------------------------------------------topic_name    |  no             | string               |---------------------------------------------------------topic_starter |  no             | string               |---------------------------------------------------------sum_replies   |  no             |  tinyint             |---------------------------------------------------------date/time     |  no             | date                |---------------------------------------------------------

    Then i have database two that contains the topic ID (to relates with database one), replies, name of replier, reply no., date and time of the replies:

    ---------------------------------------------------------field name       |  primary key     |   type           |---------------------------------------------------------topic_ID         |  yes                  | tinyint          |---------------------------------------------------------replies          |  no                   | string           |---------------------------------------------------------reply_by         |  no                   | string           |---------------------------------------------------------reply_no         |  no                   | int               |---------------------------------------------------------date_time        | no                    |  date           |---------------------------------------------------------

    I thought i'd just make a relationship between database one and two with the topic_ID. I know it's lame and slow, but I don't know how else to make a relationship between them.All i know is that each topic must has a table that contains the replies/posts data, but can you put a table inside a table?

  6. document.getElementById("java").attribute=value

    This really helps, thanks! :) What kind of text i should use to replace "attribute?"What is attribute? Sorry, but I'm so green in Javascripting...

  7. Let's say that i have a textbox with the name "java". I want to make a code that can compare the contents of that text box when people submit. I used the onsubmit to call a function in the head tag. But the problem is, I don't know what's the name of the textbox variable! should i use $java or what? I've noticed a website the uses "document.[name of the form].[value/name].checked" as variables that contains the boolean data from a radio button.

×
×
  • Create New...