Jump to content

wayne0126

New Members
  • Posts

    7
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

wayne0126's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. I don't know if these were the right terms for the title but there is something I'm not sure about. Is there a way for a script to automatically execute by itself by the server without any involvement of a user? Say for example, "At 5:00 pm every day, the server will automatically add 1 new row of information to the database table. After 7 days, there should now be at least 7 rows within the table." I'm not sure if thats the lingo you guys use around here or if this is the style how to explain things. But really just what Im asking is if a server can perform a php script by itself at a certain time every day that will make some sort of change to the database without the influence of say an administrator. And also, if this is possible, will it be difficult to do, and what exactly would it look like to create something like this.
  2. Hi, Im workin on like a small bbs thing where people can post/reply and add new topics. So far, I pretty much got most of the basic things to work except one thing which is adding new topics. Im not quite sure what to do about that. What I got is two tables in a database which are table_posts and table_topics. Both tables are set to auto increment for their id' fields and I think set them up pretty good. I can do replies to topics easily when someone posts a reply, it goes to the topic easily but adding new topics which adds a new topic and post with it seems to be like updating both tables at the same time. I dont know how to get around that. Like... Person A submits new topic. table_posts has received a new post row with id autoincremented to 3. At the same time table_topics has a new row in it with an id of 2 which receives the id of 3 from the new post on table_posts inserted into its field 'first_post_id'. When this part is done, the row in table_posts with the id of 3 has also its field updated 'topic_id' to 2. This in that now both tables are connected with the correct information. Does that make any sense?
  3. That one with the folders worked perfectly.
  4. Does anyone have a demo to look at for a very simple thumbnail generator for a jpg image? If a user uploads a jpg, and then a thumbnail is made of it.
  5. Hey <td colspan="7"><?php echo $month ?></td> You missed a spot. <td colspan="7"><?php echo $month; ?></td> The " ; " .
×
×
  • 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.