• Member Avatar for broj1
    broj1

    Replied To a Post in How to save temporary user in database using md5 hash code

    How did you test it? I tested it so that i set up cookie expire time to 5 seconds and it worked.
  • Member Avatar for broj1
    broj1

    Replied To a Post in Problem on notifying/alerting the user if the textbox is empty

    > @broj1 sorry, I didn't saw your answer, bye! > No worries, mate. Two answers are better than one :-)
  • Member Avatar for broj1
    broj1

    Began Watching Problem on notifying/alerting the user if the textbox is empty

    I am having a problem on notifying the user when he/she submit a empty form. When I submit an empty form, the system doesn't notify or alert the user that …
  • Member Avatar for broj1
    broj1

    Replied To a Post in Problem on notifying/alerting the user if the textbox is empty

    Your condition is wrong since it checks if either submit is set (which always is after submitting) or $service_name has some text. The condition is always true and the values …
  • Member Avatar for broj1
    broj1

    Stopped Watching Php datetime variable

    Hi I woluld lik to add date in my script. The date should not display just write it in my ip.txt like lis ip-Date <?php $ip=$_SERVER['REMOTE_ADDR']; $date= new DateTime("Y-m-d H:i:s"); …
  • Member Avatar for broj1
    broj1

    Replied To a Post in How to save temporary user in database using md5 hash code

    > i don't know to - set cookies and check if it exist or (expired) You were close. But if you set cookie in one line and check for it …
  • Member Avatar for broj1
    broj1

    Stopped Watching php (jquery/javascript) calculator that reload in real time

    hello friends i want to creat a calculator in my form for calculate total price in real time for exemple" total field = price field + quantity field" my form …
  • Member Avatar for broj1
    broj1

    Began Watching How to save temporary user in database using md5 hash code

    Hello and mery christmas and happy new years. on my site i would like to create a simple php/mysql shopping cart use html form to insert product in shopping cart …
  • Member Avatar for broj1
    broj1

    Replied To a Post in How to save temporary user in database using md5 hash code

    To get the same hash use the same string for 30 days. There are many ways to accomplish this. One of them could be: Initially: - store the initial string …
  • Member Avatar for broj1
    broj1

    Replied To a Post in Limiting the displayed content on a table PHP MySQL

    You are welcome. Hopefully you used the diafol's solution since it caters for multibyte strings. Quite important if you plan to deal with non-english language characters. Happy coding in 2014.
  • Member Avatar for broj1
    broj1

    Began Watching Php datetime variable

    Hi I woluld lik to add date in my script. The date should not display just write it in my ip.txt like lis ip-Date <?php $ip=$_SERVER['REMOTE_ADDR']; $date= new DateTime("Y-m-d H:i:s"); …
  • Member Avatar for broj1
    broj1

    Replied To a Post in Php datetime variable

    On line 5 you are trying to write date object into the text file. It won't go. Also the third argument to the fwrite is optional string leght. I doubt …
  • Member Avatar for broj1
    broj1

    Began Watching keep selceted value of select after post with dynamic data

    Ok so i an very new to this site and am trying my luck with PHP. Got a great idee to make some cash but now to implement it is …
  • Member Avatar for broj1
    broj1

    Replied To a Post in keep selceted value of select after post with dynamic data

    For one thing you are missing quotes arround associative index names. Since the array elements are complex variables you should also enclose them in curly braces to get them parsed …
  • Member Avatar for broj1
    broj1

    Began Watching Create menu from MySQLI Using Array

    Below are 2 functions that will handle the Query and rending of the menu from MySQL Database. This function Loops through the array. Takes in 2 arguments. function loop_section($array, $parent_id …
  • Member Avatar for broj1
    broj1

    Replied To a Post in Create menu from MySQLI Using Array

    Check what the $array content is. Is it an array of objetcs (this is how you reffer to each row)? To check the contents of the array insert this temporary …
  • Member Avatar for broj1
    broj1

    Replied To a Post in echo a picture from your folder file

    So, if solved, please mark as solved. Happy coding in 2014!
  • Member Avatar for broj1
    broj1

    Began Watching echo a picture from your folder file

    Hello, I'm having a problem with my code. It seem to only echo out the picture name from my database and not the picture. This is my code search.php $result …
  • Member Avatar for broj1
    broj1

    Replied To a Post in echo a picture from your folder file

    You have a space in the src URL, just before the $photo variable: echo " ".$results['image']."<a href='http://www.mysite.org/br/s.php?id=$id'><img src='/cate/upload/ $photo' width='100%' height='100%'></a>"
  • Member Avatar for broj1
    broj1

    Began Watching Limiting the displayed content on a table PHP MySQL

    Hello, guys.. I am actually working on a project. I can't figure out how to limit the displayed content on a table of a particular data. I have a table …
  • Member Avatar for broj1
    broj1

    Replied To a Post in Limiting the displayed content on a table PHP MySQL

    Decide on how many characters you can display. Then change line 30 from: <td ><?php echo $row['service_content']; ?></td> to: <td > <?php $contentLength = strlen($row['service_content']); // check if the length …
  • Member Avatar for broj1
    broj1

    Replied To a Post in php (jquery/javascript) calculator that reload in real time

    You are welcome. If that solves the problem, please mark it as solved. Happy coding in 2014.
  • Member Avatar for broj1
    broj1

    Began Watching forget password

    anybudy tell me how to send forget password mail to users mail id saved in database
  • Member Avatar for broj1
    broj1

    Replied To a Post in forget password

    Here is and example of a script that resets the password and mails new password to the user. http://www.daveismyname.com/tutorials/php-tutorials/reset-password-script/ I prefer slightly different approach. When user forgets his password he …
  • Member Avatar for broj1
    broj1

    Replied To a Post in php (jquery/javascript) calculator that reload in real time

    > 1.but the field total is empty when add value to quantity Establish initial values and put them into the input fields. > 2. the float don't work for per …
  • Member Avatar for broj1
    broj1

    Began Watching Reliability of an application

    if(isset($_POST['adate']) && isset($_POST['atime']) && isset($_POST['discno']) && isset($_POST['babybht']) && isset($_POST['motherbht']) && isset($_POST['ward']) && isset($_POST['namebo']) && isset($_POST['address1']) && isset($_POST['address2']) && isset($_POST['telephone']) && isset($_POST['ageonadmission']) && isset($_POST['admissionweight']) && isset($_POST['bdate']) && isset($_POST['btime']) && isset($_POST['poaw']) && …
  • Member Avatar for broj1
    broj1

    Replied To a Post in Reliability of an application

    If you want to learn more about this google for cyclomatic complexity. See [this article](http://en.wikipedia.org/wiki/Cyclomatic_complexity) on Wikipedia.
  • Member Avatar for broj1
    broj1

    Replied To a Post in php (jquery/javascript) calculator that reload in real time

    You can either download it to your local (or any other) server or just include it from one of the CDNs (content delivery networks) which in my opinion is better …
  • Member Avatar for broj1
    broj1

    Began Watching How to link a web link on an image on my web site

    here is my code <td align="right"><img src="images/follow.jpg" width="125" height="24" /><A HREF="http://www.facebook.com"><img src="images/facebook.jpg" width="23" height="24" /> I can not get directed to www.facebook.com but the link redirects it to www.mywebsitename.com/www.facebook.com. Please …
  • Member Avatar for broj1
    broj1

    Replied To a Post in How to link a web link on an image on my web site

    Not exactly a PHP related question but anyway: do you have the ending `</a>` tag? Is your other HTML code OK?
  • Member Avatar for broj1
    broj1

    Began Watching Using Datepicker and convert it to string

    Hi i have input type text as date with a value of "2013-12-25" and i have a database with a field of month and a value of (December) and Year …
  • Member Avatar for broj1
    broj1

    Replied To a Post in Using Datepicker and convert it to string

    // set the array with month names $monthNames = array('January', 'February', ...); // this is your date in a form of a string $dateString = '2013-12-25'; // change it to …
  • Member Avatar for broj1
    broj1

    Began Watching How to get id from the database in the URL by submitting form?

    <?php //////////////////////////// ////////////Kharcha Section //////////////////////////// $kid = 0; if(isset($_POST['kharcha_btn'])){ if(!empty( $_POST['karaya'] ) && !empty( $_POST['custom'] ) && !empty( $_POST['store-fees'] ) && !empty( $_POST['market-fees'] ) && !empty( $_POST['commision'] ) && !empty( …
  • Member Avatar for broj1
    broj1

    Replied To a Post in How to get id from the database in the URL by submitting form?

    You should not echo any output before the header command. Remove line 56: echo "<p class='red-info'> Record Saved! </p>"; so the headers can be sent. This command is pointless anyway …
  • Member Avatar for broj1
    broj1

    Replied To a Post in php (jquery/javascript) calculator that reload in real time

    OK, this is tested jquery, nicely broken down so it can be easily understood :-) $("#quantityfield").change(function() { var value = parseFloat(<?php echo $row_itemdetaille['price']; ?>); var quantity = parseInt($("#quantityfield").val()); var total …
  • Member Avatar for broj1
    broj1

    Began Watching php (jquery/javascript) calculator that reload in real time

    hello friends i want to creat a calculator in my form for calculate total price in real time for exemple" total field = price field + quantity field" my form …
  • Member Avatar for broj1
    broj1

    Replied To a Post in php (jquery/javascript) calculator that reload in real time

    Use javascript and on change event on the quantitiy input field that would triger a function. Something like (not tested): <input name="quantity" type="number" min="1" max="20" value="1" id="quantityfield" onchange="updateQuantity();"> ... <script …
  • Member Avatar for broj1
    broj1

    Began Watching Variable into form value

    hello, when I echo $acfile; it shows up with the users name. when i try to insert the variable into the text field, the below code will show the value …
  • Member Avatar for broj1
    broj1

    Replied To a Post in Variable into form value

    A bit more code would help. Where do you echo it? Maybe it gets changed somewhere in the process? contest[name] the index should be enclosed in quotes: contest['name'] and enclosed …
  • Member Avatar for broj1
    broj1

    Stopped Watching delete record from database not working

    i have created a page which has a table that enables user to delete a record via a delete button but somehow the queary isnt working. php coding <?php include("dbase.php"); …
  • Member Avatar for broj1
    broj1

    Stopped Watching Using MySQL to output data in arrays

    I have the following code which I use in PHP-Liquid template engine. I want the ability to add or delete rows trough phpMyAdmin instead of adding/deleting new arryas. So I …
  • Member Avatar for broj1
    broj1

    Stopped Watching PHP Script for Excel to PDF Conversion

    Hi Everyone I want to convert Excel File to PDF using PHP. Can anyone guide me in this matter? I have tried PHPExcel by using tcpdf,mpdf,docpdf libraries but they didn't …
  • Member Avatar for broj1
    broj1

    Began Watching PHP Script for Excel to PDF Conversion

    Hi Everyone I want to convert Excel File to PDF using PHP. Can anyone guide me in this matter? I have tried PHPExcel by using tcpdf,mpdf,docpdf libraries but they didn't …
  • Member Avatar for broj1
    broj1

    Replied To a Post in PHP Script for Excel to PDF Conversion

    What was the problem with the layout? TCPDF is quite flexible and I did not have problems creating nice tables.
  • Member Avatar for broj1
    broj1

    Stopped Watching Simple PHP echo statement showing in browser

    I'm just trying to echo a string to the browswer with the following code: <!DOCTYPE html> <html> <body> <h1>Hello World!</h1> <?php echo "My first PHP script!"; ?> </body> </html> but …
  • Member Avatar for broj1
    broj1

    Began Watching PHP array variable define

    Hi, I've been recently trying to create a language change script. Everything goes smoooth but there are several complexed places inside the page that needs some advanced php code. So …
  • Member Avatar for broj1
    broj1

    Replied To a Post in PHP array variable define

    Maybe the simplest way would be to address the array element directly: $eng['profile_permission'] = 'You belong to ' . $group . ' with a permission of ' . $permission .''; …
  • Member Avatar for broj1
    broj1

    Began Watching Getting Error In PHP Script.

    Hello All, I am getting error "*You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use …
  • Member Avatar for broj1
    broj1

    Replied To a Post in Getting Error In PHP Script.

    To recap the above two posts: // check whether $_GET has any value and if the value is valid // (you might use some more proper validation depending on the …

The End.