39,323 Topics

Member Avatar for
Member Avatar for satheshkumarhr

Anybody please help use the below table and tree structure and calculate left and right count. My Table Creation Query: CREATE TABLE `testmlm`.`binary_tree` ( `id` INT( 11 ) NOT NULL AUTO_INCREMENT , `name` VARCHAR( 150 ) NOT NULL , `left_id` INT( 11 ) NULL , `right_id` INT( 11 ) NULL …

Member Avatar for veedeoo
0
249
Member Avatar for momonq1990
Member Avatar for Shibbir Khan

I'm using Yii framework while my question is probably intended to PHP expert. I have created a controller to send email from my web application, it works fine. Given that, I intend to use email in several sontrollers in my app, I wanted to created a helper but that does …

Member Avatar for kaleemullah360
0
428
Member Avatar for acrocephalus

Hello, I am trying to get all the values (numeric) of the column Bruel_ID from database mpctz_rsform_bruels to display them in a RSForm dropdown box. I'm using this code: //<code> $db = JFactory::getDbo(); $db->setQuery("SELECT Bruel_ID FROM mpctz_rsform_bruels"); return $db->loadResult(); //</code> Howeve, I am only pulling the lowest value of the …

Member Avatar for diafol
0
148
Member Avatar for Nabeel_2

view: <?phpforeach($row as $b):?> <?php echo $b->Product_Name ?></h3> <?php echo $b->Price ?></p> </div> <?php if ($b->Option_name):?> <?php echo form_label($b->Option_name, 'option_'.$b->Product_ID ); ?> <?php echo form_dropdown( $b->Option_name, $b->Option_value, NULL, 'Product_ID= " option_' .$b->Product_ID. ' " ' );?> <?php endif; ?> controller: public function product_detail($Product_ID){ $this->load->model('model_products'); $data['row']= $this->model_products->get_detail($Product_ID); $this->load->view('product_detail',$data); } model: function …

Member Avatar for pzuurveen
0
6K
Member Avatar for Jake.20

Greetings im new in laravel and i want to learn how to show the html page in laravel. My laravel's location is: C:/wamp/www/laravel The location of the page that i want to view: C:/wamp/www/laravel/app/views/hello.php I tried localhost/wamp/www/laravel/app/views/hello.php but it only gives me an error: The requested URL /wamp/www/laravel/app/views/hello.php was not …

Member Avatar for Sam.Samual
0
279
Member Avatar for davy_yg

Hello, I cannot tell the difference between material.php and studentmgt.php material.php <!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>Squprime</title> <!-- CSS --> <link href="style/css/transdmin.css" rel="stylesheet" type="text/css" media="screen" /> <!--[if IE 6]><link rel="stylesheet" type="text/css" media="screen" href="style/css/ie6.css" /><![endif]--> <!--[if IE 7]><link rel="stylesheet" type="text/css" …

Member Avatar for davy_yg
0
243
Member Avatar for koneill

In PHP - I'm trying to pass a second item &show_sill via the URL string and keep getting this error: - Parse error: syntax error, unexpected '&' what is the correct syntax when trying to utilize mutliple items via the querystring: header("Location: submit.php?upload_message=image uploaded&upload_message_type=success&show_image=".$_FILES["image_upload_box"]["name"]&show_sill=".$_FILES["imgOrgSrc"]["name"]); exit;

Member Avatar for koneill
0
172
Member Avatar for Asif_6
Member Avatar for veedeoo
0
85
Member Avatar for zeeshan009

Hi All, I want to know how to write a php script that run in background in browser when anyone login.

Member Avatar for veedeoo
-1
186
Member Avatar for zeeshan009

Hi All, I am developing a fee management system in which i want to view unpaid fee of students. Can any one guide me how to to do this in php. I need a logic. Please guide me.

Member Avatar for diafol
-3
64
Member Avatar for shammi.khan.73

I have a simple php code which enters value into MySql database and then retrieves it and displays it. However when retrieving it always return null and Empty Set is echoed everytime. Can someone please help. I am using WAMP Server. Database name is trial and name of table is …

Member Avatar for diafol
0
207
Member Avatar for matrixdevuk

Hello! So, I see you need help... or maybe you just fancy a nice little read. Either way, this is here for a reason. When you post code on DaniWeb, it can be frustrating waiting for a reply (trust me, I've been there!) — so... here are some tips that …

Member Avatar for matrixdevuk
2
301
Member Avatar for davy_yg

Hello, I would like to create a confirmation box for delete. Do you want to delete this row? [Yes] [No] How? How to create a colorful confirmation box? ok, I find the demo link [demo link](http://myclabs.github.io/jquery.confirm/) NOw, I wonder how to merge php with jquery ? So if someone click …

Member Avatar for mattster
0
2K
Member Avatar for Evil_genius82

Hi all, I plan on deleting records which are older than one week from my MySQL database.I do not have access to cron on my current server so I plan on using cronless.com to schedule a request on the following php script. <?php $cron_id = $_GET['comm']; if($cron_id == 20){ require_once …

Member Avatar for Evil_genius82
0
247
Member Avatar for rae08

Hi guys, I am looking to develop a web-based chatbot that uses a webcam to capture the user's facial features in order to determine the person's mood for better communication. Like for example a chatbot notices that the user is sad, the chatbot would ask "I noticed you're sad, any …

Member Avatar for veedeoo
0
212
Member Avatar for brochindia
Member Avatar for mokshi

I have to pass two values to sp first value is nvarchar and second value is Int in SQL server,but i am not getting values, is my code is correct.Please help me out $query = mssql_init("courseofferedbyprof", $dbhandle); mssql_bind($query,"@facultyID",&$facname,SQLVARCHAR,false,false,50); mssql_bind($query,"@count",&$year,SQLINT2,false,false,50); $result=mssql_execute($query);

Member Avatar for diafol
0
146
Member Avatar for kaakka

i have form file delete anybody can help make file clone instead of delete. <?php if(isset($_POST['filed'])){ unlink($_POST['file']); } ?> <form action="delet.php" method="post"> <b>Name of file(on the server):</b><INPUT type='text' Name='file'><Br> <INPUT type='Submit' Name='filed' Value='Delete File'> </form>

Member Avatar for kaakka
0
161
Member Avatar for RonKevinT.Manuela

So, my groupmate designed the look of our website...I was trying to integrate it with the other code....I decided to first do the login form....i dont know but I cant get it to work...-_- 1. lets start from the config.php: <?php ob_start(); session_start(); include('functions.php'); //database credentials define('DBHOST','localhost'); define('DBUSER','root'); define('DBPASS',''); define('DBNAME','sics'); …

0
117
Member Avatar for markii.borabon_1

im trying to get the date diff: <?php $datetime1 = date_create(date('d - M - Y')); $datetime2 = date_create($date); $interval = date_diff($datetime1, $datetime2); $diff = $interval->format('LISTED %R%a DAY(S) AGO'); ?> it works in my localhost host.. but when I upload and run it online it get this error : Fatal error: …

Member Avatar for kaleemullah360
0
440
Member Avatar for shammi.khan.73

I want to calculate EXACT past 30 days time period in php from now (for example 30 aug 14 23:06) to 30 days back (for example 1 aug 14 23:06). I wrote this where current datetime goes in $d1 and past 30 days datetime goes in $d2 but somehow i …

Member Avatar for kaleemullah360
1
4K
Member Avatar for snehaanjit

i used array function to show list of drop down but for edit the form i want to show fetched value but it show some error. my code is <td class="tdcls">Bus Name</td> <tr> <td class="tdcls">Bus Name</td> <td><select name="bus_name" required> <option value="#">Select</option> <?php $busName= getBusName(); foreach($busName as $code=>$bname) { echo "<option …

Member Avatar for AleMonteiro
-1
59
Member Avatar for kaakka

# #how can use file extension like .txt,.php,.html for the same script. # anybody can help# <?php if ($_POST['variable'] == '') { $variable = './'; // default folder } else { $variable = $_POST['variable'] ; } $folder = $variable; $uploadpath = "$folder/"; $max_size = 2000; $alwidth = 900; $alheight = …

Member Avatar for mattster
0
339
Member Avatar for tuxslonik

Can't display proper value in the textbox from database.Displaying only first word. * CODE: echo "<input type=\"text\" name=\"newstitle1\" value=".$row['news_title']."; There is no problem with the database part.please help.

Member Avatar for mattster
0
69
Member Avatar for congay2014

i want the procedure to export .mdb file to sql file move file to server using ftp and import into mysql database using a batch file.

Member Avatar for congay2014
0
77
Member Avatar for james.baird.5249

Hi everyone, i am interested to learn php, where is the best place to learn it?

Member Avatar for ashokkmr22
0
223
Member Avatar for koneill

I'm trying to send an e-mail using the PHP mail function and having two issues in regard to the below code: 1) When I get the e-mail - it is not formatted in HTML - instead I get just the actual HTML code in the e-mail - I get all …

Member Avatar for koneill
0
204
Member Avatar for NAGARAJA BV

Forbidden You don't have permission to access /abc.php on this server. Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request. please give the suggestion for Solve this problem. please give the Suggestion step by step i am fresher for PHP Development.... …

Member Avatar for hericles
0
109
Member Avatar for shammi.khan.73

I want to insert a NULL value into my integer column. if ($startYear == "") { $startYear = NULL; } mysqli_query($con, "INSERT INTO Application (startYear) VALUES ('".$startYear."')"); Before you ask, I have checked if $startYear is ever empty, and it is, so this should work. When I run this query …

Member Avatar for shammi.khan.73
1
6K

The End.