Jump to content

linux1880

Members
  • Posts

    136
  • Joined

  • Last visited

Profile Information

  • Gender
    Not Telling

linux1880's Achievements

Regular Member

Regular Member (3/5)

0

Reputation

  1. In my mysql database field the unicode text are like this काठमाडौà¤, २४ माघ / संविधानसभा सदसà¥à¤¯à¤•à¥‹ रिकà¥à¤¤ ६ सिटका लागि आगामी चैत २८ गते हà¥à¤¨à¥‡ But when the above text is outputted in browser it is properly formatted unicode chatracters in my old website. I have written new php 5.3 website and echo the avove text , i get exactly same as above which is unreadable to visitors. I also have header as <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> still no luck. I am wondering how the above text has rendered correctly on old site and not in new site ? I don't see any special function used in old site either. I am sure someone can help me out on this. Thanks
  2. i have a news site and some of my partners want to include latest news. They are doing that with iframe at the moment but they are asking for javascript version so that they can style div, please help me how do i do it in javascript ? my current script is like this <iframe height="30%" width="50%" scrolling="no" frameborder="0" src="http://mysite.com/latestnews.php"></iframe>
  3. Hi friends i have latest rss news feed im my php site, i would like to share latest 5 rss feed so some of our partners can publish in thier site . How to do it ?
  4. hi all, i did setup a development server where we can upload php scripts in a network, the problem is script gets error cannot access database although all the db settings are correct pls help
  5. I have the code below. I would like to insert value in the middle of array without losing any value or original arrays that are comeing from db tables. For example i want to put adverts after 3rd row. How do i achieve it pls help <table width="95%" border="0" cellspacing="0" cellpadding="0" class="programs"> <?php foreach($albums as $k => $v){ echo $v['title'].'-'.$v['description'].'<br/>'; } ?> </table>
  6. how to set default controller in codeigniter based on cookie value ?
  7. Thanks a lot , it is working for single question, bot not when i have multiple questions and answers. Could you pls give me a hint what am i missing ? Thanks
  8. my controller is $data['qna'] = $this->Ivote_model->get_qa(); view foreach($qna as $k=>$v){ echo $v['question']. '<br/>'; echo '-' .$v['answer'] . '<br/>'; model function get_qa(){ $data = array(); $this->db->select('*'); $this->db->where('v_questions.id',1); $this->db->from('v_answers'); $this->db->join('v_questions','v_questions.id = v_answers.question_id'); $q = $this->db->get(); if($q->num_rows > 0){ foreach($q->result_array() as $row){ $data[] = $row; } } $q->free_result(); return $data; } my html page shows What is your favorite food? -Sushi What is your favorite food? -Burgers What is your favorite food? -kodo what i want is What is your favorite food? -Sushi -Burgers -koddo please help me how do i achieve that ?
  9. I have written a voting script where we can view a total number of votes per choices ? How do i show the voting result as percentage ?
  10. Thanks suresh, I really appreceate for your help for my little knowledge, what if i have to keep track of votes for multiple questions ? above sounds fantastic for single question , or am i missing something ?
  11. I am building a poll survey database when user will choose answer from multiple question and before submission he will enter his name and email address. I woulld like to find the votes based on user, who gave vote to which question. so far i made 2 tables: question and answer. questions fields = id, question answers fields = id, answer, question_id, votes Please help me how do i go forward, Thanks
  12. how do i pass multiple function in codeigniter uri segment in controler/method like index.php?cat=2&action=edit&group=3&viz=blah
  13. why i am getting b is null error ? <html> <head> <meta http-equiv="Content-type" content="text/html; charset=utf-8"> <title>createelement</title> <script type="text/javascript" charset="utf-8"> var b = document.getElementById('clickme'), count = 0; b.onclick = function () { count += 1; b.innerHTML = "Click me: " + count; }; </script> </head> <body> <button id="clickme">click me </button> </body> </html>
  14. is this javascript object or function ? var test = { name: 'me', age: 23, parent: function(){ var x = 'sabai'; return x; }, }; document.write(test.parent());
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.