• Member Avatar for broj1
    broj1

    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 …
  • Member Avatar for broj1
    broj1

    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 …
  • Member Avatar for broj1
    broj1

    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?
  • Member Avatar for broj1
    broj1

    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 …
  • Member Avatar for broj1
    broj1

    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...
  • Member Avatar for broj1
    broj1

    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 …
  • Member Avatar for broj1
    broj1

    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 …
  • Member Avatar for broj1
    broj1

    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: …
  • Member Avatar for broj1
    broj1

    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')){ …
  • Member Avatar for broj1
    broj1

    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: …
  • Member Avatar for broj1
    broj1

    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; …
  • Member Avatar for broj1
    broj1

    Stopped Watching forgot password

    How to use forget password in website
  • Member Avatar for broj1
    broj1

    Stopped Watching adding photos

    I want to add photos to the user after they logged in , in their user profile . Will it possible? how?
  • Member Avatar for broj1
    broj1

    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! …
  • Member Avatar for broj1
    broj1

    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 …
  • Member Avatar for broj1
    broj1

    Replied To a Post in Getting User's info for every month

    I thought you will post the last version of the code first.
  • Member Avatar for broj1
    broj1

    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 …
  • Member Avatar for broj1
    broj1

    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?
  • Member Avatar for broj1
    broj1

    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-
  • Member Avatar for broj1
    broj1

    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 == "") …
  • Member Avatar for broj1
    broj1

    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, …
  • Member Avatar for broj1
    broj1

    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 …
  • Member Avatar for broj1
    broj1

    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, …
  • Member Avatar for broj1
    broj1

    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 …
  • Member Avatar for broj1
    broj1

    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 = …
  • Member Avatar for broj1
    broj1

    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! …
  • Member Avatar for broj1
    broj1

    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'];?> …
  • Member Avatar for broj1
    broj1

    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, …
  • Member Avatar for broj1
    broj1

    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 …
  • Member Avatar for broj1
    broj1

    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 …
  • Member Avatar for broj1
    broj1

    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 …
  • Member Avatar for broj1
    broj1

    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 ('', …
  • Member Avatar for broj1
    broj1

    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. …
  • Member Avatar for broj1
    broj1

    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 …
  • Member Avatar for broj1
    broj1

    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) …
  • Member Avatar for broj1
    broj1

    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?
  • Member Avatar for broj1
    broj1

    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 …
  • Member Avatar for broj1
    broj1

    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 …
  • Member Avatar for broj1
    broj1

    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 …
  • Member Avatar for broj1
    broj1

    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 …
  • Member Avatar for broj1
    broj1

    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 …
  • Member Avatar for broj1
    broj1

    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.
  • Member Avatar for broj1
    broj1

    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 ('', …
  • Member Avatar for broj1
    broj1

    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', …
  • Member Avatar for broj1
    broj1

    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.
  • Member Avatar for broj1
    broj1

    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?
  • Member Avatar for broj1
    broj1

    Replied To a Post in Getting User's info for every month

    Form submission page for now, please. So there are two pages now?
  • Member Avatar for broj1
    broj1

    Replied To a Post in Getting User's info for every month

    Can you post the whole script including the html (form) part.
  • Member Avatar for broj1
    broj1

    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 …
  • Member Avatar for broj1
    broj1

    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.