Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8967725
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T17:18:35+00:00 2026-06-15T17:18:35+00:00

I recently went from phpmyadmin 2.6 to 5.1, also installed wamp…I know long time

  • 0

I recently went from phpmyadmin 2.6 to 5.1, also installed wamp…I know long time coming.
I have a webform with simple variables and they are no longer inserting into my database

<form method="POST" action="record.php">

 td style="width: 472px">
    <input type=text name=travel size=40 style="color: black;background-color:#FFFF66; width: 270px;"></td>
    </tr>

and the insert php:::

<?
$travel=$_POST['travel'];
$db="xacall";

$link = mysql_connect("localhost", "sql", "sql");
//$link = mysql_connect("localhost",$_POST['username'],$_POST['password']);
if (! $link)
die("Couldn't connect to MySQL");
mysql_select_db($db , $link) or die("Select Error: ".mysql_error());
$result=mysql_query("INSERT INTO ircb (travel) VALUES ('$travel')")or die("Insert Error: ".mysql_error());

//write to file
$fp = fopen("IR_Call_Entries.txt", "a"); 
fwrite($fp, $_POST['travel'] . "\n" . 
close($fp);

?>

I submit , get no error message..but nothing is eneterd and nothing is written…is POST wrong..should I use GET ??? arrgh, confused, thanks
I have also echo’ed the variable and nothing shows

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T17:18:36+00:00Added an answer on June 15, 2026 at 5:18 pm

    Use the form as:

    <form method="post" action="record.php">
    
    <td style="width: 472px">
    <input type="text" name="travel" size="40" style="color: black;background-color:#FFFF66; width: 270px;"></td>
    </tr>
    

    And also debug the post variable with: print_r($_POST)

        <?php #Please use full open tag.
        $travel=$_POST['travel'];
        $db='xacall';
    
        $link = mysql_connect('localhost', 'sql', 'sql') or die("Couldn't connect to MySQL");
        mysql_select_db($db , $link) or die('Select Error: '.mysql_error());
        $result=mysql_query("INSERT INTO ircb (travel) VALUES ('$travel')")or die('Insert Error: '.mysql_error());
    
    
       print_r($_POST);
    
       #write to file
       $fp = fopen('IR_Call_Entries.txt', 'a'); 
       fwrite($fp, $_POST['travel'] . '\n' ; #you had a concat sign here? 
       close($fp);
       ?>
    

    I have also used single quotes as much as possible.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have recently picked up a project from a few months ago. Went to
i've recently released an app to the App store, i went to have a
I recently reinstalled my development machine and went from 32 bit Windows Vista to
I have recently implemented Django's excellent cache framework. However from what I understand Django
I have recently started studying Google Web Toolkit. I have went through some walkthroughs,
I recently went from a 32bit laptop to a 64bit desktop (both win7). I
I have recently started making (and am still making) the transition from ActionScript 2
Safari recently went to version 6 (Lion/Mtn Lion) and they've changed over from the
Hello i have recently changed a theme i have from fluid width to fixed
I have recently implemented an MVC3 website and had to now include data from

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.