Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

bind_columns called with 1 values but 25 are needed

Status
Not open for further replies.

tagyourit

Technical User
Joined
Oct 20, 2008
Messages
22
Location
US
Getting the following error when running my query

DBD::mysql::st bind_columns failed: bind_columns called with 1 values but 25 are needed at ./getdata.pl line 42.

Is there a way for me to pull all the columns, but only print the five or six that I need witout having to bind each and every column?

I'm basically doing a select * from two tables and getting 25 columns back. I don't want to have to bind_columns(undef, \$col1, \$col2, \$col3.....all the way to 25 and then print only the first five or six.

 
can you post more code?

Look at selectall_hashref

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[noevil]
Travis - Those who say it cannot be done are usually interrupted by someone else doing it; Give the wrong symptoms, get the wrong solutions;
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top