1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Please help me: Fatal error: Call to undefined function virtual()

Discussion in 'Programming' started by FireFlywins, Dec 16, 2008.

  1. #1
    I am working in Dreamweaver with PHP MySQL.

    I inserted a record through 'Record Insertion Form Wizard'and when I ran the page through the web server, it is showing this error:

    Fatal error: Call to undefined function virtual() in /home/aircraft/public_html/Content Writing/coa/insertassignment.php on line 1


    Have a look at the first few lines:

    <?php virtual('/Connections/connAircraft.php'); ?>
    <?php
    if (!function_exists("GetSQLValueString")) {
    function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
    {
    if (PHP_VERSION < 6) {
    $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
    }

    Now you will be surprised to know that I can see the records in the table when I am testing recordset by double clicking it in 'Bindings' and then clicking 'test'. So, this means it is connecting to the server through the same code, but when I am running the page, it is giving this error.

    I also replaced require_once and include in the place of virtual but then it is giving error.

    Someone please help me.

    Thank you.

    Regards,

    Manoj
     
    FireFlywins, Dec 16, 2008 IP
  2. misbah

    misbah Active Member

    Messages:
    265
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    68
    #2
    why you replaced include or require function to virtual ?
     
    misbah, Dec 17, 2008 IP
  3. FireFlywins

    FireFlywins Peon

    Messages:
    11
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Because, somewhere in forums I read that if I do that then it will work. Simple :). What do you think of solution? How can we overcome this challenge?
     
    FireFlywins, Dec 17, 2008 IP
  4. harrisunderwork

    harrisunderwork Well-Known Member

    Messages:
    1,005
    Likes Received:
    21
    Best Answers:
    0
    Trophy Points:
    135
    #4
    Use include or require instead of virtual.
     
    harrisunderwork, Dec 17, 2008 IP