• Hi,

    Our website (www.lateshowuk.com) has an iframe in the sidebar for an Upcoming Shows box (www.lateshowuk.com/schedule.php).

    We would love to have this on there without needing to use an iframe – we have tried an ‘insert’ php command but it brings up a “”Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in…” error on the sidebar.

    Any ideas on how to do this properly?

    Thanks. 🙂

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter lateshowuk

    (@lateshowuk)

    Can anyone help me out with this? Please?

    the problem is that you are opening up another mysql connection within your schedule.php .. its an often discussed problem on here.

    So, you either rewrite what you are using so that it doesnt have to open another connection, or you do what you are doing, or maybe instead of including a file that is attempting to make an sql connection, include just the results, again that requires adjusting schedule.php

    (my 3 suggestions)

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Insert php file into sidebar’ is closed to new replies.