• Member Avatar for broj1
    broj1

    Replied To a Post in adding photos

    Provided that you keep user data in a database, just add a field containing the path to the image. You can provide default image (or two, based on sex) and …
  • Member Avatar for broj1
    broj1

    Replied To a Post in Pagination: limiting the number of pages

    The following is a function that will create links to pages. In addition to the *First* and *Last* buttons I also added the *Next* and *Prev* buttons which might be …
  • Member Avatar for broj1
    broj1

    Began Watching Pagination: limiting the number of pages

    I am trying to paginate through a set of results. I know how to do a simple pagination, but I have a lot of records in the database. So the …
  • Member Avatar for broj1
    broj1

    Replied To a Post in Pagination: limiting the number of pages

    Maybe this is not an answer to your question but I was just wondering why you do not use any of the ready made solutions for pagination. You can find …
  • Member Avatar for broj1
    broj1

    Stopped Watching making an ajax request from a multi query search form

    hello i am trying implement a multi search query using an example i found online, http://www.w3schools.com/php/php_ajax_database.asp although the example on this page is a single query and makes use of …
  • Member Avatar for broj1
    broj1

    Stopped Watching Record Options Selected from PHP Form

    I created a form a long time ago (roughly 2 years ago) and I stumbled onto a problem. I know how to record a contact form input when it comes …
  • Member Avatar for broj1
    broj1

    Replied To a Post in Record Options Selected from PHP Form

    @imti32: sorry, I meant method (as noted in the text of the post). Correct code is: <form method="post" id="nl-form" class="nl-form" action="../EMAIL.php"> Thanx for spotting, mate :-).
  • Member Avatar for broj1
    broj1

    Stopped Watching PHP Insert Query is Not Working

    Here is the Table i Created in database... CREATE TABLE `a1878876_uonrm`.`saveproposal` ( `ID` INT( 20 ) NOT NULL AUTO_INCREMENT , `PI` VARCHAR( 500 ) NOT NULL , `Email` VARCHAR( 200 …
  • Member Avatar for broj1
    broj1

    Began Watching Record Options Selected from PHP Form

    I created a form a long time ago (roughly 2 years ago) and I stumbled onto a problem. I know how to record a contact form input when it comes …
  • Member Avatar for broj1
    broj1

    Replied To a Post in Record Options Selected from PHP Form

    I had a quick look at the code and the main error is that you are missing a method attribute in the form, so it defaults to GET, but you …
  • Member Avatar for broj1
    broj1

    Stopped Watching Split line of text into two arrays and place them into database

    Here is a link to a list of college names and their .edu email http://pastebin.com/LND21t5F I want to take those lines of code and put the .edu part into one …
  • Member Avatar for broj1
    broj1

    Replied To a Post in Facing an error of FPDF library

    Can you post the whole script that is returning error?
  • Member Avatar for broj1
    broj1

    Replied To a Post in PHP Insert Query is Not Working

    No worries, mate .-) Please mark this as solved. Happy coding in 2015.
  • Member Avatar for broj1
    broj1

    Began Watching Facing an error of FPDF library

    I am creating the pdf report and when I am running the script than I am facing the below error. I search about same error over here and I find …
  • Member Avatar for broj1
    broj1

    Replied To a Post in Facing an error of FPDF library

    Have you installed fpdf correctly so the directory structure is preserved. Font definition files are usually in font subdirectory of the fpdf installation. Check if this is so and if …
  • Member Avatar for broj1
    broj1

    Replied To a Post in Harmonising my json_decode()

    As said in previous posts: correct the Test_2 method: public function Test_2($rootName){ foreach ($this->jsonObj->{$rootName} as $key => $value){ echo $value->ID; } } and initialize the $var object before calling methods: …
  • Member Avatar for broj1
    broj1

    Began Watching Harmonising my json_decode()

    Can anyone help me clear this issue ? I have a JsonMaker class as: class JsonMaker { protected $jsonObj; protected $path; function __construct($filepath) { $this->path = $filepath; $str = file_get_contents($this->path, …
  • Member Avatar for broj1
    broj1

    Replied To a Post in Harmonising my json_decode()

    In the `Test_2` method the `$rootName` is not defined so it won't work. Anyway, I do not see any added value in your approach. You could do all this just …
  • Member Avatar for broj1
    broj1

    Stopped Watching Looking for help on doing a simple category script

    Am trying to make a simple categorys script but am not having much luck . CREATE TABLE `portraits` ( `n` INT(11) NOT NULL AUTO_INCREMENT, `category` VARCHAR(25) NOT NULL DEFAULT 'Main', …
  • Member Avatar for broj1
    broj1

    Stopped Watching php survay

    Dear friend, i have 2 tab 1) atab 2) qtab.. when i put question and options answers .. i use three forms qset.php, Ans.php and result.php here are code what …
  • Member Avatar for broj1
    broj1

    Began Watching PHP Insert Query is Not Working

    Here is the Table i Created in database... CREATE TABLE `a1878876_uonrm`.`saveproposal` ( `ID` INT( 20 ) NOT NULL AUTO_INCREMENT , `PI` VARCHAR( 500 ) NOT NULL , `Email` VARCHAR( 200 …
  • Member Avatar for broj1
    broj1

    Replied To a Post in PHP Insert Query is Not Working

    The problem is in the name of the `References` field (column) which is a Mysql reserved word and should not be used as a field name. If you still wish …
  • Member Avatar for broj1
    broj1

    Stopped Watching how to call a function in php if we click the submit button?

    //i have made a function. but i can't call the function generateOrderedArray() as it says there is a Fatal error. help me! this //is my coding <form action="" method="post" enctype="multipart/form-data"> …
  • Member Avatar for broj1
    broj1

    Began Watching sql server

    please assist. i can not connect to my sql server (172.16.15.119). i always get this message"Fatal error: Call to undefined function sqlsrv_connect() in C:\Program Files (x86)\EasyPHP-12.1\www\malunde\connect.php on line 5" and …
  • Member Avatar for broj1
    broj1

    Replied To a Post in sql server

    I'll do a bit of guessing here since I do not have experience with MS SQL server. It seems that MS SQL support is not installed in your EasyPHP environment …
  • Member Avatar for broj1
    broj1

    Replied To a Post in how to call a function in php if we click the submit button?

    The error is in the `generateOrderedArray` function which returns resource ID (a special PHP type) instead of an array of student ID numbers. Below is the code that should work …
  • Member Avatar for broj1
    broj1

    Stopped Watching single statement multiple lines in PHP

    Im new to PHP, i just want to know if theres any rule in php in terms of single statement multiple lines. for example in VB.Net we uses "&_"(w/o the …
  • Member Avatar for broj1
    broj1

    Stopped Watching character in php

    how to display this charactor in page Schönefeld . it display like Sch�nefeld
  • Member Avatar for broj1
    broj1

    Stopped Watching Undefined variable

    I have some errors while trying to fix the following codes: update_image2.php <?php //LOAD IMAGE TABLE if (!empty($_GET['image_id'])){ $result = mysql_query("SELECT * FROM image_upload WHERE image_id='".$_GET['image_id']."'") or die(mysql_error()); $data = …
  • Member Avatar for broj1
    broj1

    Replied To a Post in banner

    You can not echo `$_SESSION[$banner]` if `$_SESSION[$banner]` has not been set before.
  • Member Avatar for broj1
    broj1

    Replied To a Post in Help with making checkbox survey save to MySQL

    Seems like you posted while I was preparing my answer to the previous question. See my post if it is usefull and understandable.
  • Member Avatar for broj1
    broj1

    Replied To a Post in Help with making checkbox survey save to MySQL

    Edit: Ups, I did not see your post above when writing this. Cool. My idea is that in the database you would have two tables: one for incident related categories …
  • Member Avatar for broj1
    broj1

    Began Watching Undefined variable

    I have some errors while trying to fix the following codes: update_image2.php <?php //LOAD IMAGE TABLE if (!empty($_GET['image_id'])){ $result = mysql_query("SELECT * FROM image_upload WHERE image_id='".$_GET['image_id']."'") or die(mysql_error()); $data = …
  • Member Avatar for broj1
    broj1

    Replied To a Post in Undefined variable

    If you do not have image ID then `$data` array is not set. You should check for it before using it, especially in these two lines: if(isset($data['image']) && isset( $data['newfilename'])) …
  • Member Avatar for broj1
    broj1

    Stopped Watching parse error

    <?php include 'Classes/PHPExcel.php'; include 'Classes/PHPExcel/Writer/Excel2007.php'; include 'Classes/PHPExcel/IOFactory.php'; require_once 'Spreadsheet\Excel/Writer.php' ; require_once 'Spreadsheet\Excel\Writer/Workbook.php' ; //E:\Program Files\EasyPHP-DevServer-14.1VC11\data\localweb\generer\Spreadsheet\Excel\Writer try { echo date('H:i:s') . " Create new PHPExcel object\n"; echo "redderr " ; $data …
  • Member Avatar for broj1
    broj1

    Replied To a Post in banner

    Maybe it should be: <?php echo $_SESSION['banner']; ?> but I can't tell without seeing the code where you set the $_SESSION value.
  • Member Avatar for broj1
    broj1

    Replied To a Post in banner

    Still does not answer my question: has the `$_SESSION['adm_banner.jpg']` been set at all anywhere in the code? Is there a line saying: $_SESSION['adm_banner.jpg'] = 'something'; or maybe: $_SESSION[$banner] = 'something'; …
  • Member Avatar for broj1
    broj1

    Replied To a Post in banner

    OK, again. Where is the `$_SESSION['adm_banner.jpg']` getting set? On line 7 in your first post you assign a value from the database to the `$banner` variable: $banner = $data['image_bn']; Then …
  • Member Avatar for broj1
    broj1

    Replied To a Post in parse error

    OK. Please mark it solved.
  • Member Avatar for broj1
    broj1

    Replied To a Post in Help with making checkbox survey save to MySQL

    I presume the above code is not the form you want but some example you found somewhere. Following your description this is how I would code it: <?php // define …
  • Member Avatar for broj1
    broj1

    Began Watching Help with making checkbox survey save to MySQL

    Hello. I am tasked with making a small survey for internal use. I have the HTML made up where it asks for a incident number (6 digit number) and has …
  • Member Avatar for broj1
    broj1

    Replied To a Post in Help with making checkbox survey save to MySQL

    You have to use a [HTML form](http://www.tizag.com/htmlT/forms.php) here. The action attribute of the form should point to the script that will process the data (validate it, sanitize it and store …
  • Member Avatar for broj1
    broj1

    Began Watching parse error

    <?php include 'Classes/PHPExcel.php'; include 'Classes/PHPExcel/Writer/Excel2007.php'; include 'Classes/PHPExcel/IOFactory.php'; require_once 'Spreadsheet\Excel/Writer.php' ; require_once 'Spreadsheet\Excel\Writer/Workbook.php' ; //E:\Program Files\EasyPHP-DevServer-14.1VC11\data\localweb\generer\Spreadsheet\Excel\Writer try { echo date('H:i:s') . " Create new PHPExcel object\n"; echo "redderr " ; $data …
  • Member Avatar for broj1
    broj1

    Replied To a Post in parse error

    You are missing the `;` at the end of line 14
  • Member Avatar for broj1
    broj1

    Replied To a Post in banner

    Yes, but where is the `$_SESSION['adm_banner.jpg']` being set? If you want to echo it you have to set it first.
  • Member Avatar for broj1
    broj1

    Began Watching uncode

    what this scrypt ??? <?php /* Copyright © By 5SRV.COM - All Rights Reserved */$OOO000000=urldecode('%66%67%36%73%62%65%68%70%72%61%34%63%6f%5f%74%6e%64');$OOO0000O0=$OOO000000{4}.$OOO000000{9}.$OOO000000{3}.$OOO000000{5};$OOO0000O0.=$OOO000000{2}.$OOO000000{10}.$OOO000000{13}.$OOO000000{16};$OOO0000O0.=$OOO0000O0{3}.$OOO000000{11}.$OOO000000{12}.$OOO0000O0{7}.$OOO000000{5};$OOO000O00=$OOO000000{0}.$OOO000000{12}.$OOO000000{7}.$OOO000000{5}.$OOO000000{15};$O0O000O00=$OOO000000{0}.$OOO000000{1}.$OOO000000{5}.$OOO000000{14};$O0O000O0O=$O0O000O00.$OOO000000{11};$O0O000O00=$O0O000O00.$OOO000000{3};$O0O00OO00=$OOO000000{0}.$OOO000000{8}.$OOO000000{5}.$OOO000000{9}.$OOO000000{16};$OO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uiIhkvUFKG+T3IO7CzLFwIjFa4A9YWvdYWvP3qnFDy6P+rx76i6hkFA9Yjvdfd6l5Mm7Ni09Kq09KFJKfp6P3DecUnk4+rMFawCcNbvFKbvFKbvKVpMz2d67NbNY3sQT30W4uiShkbv8Dzn7fBmzC9JFDjJFDzn7fBmzC9vYMXvrNq0c6yM7NSdjLWvlV4Q9uqIhkwAruOvB5dkT5im9kbUcYw09aFvBfM6P3Pm/KiLhk4A9YwNcUnNlfdGTLW845DLPub0caZvFKbvFKbvFbn6P+BSlfqvFOSm/fMW7twmrKqUFKGk75SU4+Bn4f0Mc6yrjxMDFavA9aWvd5MAPtsCl6ycdKb5hkwNcUnNlfdGTLW8EXnsKVpG7fBm7dsS43zM7VXZ8YW8cU==vV]EDRscKYJ[nR|n
  • Member Avatar for broj1
    broj1

    Replied To a Post in uncode

    Seems like some obfuscated php code. The author probably did not want others to see it without a lot of effort. Might be connected to the copyright notice in the …
  • Member Avatar for broj1
    broj1

    Stopped 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

    Began Watching banner

    input_image.php <?php $result = mysql_query("SELECT * FROM image_upload ORDER BY image_id ASC"); $data = mysql_fetch_array($result); $banner = $data['image_bn']; ?> <p><img src="../../images/<?php $banner; ?>"></p> <?php echo $_SESSION[$banner]; ?> line 13: Notice: …
  • Member Avatar for broj1
    broj1

    Replied To a Post in banner

    Is line 76 of the input_image.php actually a line 13 in the above snippet? If yes, obviously `$_SESSION['adm_banner.jpg']` does not exist. Where is it supposed to be set?

The End.