• Member Avatar for broj1
    broj1

    Replied To a Post in Form

    I copied the code above on my server, changed the input type to submit and it submits the form without any problems. Maybe you try to disable javascript and see …
  • Member Avatar for broj1
    broj1

    Began Watching PHP Security - GET Variables, URL safe?

    how to make php security in the url with the get method for example as media.php?hal=detail&id=1
  • Member Avatar for broj1
    broj1

    Replied To a Post in PHP Security - GET Variables, URL safe?

    See [OWASP Top Ten](https://www.owasp.org/index.php/Top_10_2013-Top_10) especially the A1 - Injection. Probably all the web developer needs to know about the security. It is a lot of stuff to read and you …
  • Member Avatar for broj1
    broj1

    Stopped Watching how to store mobile numbers in a variable with comma seperator using pdo

    i have a database table with fields mobno1 and mobno2, first i would like store all the values of field mobno1 into var1 and field mobno2 into var2 by using …
  • Member Avatar for broj1
    broj1

    Replied To a Post in Form

    Do you have any javascript bound to the form / button? If yes, post it. Or maybe there is something in the style sheet?
  • Member Avatar for broj1
    broj1

    Began Watching Form

    Hello, I am trying to create a form, yet I wonder why the form does not works like usually: index.php <form action="login.php" method="POST"> <input type="text" class="form" name="email"><br> <div style="margin: -60px …
  • Member Avatar for broj1
    broj1

    Replied To a Post in Form

    > I wonder why after I press the button, nothing happens! Normally, if I press the button - the form suppose to be processed by carrying me to login.php <input …
  • Member Avatar for broj1
    broj1

    Stopped Watching Unrecognize destination folder

    Hello, I am trying to fix my server file path. After moving my web project file from localhost to the server. There are several errors that appears. One of them …
  • Member Avatar for broj1
    broj1

    Replied To a Post in Unrecognize destination folder

    Kool. Solved?
  • Member Avatar for broj1
    broj1

    Replied To a Post in Unrecognize destination folder

    Is the server running IIS or XAMP? IIS has different document root path from XAMP as far as I know. XAMP is really only ment for local development.
  • Member Avatar for broj1
    broj1

    Began Watching Unrecognize destination folder

    Hello, I am trying to fix my server file path. After moving my web project file from localhost to the server. There are several errors that appears. One of them …
  • Member Avatar for broj1
    broj1

    Replied To a Post in Unrecognize destination folder

    What is the server OS? If it is one of the Linux distros the path for html documents would not be the same as in Windows. A couple of examples: …
  • Member Avatar for broj1
    broj1

    Began Watching Meaning of the sql query

    Can someone help me explain the coding? if(isset($_SESSION['patron_ID'])) { set_time_limit(0); include 'dbconnect.php'; $studylevel1 = $_POST['studylevel']; if(isset($_POST['submit'])) { do { $senderid = $_SESSION['patron_ID']; $studylevel1 = $_POST['studylevel'];}}}
  • Member Avatar for broj1
    broj1

    Replied To a Post in Meaning of the sql query

    // execute the code below only if there is a patron_ID saved in the session variable // this is probably a check if the user is logged in if(isset($_SESSION['patron_ID'])) { …
  • Member Avatar for broj1
    broj1

    Stopped Watching Issues while submitting multiple check box array

    Hi , I am using following script to get the values of the language details. <FORM action="final.php" method="post"> <div align="center"> <table width="434" border="0"> <tr> <td>Languages Known</td> <td>Speak</td> <td>Read</td> <td>Write</td> <td>Delete</td> …
  • Member Avatar for broj1
    broj1

    Began Watching Issues while submitting multiple check box array

    Hi , I am using following script to get the values of the language details. <FORM action="final.php" method="post"> <div align="center"> <table width="434" border="0"> <tr> <td>Languages Known</td> <td>Speak</td> <td>Read</td> <td>Write</td> <td>Delete</td> …
  • Member Avatar for broj1
    broj1

    Replied To a Post in Issues while submitting multiple check box array

    You have 5 rows of select element and checkboxes so you have to keep track of which row a user has selceted / checked. You can do this if you …
  • Member Avatar for broj1
    broj1

    Replied To a Post in How can I load the data stored on the database when a page is loaded

    OK, maybe I missunderstood your question. So, you want to display user data from the database (if the user is loged in) and user data shall be read from a …
  • Member Avatar for broj1
    broj1

    Began Watching how to make a data to be displayed in fieldset?

    hello guys.. i have made a form in checkbox which is in fieldset by categories.. so now the values is success inserted into database.. but i've got problem to make …
  • Member Avatar for broj1
    broj1

    Replied To a Post in how to make a data to be displayed in fieldset?

    It is a lot of code here :-). Basically what you have to do is you have to read the data that is already in the database and check for …
  • Member Avatar for broj1
    broj1

    Began Watching php error

    Hi I am writing a php program, it gives the error "parse error syntax error unexpected t_constant_encapsed_string expecting ']' " the code is <a href="blog.php?id=<?php echo $article['_id']; ?>">View </a> any …
  • Member Avatar for broj1
    broj1

    Replied To a Post in php error

    This bit of code seems to be OK. Are you sure that this is the line that is causing the error? Sometimes an error can occur a number of lines …
  • Member Avatar for broj1
    broj1

    Began Watching How can I load the data stored on the database when a page is loaded

    I need to know how I can display the data stored in the database using php when a user load a page, without necessary puting them as it is on …
  • Member Avatar for broj1
    broj1

    Replied To a Post in How can I load the data stored on the database when a page is loaded

    It is called [AJAX](https://developer.mozilla.org/en-US/docs/AJAX/Getting_Started). Once the page is loaded it enables you to get some more data and display it in a chosen element in the page (a div for …
  • Member Avatar for broj1
    broj1

    Replied To a Post in sql and checkboxes

    Great. If you have troubles getting useful data out of the POST, let us know, we will help. Otherwise, if the problem has been solved please mark this thread as …
  • Member Avatar for broj1
    broj1

    Began Watching sql and checkboxes

    hi. i'm seeking help with checkboxes.i have built a ordering system. i have two tables "food" and "refreshments" both consists of columns "name,price" . what i want to do is …
  • Member Avatar for broj1
    broj1

    Replied To a Post in sql and checkboxes

    > when i submit all the prices are added up , but it should only add the checked ones This is because `select sum(price) as totalamount from food` selects from …
  • Member Avatar for broj1
    broj1

    Stopped Watching Illegle Offset in cURL and PHP

    Hello, I am getting a weird error when i try to run this array: //leafly api keys $appID ='Blah'; $appKEY = 'blah'; //init curl $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, "http://data.leafly.com/strains/".strtolower($data)); …
  • Member Avatar for broj1
    broj1

    Stopped Watching Meger array to object

    array (size=10) 'item-_token' => string 'k4i2tQbZNuKnhV0vqbdBJ0XlwKzGLm09KA0pWa5n' (length=40) 'item-link' => array (size=3) 0 => string 'link 1' (length=6) 1 => string 'link 2' (length=6) 2 => string 'link 3' (length=6) 'item-shop_name' …
  • Member Avatar for broj1
    broj1

    Stopped Watching SESSION in PHP

    Dea Friends, it is superb serveice you are doing....lets please talk about SESSION in PHP.My code is below. <!DOCTYPE html> <?php session_start(); ?> <html> <head> <title>Login page</title> </head> <h1 style="width: …
  • Member Avatar for broj1
    broj1

    Replied To a Post in SESSION in PHP

    On lines 26 and 27 you assign strings to $uname and $pword variables: $uname = filter_input(INPUT_POST, 'username', FILTER_SANITIZE_SPECIAL_CHARS); $pword = filter_input(INPUT_POST, 'password', FILTER_SANITIZE_SPECIAL_CHARS); On lines 38 and 39 you assign …
  • Member Avatar for broj1
    broj1

    Began Watching SESSION in PHP

    Dea Friends, it is superb serveice you are doing....lets please talk about SESSION in PHP.My code is below. <!DOCTYPE html> <?php session_start(); ?> <html> <head> <title>Login page</title> </head> <h1 style="width: …
  • Member Avatar for broj1
    broj1

    Replied To a Post in SESSION in PHP

    What is the code in the welc.php? Is $uname['username'] a username (usually just one word) or users real name (like first and last name)?
  • Member Avatar for broj1
    broj1

    Replied To a Post in Profile Page

    No worries, mate. If this is it, please mark it as solved.
  • Member Avatar for broj1
    broj1

    Replied To a Post in Profile Page

    > aND WHY YOU jad used # on action what if we used <?php $PHP_SELF ?> They both work since they both mean about the same thing. So it is …
  • Member Avatar for broj1
    broj1

    Replied To a Post in Profile Page

    An improvement: once you selected a value and the data gets displayed your select element is set to the last selected value. while($row = mysql_fetch_array($recordset6)) { echo "<option value=", $row["uid"]; …
  • Member Avatar for broj1
    broj1

    Replied To a Post in Profile Page

    Yeah, I had a few errors (like int_val instead of intval function name) in the code, sorry. This should work: <?php // check if form was submitted if(isset($_POST['button'])) { // …
  • Member Avatar for broj1
    broj1

    Replied To a Post in Profile Page

    You posted the database structure instead of data. But never mind I will make up the data and check the code.
  • Member Avatar for broj1
    broj1

    Replied To a Post in Profile Page

    Can you send me some data from the users table. In phpmyadmin run the following query: SELECT * FROM users LIMIT 10 and paste result here so I can test …
  • Member Avatar for broj1
    broj1

    Replied To a Post in Profile Page

    > > Failed to load resource: net::ERR_CACHE_MISS > this eror is coming up in the console I doubt this has any connection with the script. See: http://stackoverflow.com/questions/26408931/bizarre-error-in-chrome-developer-console-failed-to-load-resource-neterr-ca
  • Member Avatar for broj1
    broj1

    Replied To a Post in Profile Page

    Here you go. See the comments in the code. If anything is not clear, just ask. <?php // check if form was submitted if(isset($_POST['button'])) { // select user profile data …
  • Member Avatar for broj1
    broj1

    Replied To a Post in Profile Page

    So if I understood it right, you want to select a user name and have profile of the selected user displayed on the same page. I did not quite understand …
  • Member Avatar for broj1
    broj1

    Began Watching Profile Page

    Hello you all genius guyz once again i am in need of your help I am trying to create a page on admin to be able to see the profiles …
  • Member Avatar for broj1
    broj1

    Replied To a Post in Profile Page

    > I have tried the while loop but still I am unsuccessfull Can you specify in what way you were unsuccessful, eg. what was expected outcome and what really came …
  • Member Avatar for broj1
    broj1

    Stopped Watching Login form in PHP

    Dear friends, I have an other problem in login form...my code is below.. //********************************connect to database and check**************************************************** $username = "root"; $password = ""; $database = "mydatabase"; $server = "127.0.0.1"; …
  • Member Avatar for broj1
    broj1

    Began Watching how to store mobile numbers in a variable with comma seperator using pdo

    i have a database table with fields mobno1 and mobno2, first i would like store all the values of field mobno1 into var1 and field mobno2 into var2 by using …
  • Member Avatar for broj1
    broj1

    Replied To a Post in how to store mobile numbers in a variable with comma seperator using pdo

    Where does it stop? What is the error? The query: $sql = "SELECT mobno1,mobno2 FROM custreg"; presumably returns a set of rows, but $data = $q->fetch(PDO::FETCH_ASSOC); returns only one row. …
  • Member Avatar for broj1
    broj1

    Began Watching Login form in PHP

    Dear friends, I have an other problem in login form...my code is below.. //********************************connect to database and check**************************************************** $username = "root"; $password = ""; $database = "mydatabase"; $server = "127.0.0.1"; …
  • Member Avatar for broj1
    broj1

    Replied To a Post in Login form in PHP

    Try using result->num_rows instead (it returns number of rows found): if($result->num_rows == 0){ echo "invalid username" ; } else { echo "welcome"; }
  • Member Avatar for broj1
    broj1

    Stopped Watching PHP form with mysql database

    Dear friends, Please guide me I want to display data in PHP form from mysql database. my code is below <?PHP //connect to database $username = "root"; $password = ""; …

The End.