38,025 Topics

Member Avatar for
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
169
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
207
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
108
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
431
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
332
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 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
Member Avatar for younes.keraressi

hi, i create an webapplication with php , i commented the line deny from all in conf file of apache, the users can see the index.php but the problem is: when they click on username and pass therse nothing happens, but on the conexion button it work, its looks like …

Member Avatar for younes.keraressi
0
200
Member Avatar for Zdneth_1

Good day IT Enthusiasts and Pros! I want to ask if any of you has an idea of making a web-based application that involves sales quotation and proposal generation? I badly need some tutorials or some pieces of advice on how to make it in PHP especially involving payments using …

Member Avatar for diafol
0
235
Member Avatar for davy_yg

Hello, I have been trying to make contact us works. It appears that it works like I receive a success message but in actual it doesn't work like it suppose to: index.php <form action="contact.php" name="contactform" class="row" method="post"> <h4>Request a FREE TRIAL CLASS!</h4> <div id="input_name" class="col-md-12"> <input id="name" class="form-control" type="text" name="stu_fname" …

Member Avatar for davy_yg
0
497
Member Avatar for ernesto22

This is my edit page. I can see values in my input boxes retrieved from database. What I want to do is update those values when I click on button. Here is my code plz help <?php require_once ('conn.php'); $id = $_REQUEST['main_id']; $sql = "select * from users, work,home where …

Member Avatar for milil
0
111
Member Avatar for ashley9210_2

Hi there I am trying to add some data from a form into a MySQL database and it doesn't seem to been working. Any help would be appreciated. # PHP # <?php if(isset($_POST['add'])) { $dbhost = 'localhost'; $dbuser = ''; $dbpass = ''; $conn = mysql_connect($dbhost, $dbuser, $dbpass); if(! $conn …

Member Avatar for broj1
0
167
Member Avatar for acrocephalus

Hello! I need some help. I have no idea on PHP and I need to set up a custom validation rule. I have a field which name is IBAN. It is composed of 24 characters, de first 4 are PPXX (2 letters and 2 numbers) and the rest are numeric. …

Member Avatar for pritaeas
0
206
Member Avatar for LaurenE

Hi Guys, I found a tutorial online on how to build an events calendar using PHP and Ajax. I am however a little stuck, I have ran debuggers and have error messages printed throughout the code and whilst the basic calendar functionality works, it does not actually display any events. …

Member Avatar for LaurenE
0
343
Member Avatar for ernesto22

im new to php . plz help. i have a page where people fill in a form and check on checkboxes. i also have a page where i edit. i want to know if its possible that on my edit page i could see the checked box checked ? example …

Member Avatar for diafol
0
252

The End.