Skip to main content

Posts

app application request popup filter users

Is it possible to invite only girls to my app in FB.ui popup ? thank You for any suggestions, if not tneh maybe there is any other solution available ? User is in the app. There is invite friends button with jscode: $('#btnInvite').bind("click", function(){ FB.ui({method:'apprequests',title:'test',message:'test',data:'test'}); }) And then popup with friends appears to be selected. Is it possible to filter this list only to female users (app is dedicated for girls)

How to manipulate a rowset data from sql to php

I have asked a question about how to retrieve data from different tables in sql How to get data from 4 tables in 1 sql query? When I run the query for my sample data I get 3 rows, anyway being many-to-many relationship between courses and categories I will always get more rows for same course. My question is how do I handle this data in PHP? I get an array and what I want would be something like: Array ( [0] => stdClass Object ( [name] => course name [tutor] => tutor name [categories] => Array ( categories here ) ); Should I just fetch the data from the categories in a foreach loop after I fetch a course? That would mean bad performance for large amount of data.

PHP query does not return result

This query is not returning any result as there seems to be an issue with the sql. $sql = "select region_description from $DB_Table where region_id='".$region_id."' and region_status =(1)"; $res = mysql_query($sql,$con) or die(mysql_error()); $result = "( "; $row = mysql_fetch_array($res); $result .= "\"" . $row["region_description"] . "\""; while($row = mysql_fetch_array($res)) { echo "<br /> In!"; $result .= " , \"" . $row["region_description"] . "\""; } $result .= " )"; mysql_close($con); if ($result) { return $result; } else { return 0; } region_id is passed as 1. I do have a record in the DB that fits the query criteria but no rows are returned when executed. I beleive the issue is in this part , region_id='".$region_id."' so on using the gettype function in my php it turns out that the datatype of reg

special character like " not showing properly in pdf

I using html2fpdf library to generate a pdf in codeigniter .I have some data in a varchar field like " What are your child’s academic strengths? " which is showing like " What are your child’s academic strengths? " . How I can show it as it is in the database .(I have tried htmlspecialchars_decode , html_entity_decode function but it not worked. )

creating my own library in symfony 2

I'm trying to create my own library in a Symfony2 project but I'm having a hard time doing so... Basically I want to reuse an FTP browser class I made for another project. I copied the class into /vendor/mylib and tried to autoload it like that $loader->registerPrefixes(array( 'Twig_Extensions_' => __DIR__.'/../vendor/twig-extensions/lib', 'Twig_' => __DIR__.'/../vendor/twig/lib', 'Mylib_' => __DIR__.'/../vendor/mylib' )); I then tried to instantiate a Mylib_Test object inside my bundle's controller and I got this error : Fatal error: Class 'Test\FrontBundle\Controller\Mylib_Test' not found in /Applications/MAMP/htdocs/sf2_project/src/Test/FrontBundle/Controller/WelcomeController.php on line 26 Anyone has an idea on how to do this ?

How do I make a GUI that looks like the attached picture of a simple stock market app?

Using these layouts; FlowLayout, BoxLayout, GridLayout, BorderLayout and GridBagLayout im trying to make my GUI look like below. I tried Flow, Grid and Border but I couldn't make it look the same.