Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here


Works on WAMP but not on remote server

Works on WAMP but not on remote server

Works on WAMP but not on remote server

I have WAMP (PHP Version 5.5.12) running on my machine. My program works on WAMP but when I run program on remote server (PHP Version 5.4.32) I get following error:


Array ( [0] => 42S22 [1] => 1054 [2] => Unknown column 'address' in 'field list' )

I am trying to transfer details from a form to a database. I don't know if the problem is related to following input on form:

CODE -->

Address:<br> <textarea name="address" rows="3" cols="25" WRAP="hard"><?php echo escape(Input::get('address')); ?> </textarea> 

Input::get($item) returns $_POST[$item] if it is set. Other entries are like:

CODE -->

Last name: <input type="text" name="last_name" value="<?php echo escape(Input::get('last_name')); ?>"> 

and do not create problems. I have tried using print_r($e->errorInfo()); in my catch statement:

CODE -->

catch(Exception $e)
       { die($e->getMessage());

but that doesn't work. I don't know if I am using it correctly or not. Could someone offer a suggestion. I would be very grateful.

RE: Works on WAMP but not on remote server

that suggests that there is no field called 'address' in the database table.

RE: Works on WAMP but not on remote server

You may have a column named "Address" instead of "address".

By default, Windows' MySQL (in WAMP) is not case sensitive. Your production server probably is.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close