I want to get sum of estimate quantity from estimates table gropBy material_id. Also want get sum of mprs quantity related to previous query table. My estimates table is as below | id | project_id | material_id | estimatequantity | | 1 | 1 | 1 | 500 | | 2 | 1 | 2 | 899 | | 3 | 1 | 1 | 250 | and my mprs table is as below | id | estimate_id | mprquantity | | --- | --- | --- | | 1 | 1 | 334 | | 2 | 1 | …

Member Avatar
Member Avatar
+0 forum 1

Hi I m developing a mobile apps which will fetch json data from my server. My server address is http://need4engineer.com/api.php this is not working. But same data from another server https://randomuser.me/api/?results=5 is working well. Both the cases header is same. Please help me

Member Avatar
Member Avatar
+0 forum 3

Hi I m using a jquery plugin for autocomplete multiselect. Plugin link is http://www.jqueryrain.com/?Bxwy2bPt Now I want to submit this selected item to page. How can I do that. Plz help.

Member Avatar
+0 forum 0

Hi I have a page named 'xyz'. and I have a webpage xyz.com Now I want that visitor must like my page to view my web site. So I need a code which will check whether my page has been liked by user or not. NB: I dont have any ssl in my site. Plz help me. Thnx

Member Avatar
Member Avatar
+0 forum 3

Hi I want that a div will be shown if a specific facebook page is not liked. Say I have a page facebook.com/abcd Now I want that if visitor liked the page then show content otherwise it will show like button. How can I do that. plz help

Member Avatar
Member Avatar
+0 forum 1

Hello everyone I have a web form. This form has 5 fields. I want that if someone fill up the form and submit, this form data will be save to a form. Also want this after submitting this form it will do some php process. How can I do that ? thanks

Member Avatar
Member Avatar
+0 forum 1

Hi I want to make a dictionry using html5. For example I have words 1. good 2. bad 3. hot 4. cold Now I want that in index page this words will be shown as 3 column. If I click on any word, the meaning of the word should display. Meaning can be displayed in a div or as popup. Please help me. Basicaly I want to make a important word dictionary in Beangali for mobile. Thankx

Member Avatar
Member Avatar
+0 forum 3

Hi I m a civil engineer. I have basic Idea in PHP and VB Now I want to make a civil engineering database software for PC windows. Which software will be good and easy for me. Thats mean Visual basic or any other softwaree. Please suggest me. Remember that I m not a good programmer and I need Database. Also I need good visualisation. Thanks

Member Avatar
Member Avatar
+0 forum 3

Hi I want to use htaccess rewrite, which will act as below 1. http://mysite.com/?sura=x as http://mysite.com/x 2. http://mysite.com/?sura=x as http://mysite.com/x/ 3. http://mysite.com/?sura=x&ayat=y as http://mysite.com/x/y 4. http://mysite.com/?sura=x&ayat=y as http://mysite.com/x/y/ is it possible by htaccess ?? please help me

Member Avatar
Member Avatar
+0 forum 5

Hi I have a website. One can download books from this site. There r various books in various price. Now I want that user will pay to paypal and I will get the value of amount diposit. How can I do that. Thank u

Member Avatar
Member Avatar
+0 forum 1

Hi I have a site. Where user will write something. Then pay to paypal. and the content will be emailed to me afer payment confirmation of paypal. 1. I have php 2. I dont Mysql 3. Jquery can be used is it possible? plz help me

Member Avatar
Member Avatar
+0 forum 1

Hi I have an website. In this site client can pay for one Item via paypal. I made a paypam Ipn script. But its not working. can anybody help me. part of My code is <?php // read the post from PayPal system and add 'cmd' $req = 'cmd=_notify-validate'; foreach ($_POST as $key => $value) { $value = urlencode(stripslashes($value)); $req .= "&$key=$value"; } // post back to PayPal system to validate $header = "POST /cgi-bin/webscr HTTP/1.0\r\n"; $header .= "Content-Type: application/x-www-form-urlencoded\r\n"; $header .= "Content-Length: " . strlen($req) . "\r\n\r\n"; $fp = fsockopen ('ssl://www.paypal.com', 443, $errno, $errstr, 30); if (!$fp) { // …

Member Avatar
Member Avatar
+0 forum 1

Hi I want to develop page. Where there will be three mp3 files as audio. 1.mp3 , 2.mp3 & 3.mp3 files. and there will be three button. button 1 , 2 and 3. Initially button1 will be enabled and other two will be disable. then when user click on button 1. 1.mp3 file will start playing. and after finishing 1.mp3 button 2 will be enable. againg when user click on button 2 then 2.mp3 will start playing. and after finishing that button 3 will be enable and so on. How can I do that ? is there any advance code …

Member Avatar
Member Avatar
+0 forum 1

Hi I want to develop a facebook apps. Where it will take quiz, then merge profile picture in a certificate image. with result. the index.php file is as below <?php include_once "fbmain.php"; //if user is logged in and session is valid. if ($user){ //fql query example using legacy method call and passing parameter try{ $fql = "select name, hometown_location, sex, pic_square from user where uid=" . $user; //http://developers.facebook.com/docs/reference/fql/ $param = array( 'method' => 'fql.query', 'query' => $fql, 'callback' => '' ); $fqlResult = $facebook->api($param); } catch(Exception $o){ d($o); } } //set page to include default is home.php $page = isset($_REQUEST['page']) …

Member Avatar
Member Avatar
+0 forum 1

Hello I have a dictionary html5 apps. where I used datalist and autocomplete. When I click on submit button then its work fine. I want that when any Item is selected from the autocomplete list, it will work instant. So that no one need to click on extra button. is it possible ?

Member Avatar
Member Avatar
+0 forum 1

Hi I want to replace a word from text. I can do it with str_replace or str_ireplace. But I need more advance. for Example. my code is as below <?php $search_word=$_POST['gender']; $subject="Men and Women both r part of the world"; echo str_ireplace($search_word, '<span style="background:#0F0">' . $search_word . '</span>', $subject)."<br/>"; echo str_replace($search_word, '<span style="background:#0F0">' . $search_word . '</span>', $subject)."<br/>"; $search_1=str_replace($search_word, '<span style="background:#0F0">' . $search_word . '</span>', $subject)."<br/>"; $search_2=str_ireplace($search_word, '<span style="background:#0F0">' . $search_word . '</span>', $search_1)."<br/>"; echo $search_2; ?> in first echo it is showing Both 'Men' and 'men' background color changed but 'men' replaced to 'Men' in second echo it is …

Member Avatar
Member Avatar
+0 forum 3

<script type="text/javascript"> $("div #search_ayat_div").click(function(){ var link1='?verse='; var link2=$(this).html(); link=link1.concat(link2); link=link.replace(":","/"); window.location.replace(link); }); $("div #bookmark").click(function(){ var messageid = $(this).parent().children("#search_ayat_div").html(); var div_id=$(this).attr('id'); $.post("command.php",{ command:'bookmark', verse:messageid },function(result){ if(result=='yes'){ $(this).css({ "border":"medium solid #FF0000" }); alert("Successfully Bookmarked"); } if(result=='no'){ alert("Already Bookmarked"); } }); }); </script> Here at line 17 $(this) is not working. Remember there multiple #bookmark div in the page. is there any solution. thank u

Member Avatar
Member Avatar
+0 forum 1

Hi I Love daniweb for web solution. I want to make a website using jquery. I want to use jquer POST method for my site. My sample code is $.post("search.php",{word:"good"},function(result){ $("#content").html(result); Here the word 'good' will be search in a database using search.php by POST method. I already did that and its working fine. Problem is that when result is Unicode. Its showing ????????????????? character instead of real UTF-8 character. My html files top r as below <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html lang="en" xml:lang="en" xmlns="http://www.w3.org/1999/xhtml"> <head> <meta content="text/html; charset=utf-8" http-equiv="Content-Type"> <meta content="EN" http-equiv="Content-Language"> <meta content="UTF-8" name="Charset"> …

Member Avatar
Member Avatar
+0 forum 1

Hi I have made a webpage with css. Its working fine in firefox. but not working in Explorer. But when I zoomout to 90% its working in IE. html code is <html> <head> <title>test slice</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <link href="style.css" rel="stylesheet" type="text/css"> </head> <body> <div id="header_border"> <div class="table"> <ul><li></li> <li class="logo"> <img src="images/logo.png" alt=""></li> <li> <a href="#" class="header_link">Home</a></li> <li> <a href="#" class="header_link">Navigate</a></li> <li> <a href="#" class="header_link">Convert by link</a></li> <li> <a href="#" class="header_link">Tel A Friend</a></li> <li><input type="text" class="search_box"></li> <li> <a href="#" class="header_link">People</a></li> <li> <a href="#" class="header_link">Category</a></li> <li> <a href="#" class="header_link">Upload</a></li> <li> <a href="#" class="header_link">Login | Register</a></li> <li></li> </ul> </div> </div> …

Member Avatar
Member Avatar
+0 forum 4

Hello I m not clear about class. Can anybody help me. Actually what is different between class and function. When I will use functiona and when I will use function.

Member Avatar
Member Avatar
+0 forum 10

I need this tricks 1. http://xxx.com/7:4 will be http://xxx.com?volume=7&chapter=4 2. http://xxx.com/7/4 will be http://xxx.com?volume=7&chapter=4 3. http://xxx.com/yyy will be http://xxx.com?find=yyy is there any option? plz help me

Member Avatar
Member Avatar
+0 forum 2

Hi I have a form with textarea. when user submit content through this text area. indent and paragraph is preserving in mysql. Even when I copy data from mysql via phpmyadmin, it also preserving indent and paragraph. But problem is that, when I get data from mysql via php script. All content is showing in block in one block. is there any solution? thanks everybody

Member Avatar
Member Avatar
+0 forum 1

Hello I have seen a web site [ebayclassifieds.com](http://www.ebayclassifieds.com/). This site has simple animation. First i thought it was developed by flash. But after right-click I found that it was not developed by flash. Then How it was built? my gueses are 1. html5 2.jquery Please give me suggestion to built such interface what languages I have to learn (html,jquery,html5,fireworsk...).

Member Avatar
Member Avatar
+0 forum 1

function memory($user,$ayat){ sqlconnection(); $user = mysql_real_escape_string($user); $ayat = mysql_real_escape_string($ayat); if((checkmemory($user,$ayat)==0) || !(checkmemory($user,$ayat)==0)){ $sql="INSERT INTO `mark` ( `user_id` , `ayat` ) VALUES ( '".$user."', '".$ayat."' )"; mysql_query($sql); return $sql; } } function checkmemory($user,$ayat){ sqlconnection(); $user = mysql_real_escape_string($user); $ayat = mysql_real_escape_string($ayat); $sqlmemory="SELECT * FROM `mark` WHERE `user_id` = '".$user."' AND `ayat` =".$ayat; $sqlmemoryresult=mysql_num_rows(mysql_query($sqlmemory)); return $sqlmemoryresult; } http://localhost/quran/index.php?link=mark&totalayat=30 this link is not working. I mean when totalayat is 10,20,30,40,50,60 then its not working. But other value say 5,8,26,65 is working well. What is the problem?

Member Avatar
Member Avatar
+0 forum 3

Hi I have created a php script for writing text in a image. Its working fine. But when I include a file it doesnot generate the image. what is the problem? my code is as bello <?php header ("Content-type: image/jpeg"); $im = imagecreatefromjpeg("photo.jpg"); $backgroundColor = imagecolorallocate ($im, 255, 255, 255); $textColor = imagecolorallocate ($im, 0, 0,0); $sn='s/n:- '.$_GET['serial']; imagettftext ( $im , 13 , 0 , 290 ,180 , $textColor , 'century.ttf' , 'tushar' ); imagettftext ( $im , 13 , 0 , 330 ,275 , $textColor , 'century.ttf' , $sn ); imagejpeg($im); ?> the above code works very fine. …

Member Avatar
Member Avatar
+0 forum 2

Hi First I thanks daniweb for helping people regarding web programming. I want to add an audio player for my site. which will play audio of my choice hosted in my site. after finish it will give a signal. so that jquery or ajax can redirect to other site. plz help me

Member Avatar
+0 forum 0

Here $a and $ b are equal. But in line 07 its not printing 'this is equal'. What is the problem? Plz help me. Remember when form submit $a and $b is equal. but when refresh they r not equal. <?php session_start(); $a=$_SESSION['randomnum']; $b=$_POST['secure']; echo $a.'<br/>'.$b; if($a==$b){ echo "this is equal"; } $_SESSION['randomnum']=md5(time()); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Untitled Document</title> <style> #textarea{ width:90%; border:thin #F00 solid; } </style> </head> <body> <form id="form1" name="form1" method="post" action=""> <p>&nbsp;</p> <table width="600" border="0" align="center" style="text-align:center"> <tr> <td width="54">Question</td> <td width="536"><textarea name="question" rows="10" …

Member Avatar
Member Avatar
+0 forum 5

Hi I have developed an website with drupal 7.10. I want this should be in bengali language. everything is ok but problem with numerical system. for example: date,time,points etc. Now I have decided to add java code at the bottom of the theme. so that after loading the page javascript with replace those text. This replacement should be limited to some span not in all document. I have this as below code in the document [CODE]<span class="submitted">মঙ্গলবার, 12/20/2011 - 07:10 <a class="username" title="সদস্য জিবনবৃত্তান্ত দেখ" href="/user/4">afshalur</a></span>[/CODE] Now I want that 12/20/2011-07:10 will be ১২/২০/২০১১-৭:১০ with the help of javascript. Is …

Member Avatar
Member Avatar
+0 forum 1

Hi I have an website. Where people may write short messages. Now I want that home page will display 10 recent messages from those posts. So I want that New message will be shown and one oldest will be remove. All this will be down by ajax. Can anybody help me?

Member Avatar
Member Avatar
+0 forum 4

Hello Say I have a document which is written in phonetic. Now I want to make this indic. How can I do that Say A will be আ B will be ব AA will be আ Ba will be বা T will be ট t will be ত etc...... Please help me

Member Avatar
Member Avatar
+0 forum 4

The End.