Jump to content

ShadwSrch

New Members
  • Posts

    8
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

ShadwSrch's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Alright...after adding the phpinfo() to the file...and accessing with Firefox, it now works on both Firefox and IE... I guess it is good that I don't have the problem anymore, but I wish I knew what the problem was... Thanks for your time.
  2. turns out the code is <?php phpinfo(); ?> ...and not "php_info" Mine returns the following: PHP Version 5.2.6-1+lenny2 followed by the rest... In case it helps, here are the 2 files: teamentry.php: <html> <head> <title>Update Database</title> </head> <body> <form method="post" action="updateteam.php"> <label for="txtName">Name:</label> <input type="text" size="25" name="Name" id="txtName"/> <br /> <label for="txtGrad">GradYear:</label> <input type="text" size="4" name="GradYear" id="txtGrad"/> <label for="txtTeam">Team:</label> <input type="text" size="4" name="Team" id="txtTeam"/> <br /> <input type="submit" value="Add Record"/> </form> <?php phpinfo(); ?> </body> </html> updateteam.php: <?php $Name = $_POST['Name']; $GradYear = $_POST['GradYear']; $Team = $_POST['Team']; mysql_connect("localhost","php","phpMySQ1") or die ('Error: ' . mysql_error()); mysql_select_db ("php_test"); $query="INSERT INTO teaminfo (id, name, grad, team) VALUES ('NULL','".$Name."', '".$GradYear."', '".$Team."')"; mysql_query($query) or die ('Error updating database'); echo "Database Updated With: " .$Name. " ," . $GradYear; ?> any other ideas?
  3. Got most of this here: http://www.webmasterworld.com/forum10/5090.htm Make a text file that contains your ftp instructions... OPEN ftp.yourhost.com mylogin mypassword binary MPUT c:\myphp.php BYE Make a.bat file that executes it... ftp -i -s:C:\script_daily.ftp Then execute the.bat file. It occurs to me that having this file locally might be safer than having something that will upload to your host.
  4. It is on a server at work...I'm home now...I will check tomorrow...thanks for the help...
  5. The file with the code in it is a .php file.... No php in it, though...just html
  6. I am new to .php... I have a form that I am using (really just experimenting with)... <form method="post" action="updatedatabase.php" /> ...some text boxes <input type="sumit" value="Submit" /> The updatedatabase.php file is layed out like this: <?php some code ?> I don't have any other elements in it. When I click the submit button, IE tries to download updatedatabase.php. I copied the code from a tutorial somewhere, but I can't seem to remember where I got it...I can post the code if needed, but I didn't think it was relevant to the behavior... Any Ideas why this is happening?
  7. First, let me thank you for your reply. It does answer my question... Here is an EXTREMELY simplified portion of the page: <td id="left"> <?php mosLoadModules('left', -2); ?> </td> <td id="middle"> <?php mosMainbody(); ?> </td> <td id="right"> <?php mosLoadModules('right', -2); ?> </td> I did know that the center section was processed after the Left side...I just thought I read somewhere that you could use a variable before a value was assigned to it...I thought that it was strange, but it seems that either I misread it, or they were wrong. As is usually the case, I need to rethink my problem. I will see if the designation for the article content changes when it is edited, and if not I will try to use that. Thanks again.
  8. I am new to .php. I seem to remember that the script is parsed before it is run, so you can define a variable value after it is used...This seems counterintuitive, so I don't know if I am remembering correctly, or if I missinterpreted what I read. In any case, I can not seem to come up with a good way to word a search to find the answer. I am using a content management system (Joomla!)...the system sets up a standard 3 column layout. Modules can be placed in the left hand column, and the content is generated in the center column. I want to write a module (Left hand column) that queries the database based on the content page (center column). This causes the module to be generated before the content. Can I dynamically put information into the module using a variable that is set in the content itself? Specifically, I want to put a team roster up for the team chosen. The content page shows the team's schedule and picture, and the roster goes on the left of the content. I can statically create a module for each team's page, but I wanted to do it dynamically. Any help would be appreciated, and let me know if I need to clarify anything. BTW...any further questions about this project will be separate manageable posts...I hate it when someone uses one thread to work through a huge project...
×
×
  • 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.