-
Stopped Watching Getting User's info for every month
I have created a page where employees submits their daily status report at every end of the day so on admin page I have created 3 drop down menus first … -
Stopped Watching If statement problem
Hi, I'm working on a wordpress website where every product page has its own top banner that appears on the page using php. This works fine on the products but … -
Stopped Watching alert box- ok and cancel
In alert box i anto show two buttons, 1. OK and 2. Cancel. If cancel it should redirect to previous page. How? -
Stopped Watching function results into array
Hey guys. I have a function that is returning options that the user has selected. I need to get these options in an array for matching. Here is my rough … -
Stopped Watching how we can display records
how we can display records 1-5 for 1 user. for 2nd user, we can display 2-6 for 3rd user, we can display 3-7 so on... -
Stopped Watching Notice: Undefined index in php file
here's the html code <article> <table id="wrap"> <tr> <td> <!--<p>Here at DRT we take our services very seriousely. We strive to provide the best work possible. Our translations are well … -
Stopped Watching How to kill remote session when logout?
Hi all, i have web application and login form. i would like when i exit (logout) it automatically logs out from all devices (or browsers or PC). Can anyone help … -
Began Watching files access access deneid
Hi have this code to manage my main page. Everything works fine on my local server at home,i'm using easyphp. But on my webhosting server i got this error: Warning: … -
Replied To a Post in files access access deneid
You could make it simpler by using `file_exists` instead of using all the `scandir` stuff: $p = $_GET['p']; // WARNING: sanitize this before using it in production app if (file_exists($dir.'/'.$p.'.htm')){ … -
Stopped Watching hai i get session error when i host my web site how i solve that error
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/wwwjjtex/public_html/contacts.php:2) in /home/wwwjjtex/public_html/contacts.php on line 2 AND my code is margin-left: 94px; margin-top: -66px; margin-left: … -
Stopped Watching How to present this in switch()?
I had test today about PHP. Really basic one, which probably won't give me A++ (10/10), because of strange question he asked, he asked us to translate: $temp = 10; … -
Stopped Watching forgot password
How to use forget password in website -
Stopped Watching adding photos
I want to add photos to the user after they logged in , in their user profile . Will it possible? how? -
Stopped Watching Urgent a php to MySQL!
I have to make a select to get the info from db from a particular article id it it about an php to mysql database field edit. Thanks in advance! … -
Replied To a Post in Urgent a php to MySQL!
This is insecure. You have to sanitize the user input before using it in a select statement. // suppose the ID is an integer $id = intval($_GET['id']); $order = "SELECT … -
Replied To a Post in Getting User's info for every month
I thought you will post the last version of the code first. -
Replied To a Post in alert box- ok and cancel
U're welcome :-). Once you have some code and if you get stuck, post the code you have. If you manage to finish it yourself, please mark the thread as … -
Began Watching alert box- ok and cancel
In alert box i anto show two buttons, 1. OK and 2. Cancel. If cancel it should redirect to previous page. How? -
Replied To a Post in alert box- ok and cancel
You will have to use Javascript for this. The `confirm` dialog box will be the one to use. See: http://www.tizag.com/javascriptT/javascriptconfirm.php. https://www.daniweb.com/web-development/php/threads/34967/how-can-i-make-php-alert-pop-ups-just-like-in-javascript- -
Stopped Watching phone no problem
this is my index.page <html> <head><title>Registration</title> <script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js" type="text/javascript"></script> <script src='http://ajax.aspnetcdn.com/ajax/jquery.validate/1.11.1/jquery.validate.min.js'></script> <script type="text/javascript"> function validate() { if(document.register.name.value == "") { alert('Enter valid name'); document.register.name.focus(); return false; } if(document.register.email.value == "") … -
Stopped Watching Ajax validation unable to validate?
Good day! I have a news letter form and ajax validation on empty fields is working find.. But when I try to submit the form with all the required fields, … -
Began Watching Notice: Undefined index in php file
here's the html code <article> <table id="wrap"> <tr> <td> <!--<p>Here at DRT we take our services very seriousely. We strive to provide the best work possible. Our translations are well … -
Replied To a Post in Notice: Undefined index in php file
Your message/notice/title says: Undefined index in php file, but you posted only HTML code, no PHP code. Please post the relevant PHP script that triggered the error (probably the formdata.php, … -
Replied To a Post in Urgent a php to MySQL!
Also a concern about security on line 8. Instead of: <input type="hidden" name="id" value="<?php echo $_GET['id'];?> it should be: <input type="hidden" name="id" value="<?php echo htmlspecialchars($_GET['id']);?> to escape possible bad script … -
Replied To a Post in Urgent a php to MySQL!
OK, I gave one line of code as an example and this is the whole snippet: <?php include "db.php";//database connection $order = "SELECT * FROM comanda where ['id']=''"; $result = … -
Began Watching Urgent a php to MySQL!
I have to make a select to get the info from db from a particular article id it it about an php to mysql database field edit. Thanks in advance! … -
Replied To a Post in Urgent a php to MySQL!
You are almost there. Just remove quotes arround the row elements, add quotes arround row element names, add semicolon at the end and use `<?php` start tags: <?php echo $row['den_material'];?> … -
Began Watching Ajax validation unable to validate?
Good day! I have a news letter form and ajax validation on empty fields is working find.. But when I try to submit the form with all the required fields, … -
Replied To a Post in Ajax validation unable to validate?
You can check your server side sript if it works OK. Try to input the URL with the parameters into your browser directly e.g.: php-includes/news_letter_send.php?name=somename&email_address=justme@example.com You will have to change … -
Began Watching Help a history teacher build a lesson planning website!
Hello All! Not sure if I'm posting in the right place, but I'm not sure where that would be, so here goes. I'm a high school history teacher, and I've … -
Replied To a Post in Help a history teacher build a lesson planning website!
This could be quite a complex task and I think you would need some server side scripting (such as [PHP](http://php.org/)) and a database (like [mysql](http://www.mysql.com/products/community/)). You would also have to … -
Stopped Watching why cant insert this into table ?
I have a little problem over here this code doesn't work well what is the problem if anyone know ? $getUsername = getUserData('Username'); $sql = "INSERT INTO `kladilnica` VALUES ('', … -
Replied To a Post in why cant insert this into table ?
JSFIDDLE shows no code. Anyway, since this is more a CSS question, I suggest you start a new thread in the Web Design, HTML and CSS Discussion part of DW. … -
Replied To a Post in why cant insert this into table ?
It could be that the `kladilnica` table is not matched to the field types. Can you post the structure of the table (use `SHOW CREATE TABLE kladilnica` in phpmyadmin). And … -
Replied To a Post in function results into array
> *My fault guys, I did not mean to frustrate anyone* No worries, mate. It's easy to get lost after that many posts :-) > *Broj1, it seems that printList($file_names) … -
Replied To a Post in function results into array
OK, I am a bit confused now :-). Are you saying the `printList()` function in above code does not echo anything? -
Replied To a Post in function results into array
So you think the `$tpdf` array is empty? Put this code on line 10 in the function above: die(print_r($tpdf, 1)); This will display the contents of the array after it … -
Replied To a Post in function results into array
So you think the `$tpdf` array is empty? Put this code on line 10 in the function above: die(print_r($tpdf, 1)); This will display the contents of the array after it … -
Replied To a Post in function results into array
So the `glob` function does not find any files? To confirm this put the following code immediatelly after line 5: if($pdf_check == false) { die('Error: no matches found'); } This … -
Began Watching function results into array
Hey guys. I have a function that is returning options that the user has selected. I need to get these options in an array for matching. Here is my rough … -
Replied To a Post in function results into array
The `printList()` should return a value if you want to use it in assignment (line 3 in the first snippet). function printList($file_names){ //print the list echo "<p class=cart-list-header ></p>"; echo … -
Replied To a Post in PHP query doesn't updating the database
I am a bit lost now. Can you post the last version of the code. -
Began Watching why cant insert this into table ?
I have a little problem over here this code doesn't work well what is the problem if anyone know ? $getUsername = getUserData('Username'); $sql = "INSERT INTO `kladilnica` VALUES ('', … -
Replied To a Post in why cant insert this into table ?
It is much easier to check the query if you do not use all the concatenation. You can do it this way: $sql = "INSERT INTO `kladilnica` VALUES ('', '$getUsername', … -
Replied To a Post in Getting User's info for every month
OK, but I'll have time to look at it tomorrow, hopefuly in the morning. -
Replied To a Post in Getting User's info for every month
This script is now different. I thought there are three dropdowns. Have you changed it or did you send me a wrong script? -
Replied To a Post in Getting User's info for every month
Form submission page for now, please. So there are two pages now? -
Replied To a Post in Getting User's info for every month
Can you post the whole script including the html (form) part. -
Replied To a Post in Getting User's info for every month
What is the structure of the `users` table? You use it to build the first dropdown (for selecting users). I have a slight feeling, that the `dailyreport` table should not … -
Began Watching Getting User's info for every month
I have created a page where employees submits their daily status report at every end of the day so on admin page I have created 3 drop down menus first …
The End.