Have you tried to updaten it to the latest version?
Also try ckEditor js code at the end of the html

You have written very confusing statements. You want to reset the timer for each question or questions continue to have same timer running. Share your relevant code to spot the correction required

Try $a=$jsn->{$i}; in the place of $a=$jsn[$i]->Pic;. let me know what happens. Also can you echo the output of json_decode()

I believe SSL is not required unless its a canvas app.

I suspect about ssl being mandatory to use facebook app.. couldn't locate any info page like this from the facebook dev site though yet..

I have a Premium SEO Pack – Wordpress Plugin installed and with its Facebook planner, we are supposed to authorize app after providing the initial settings.

I have provided all the settings correctly. Provided app id, app secret, app domain, site url (through add platform), settings->advanced->enabled browser OAuth login, provided Valid OAuth redirect URI http://example.org/psp_seo_fb_oauth .

But still I get the "Given URL is not allowed by the Application configuration: One or more of the given URLs is not allowed by the App's settings. It must match the Website URL or Canvas URL, or the domain must be a subdomain of one of the App's domains." error.

Also its not on localhost, but production server.

website url is example.org , oauth redirect url is example.org/psp_seo_fb_oauth , example.org added in app domains , add platform->site url included example.org . So there's no subdomain

I have checked this facebook.com/help/community/question/?id=542958419109491 already

I would appreciate your help. Thank you!

$query = "INSERT INTO booking  
            ) values ('$firstname', 

you were mixing insert and update syntax.

did you try removing an extra space in the query below -

$sql="SELECT * FROM schoolentry WHERE classs =".$q." and division =' ".$k."'";

should have been -

$sql="SELECT * FROM schoolentry WHERE classs =".$q." and division ='".$k."'";

thanks cereal. I still couldn't solve it by stored procedure way, so I modified it as a mysql event and its working now.

yes the connection is set like below and hence var_dump could output $conn details properly -

$conn = ADONewConnection();

$conn->Connect("$dbhost", "$dbuser", "$dbpassword", "$dbdb");

But there's an error now - "call to undefined method ADODB_mysqli::setAtribute() in .." on command prompt.
looks like it could be adodb version conflict for not having this method?
I have adodb V5.19

Thanks for the quick reply 'cereal'. User does have the execute privileges, as its a root user and while same user logged in through workbench could execute the procedure and get the message as 'OK'.

I tried to add try catch like above example -


echo 1;


echo 2;

    try {

        $ret = 'world';
        $sso = 'hello';

        $stmt1 = $conn->prepare("SET @test = ?");

        $stmt2 = $conn->prepare("CALL test_proc(?, @test)");

        $query = $conn->query("SELECT @test as result")->fetch(PDO::FETCH_OBJ);
        echo $query->result;

    } catch(PDOException $e) {
        echo $e->getMessage();

Exception is not sent to output but even before that oone strange thing happened, that '1' is sent to output but not '2'. which could mean there's a trouble executing $conn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); this itself.
while there is no error with $conn. var_dump outputs null error info like -

["connect_errno"]=> int(0) ["connect_error"]=> NULL ["errno"]=> int(0) ["error"]=> string(0) "" ["error_list"]=> array(0)

Thank you all for your replies. While I tried the solutions above, below works fine like before from mysql client (workbench) -

SET @test = 'world';
CALL test_prod('hello', @test);
SELECT @test;

and returns 'ok'. but from the php below is still not showing anything -

$ret = 'world';
$sso = 'hello';

$stmt1 = $conn->prepare("SET @test = ?");

$stmt2 = $conn->prepare("CALL test_proc(?, @test)");

$query = $conn->query("SELECT @test as result")->fetch(PDO::FETCH_OBJ);


echo $query->result;

what am I missing!

Below is not working either -

$data = $conn->query("call test_prod(‘502275248’, @message);")->fetchAll(PDO::FETCH_ASSOC);
$message = $conn->query("select @message;")->fetchAll(PDO::FETCH_ASSOC);
echo '<br />';
echo $message;

I have created a test procedure (for the sake of example to get this working) called test_proc like below -


CREATE DEFINER=`tloken`@`%` PROCEDURE `test_proc`(In user_id varchar(100), OUT message varchar(1000))

 set message ='OK';

and calling it from php test page like below -

    $sso = $_GET['sso'];
    $ret = '';
    echo $RepExecutQry = "call test_proc(?, ?)";

$stmt = $conn->Prepare($RepExecutQry);

$stmt->bindParam(1, $sso, PDO::PARAM_INT, 10);
$stmt->bindParam(2, $ret, PDO::PARAM_STR|PDO::PARAM_INPUT_OUTPUT, 32);


print "Values of bound parameters _after_ CALL:\n";
print "  1: {$ret} 2: {$sso}\n"     

Also tried the solution with bindValue(), but the procedure doesn't return anything.
$conn is a pdo connection object and created properly, tested with var_dump($conn) already.
any suggestions would be valued and appreciated. Thank you

you can try to do that by executing below query first - SET foreign_key_checks = 0;

I would suggest to check the file permissions on the target upload directory and make it writable.

you could hide all these notices by modifying the error reporting parameter as below, just for the current executing script, or directly on the server php.ini file error_reporting(E_ALL ^ E_NOTICE);

you need to use correct encoding type to display such characters.Please read about UTF-8 encoding type.Make sure you are trying to retrieve them in the correct encoding type as saved with some encoding type in the database

I guess there is no such inbuilt function in PHP, so you have to do it manually by creating a custom function of your choice. something like below -

$arr_find = array('!', '?');
$arr_replace = arrray('', '');
$processed_str = str_replace($arr_find, $arr_replace, $target_str);

@OsaMas, thanks for your reply.

can you put if(mysql_num_rows($result) > 0) before the while()

There's a typo in your first line. Also you are passing the parameter but not using it. Which is not a problem, but just to keep it clean, we can remove it too. Find the corrections below -

function checkIBAN()
                var iban = document.getElementById('IBAN').value.length;

                if (iban != 24)
                    alert('El format no és correcte');
                    return false;
                    return true;

and the trigger


this is been a suggested solution to get the font awesome icons work, as it involves the cross domain requests and firefox can't render them because of this. But the same works fine on chrome.
Please check the suggested solutions in the accepted answer in the below topic -

thank you pritaeas for your immediate help, although I could not try this solution. will try it soon. yes I missed to see the dot needs escaping.
but what about the header, will it be fine to include it here.

Hello All,
I need to modify the default settings for the filesMatch in the apache httpd.conf file from -

<FilesMatch "^\.ht">
Order allow,deny
Deny from all
Satisfy All

so that to also include -

<FilesMatch ".(eot|ttf|otf|woff)">
Header set Access-Control-Allow-Origin "*"

I would appreciate the suggestions, somehow the combination of these regular expressions is not working for me. I tried below -

<FilesMatch "^\.ht|.(eot|ttf|otf|woff)">
    Order allow,deny
    Deny from all
    Satisfy All
    Header set Access-Control-Allow-Origin "*"

Due to this, the server won't start complaining about header setting at the wrong place.

Thank you.

ok, I found this - http://davidwalsh.name/cdn-fonts

Now I am wondering how should we modify the default settings for the filesMatch in the conf file as -

<FilesMatch "^\.ht">
    Order allow,deny
    Deny from all
    Satisfy All

Need to include -

<FilesMatch ".(eot|ttf|otf|woff)">
    Header set Access-Control-Allow-Origin "*"

Thank you all for the nice suggestions, these options worked for me. but OsaMasw did you notice the fiddle example you gave does not work in the firefox 31 (latest version). I needed it to work in firefox primarily, although it works like a charm in chrome.

There's trouble in using font awesome icons as they suggest, so I am using them as below -

<i class="nimg nicon-ico_help_rnd_lg" style='color: #FFFFFF !important;' alt="Info" title="Color code information" onclick="info()"></i>

and style below -

.nimg {
    height: 37px;    
    width: 37px;
    float: left;
    /*display: table-cell;*/
    display: block;
    text-indent: -9999px;
    vertical-align: middle;
    /*border:1px solid #FFFFFF;*/
    position: relative;
    color: #FFFFFF !important;
    /*background-color: #FFFFFF !important;*/

    background: url("/img/plus27.svg") no-repeat scroll 0 50% / 37px 37px transparent;

since I am trying to output the icons on black background, I want them to be in white color. which I am not able to change despite using 'color: #FFFFFF;' on element.
I would appreciate the quick suggestions.
thank you!

I have come across another programming challenge again and hopefully I wont close the thread myself this time.
I am expecting good suggestions or examples from you to do this.
I want to build a (scrollable) nested list, from which children of two parents could get swapped after some validation.
I intend to save this modification in the database too but later. To start with jquery code will do.
I haven't come with any code yet, but since I started working this, soon I would post my progress here.

Your suggestions are well appreciated to get me started quickly on this.

Thank you

never mind,I could solve it. The problem was apache was not able to get the right copy of php.ini. So has to provide the php.ini in it's apache/bin folder and it works as expected now.