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 5998351
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T00:23:39+00:00 2026-05-23T00:23:39+00:00

I have a script in kohana which runs fine on php 5.2.11. I took

  • 0

I have a script in kohana which runs fine on php 5.2.11. I took out a line for mysql_select_tables using a mysql_query. When I put it on a php 5.3 server, I get the following errors:

Warning Message

An error was detected which prevented the loading of this page. If this problem persists, please contact the website administrator.
system/libraries/drivers/Database/Mysql.php [483]:
mysql_data_seek() expects parameter 2 to be long, string given
Stack Trace

system/libraries/drivers/Database/Mysql.php [483]:
mysql_data_seek( Resource id #39, mysql_fetch_array )
system/libraries/drivers/Database.php [558]:
Mysql_Result->seek( mysql_fetch_array )
application/views/right_menu.php [33]:
Database_Result->offsetGet( mysql_fetch_array )
system/libraries/Controller.php [74]:
include( application/views/right_menu.php )

I wonder if this is a seperate issue concerning php 5.2 vs. 5.3, or a result of replacing mysql_list_tables with a mysql_query(“SHOW TABLES…”)? It seems to be a problem with a string called mysql_fetch_array being sent to mysql_data_seek for the second parameter instead of a long, although this works in 5.2. Thanks.

  • 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-05-23T00:23:39+00:00Added an answer on May 23, 2026 at 12:23 am

    The following function has been deprecated in 5.3 Please see the manual for other alternative https://www.php.net/manual/en/function.mysql-list-tables.php

    According to php manual "This function is deprecated. It is preferable to use mysql_query() to issue an SQL SHOW TABLES [FROM db_name] [LIKE ‘pattern’] statement instead"

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

Sidebar

Related Questions

I have an issue in a PHP script which checks if the tax number
I have script which allows to display Bing search results. I can call for
I have a script that connects to SQL Server 2005 default instance. But I'm
I have this script which basically toggles a bgColor class on and off so
I have script which allows the user to choose an image and write something
i have script <?php $to = $_GET[to]; header(Location: $to); ?> if i call script
I am using https with php and have a few security questions: +I saw
I am using code straight out of a kohana guide for securing websites based
I have script called Script.php and tests for it in Tests/Script.php, but when I
Say I have script, that does long polling on server to check if user

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.