• Member Avatar for AndrisP
    AndrisP

    Replied To a Post in Mask out (punch out) SVG shapes

    Sorry I am not clear what outcome you expect. Maybe put image examle. In to the mask tags you can define white rect 100% width and 100% height as first …
  • Member Avatar for AndrisP
    AndrisP

    Replied To a Post in Mask out (punch out) SVG shapes

    All masks you need define in to <defs>. You can combine black and white filled masks to get hole or any other figure e.g. <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE svg PUBLIC …
  • Member Avatar for AndrisP
    AndrisP

    Began Watching Mask out (punch out) SVG shapes

    I'm attempting to mask out the circles with the gearMiddle, it is as straight forward as, what you want to mask out, you make black, what you want to keep …
  • Member Avatar for AndrisP
    AndrisP

    Replied To a Post in Input missed in $_post

    In line 4 form action change to <form name="form" action="<?php echo filter_input(INPUT_SERVER, 'PHP_SELF'); ?>" method="post">
  • Member Avatar for AndrisP
    AndrisP

    Began Watching Input missed in $_post

    Sir I have these codes <body onload="code.focus()"> <!-------------------------------------> <form name="form" action="<?php $_PHP_SELF;?>" method="post"> <!-------------------------------------> <div id="partybox"> <!--f_date1--> <label for="datepicker-13"> Date </label> <span style="border:1px solid #FFF;border-radius:3px;width:95px;height:20px;"> <input style="background-color:#FFC;border:1px solid #9C6;text-align:center;" type="text" …
  • Member Avatar for AndrisP
    AndrisP

    Replied To a Post in Why Associative Array Creation Has "=>" And Numerical Array Not ?

    Also you can create array: <?php $numbers[] = "one"; $numbers[] = "two"; $numbers[] = "three"; $numbers[] = "four"; $numbers[] = "five"; ?> it works same as: <?php $numbers[0] = "one"; …
  • Member Avatar for AndrisP
    AndrisP

    Began Watching Why Associative Array Creation Has "=>" And Numerical Array Not ?

    Associative Array <html> <body> <?php /* First method to associate create array. */ [b] $salaries = array("mohammad" => 2000, "qadir" => 1000, "zara" => 500);[/b] echo "Salary of mohammad is …
  • Member Avatar for AndrisP
    AndrisP

    Replied To a Post in auto submit form

    `<body onload="document.all.sendform.submit();">` but watch out - if form action will be self address then it raise endless loop
  • Member Avatar for AndrisP
    AndrisP

    Began Watching auto submit form

    I am trying to auto submit this form when the page loads, and I have tried many different scripts, but none seem to work. Could someone help? <html> <head> <title>Untitled …
  • Member Avatar for AndrisP
    AndrisP

    Replied To a Post in insert values in database

    ... and paste here SQL error message
  • Member Avatar for AndrisP
    AndrisP

    Replied To a Post in Error: Use of undefined constant RETURNTRANSFER

    img open "<" tag is missing in line 49 and required attribute "alt" is missing also - alt text is very necessary for people with sight problems. Alt text always …
  • Member Avatar for AndrisP
    AndrisP

    Replied To a Post in insert values in database

    1. First step - check your input parameters, e.g. in line 10 put: `print_r($_POST); exit();` 2. Second step - allways use backticks for all parameter names - it will protect …
  • Member Avatar for AndrisP
    AndrisP

    Began Watching insert values in database

    I am new here... I am facing a problem in inserting data into database through php. "Connection is established properly." Error is:-error in your sql syntax, correct your query. $firstName …
  • Member Avatar for AndrisP
    AndrisP

    Replied To a Post in Error: Use of undefined constant RETURNTRANSFER

    Try `CURLOPT_RETURNTRANSFER`instead of `RETURNTRANSFER` http://php.net/manual/en/function.curl-setopt.php
  • Member Avatar for AndrisP
    AndrisP

    Began Watching Error: Use of undefined constant RETURNTRANSFER

    Hi, Does anyone have a clue why I get the following error in my further following code ? Notice: Use of undefined constant RETURNTRANSFER - assumed 'RETURNTRANSFER' in C:\xampp\htdocs\test\curl.php on …
  • Member Avatar for AndrisP
    AndrisP

    Replied To a Post in How can I properly create a BEFORE UPDATE trigger to prevent future dates?

    It seems your trigger working fine ![Screenshot.png](/attachments/large/4/a2fb230d2decde1a99060dcf5e7e093f.png "align-center")
  • Member Avatar for AndrisP
    AndrisP

    Began Watching How can I properly create a BEFORE UPDATE trigger to prevent future dates?

    I am working on creating a BEFORE UPDATE trigger which should display an error message if I UPDATE a student's EnrolledDate with a future date. For example, the last inserted …
  • Member Avatar for AndrisP
    AndrisP

    Replied To a Post in please help

    "Please help" is not subject of this topic!
  • Member Avatar for AndrisP
    AndrisP

    Began Watching please help

    hello brothers, I have this VBScript program: Set WSHShell = Wscript.CreateObject("WScript.Shell") Set FSO = Wscript.CreateObject("Scripting.FileSystemObject") Set EnvVar = wshShell.Environment("Process") tBestand= EnvVar("USERPROFILE") & "\Desktop\Items Numbers.txt" Set Bestand = fso.createtextfile(tBestand,2) For x …
  • Member Avatar for AndrisP
    AndrisP

    Replied To a Post in Php Sql Injection Secure Tags

    I recommend you use `filter_input()` or `filter_input_array()` function e.g. $args = array( 'member_registration_username' => array( 'filter' => FILTER_SANITIZE_STRING ), 'member_registration_password' => array( 'filter' => FILTER_SANITIZE_STRING ), 'member_registration_password_confirmation' => array( 'filter' …
  • Member Avatar for AndrisP
    AndrisP

    Began Watching Php Sql Injection Secure Tags

    New Friends! :) The following is my member registration code as of latest. ISSUE 1: I get this error: Parse error: syntax error, unexpected '_' (T_STRING), expecting ',' or ')' …
  • Member Avatar for AndrisP
    AndrisP

    Replied To a Post in loop don't work - only loops on first record

    How mutch `TEMPLATE_ID = 106 ` is in your subquery?
  • Member Avatar for AndrisP
    AndrisP

    Began Watching loop don't work - only loops on first record

    i have this code..,. i dont see what's wrong why its only working on the first record of LOOP of X set serveroutput on size 30000; DECLARE VTEMP NUMBER; VPARENT …
  • Member Avatar for AndrisP
    AndrisP

    Replied To a Post in Unexpected token else

    Each "else if" is unclosed brackets. "for" is closed. "if" inside "for" is closed. But "else if" mis-matched
  • Member Avatar for AndrisP
    AndrisP

    Began Watching Unexpected token else

    hi everyone ,, i have this code below. It seems correct but there is an error. it says here that unexpected token else. function w_tax1() { var z = [0.0,1,0,833,2500,5833,11667,20833,41667]; …
  • Member Avatar for AndrisP
    AndrisP

    Replied To a Post in I can't understand what is my error in my php

    File "insert_pdo": 1. Use `filter_input` http://php.net/manual/en/function.filter-input.php instead of `$email = $_POST['email'];` and `$checkbox = $_POST['checkbox'];` 2. `bindParam()` and `execute()` is missing after the prepare statement http://php.net/manual/en/pdostatement.bindparam.php
  • Member Avatar for AndrisP
    AndrisP

    Began Watching I can't understand what is my error in my php

    Hi everyone hope you are ok i have mistake in my php and i cant find it. please help me I need to create 3 php . create table , …
  • Member Avatar for AndrisP
    AndrisP

    Unendorsed pritaeas

  • Member Avatar for AndrisP
    AndrisP

    Endorsed pritaeas

  • Member Avatar for AndrisP
    AndrisP

    Replied To a Post in Symbolic Link on Network Folder

    "Map network drive" if you are windows user, or open network folder and then save bookmark if you are linux user.
  • Member Avatar for AndrisP
    AndrisP

    Began Watching Symbolic Link on Network Folder

    Most of us know how Symbolic links work, they point to another file or folder on the system. Symbolic links don't work with network folders. You can create a symbolic …
  • Member Avatar for AndrisP
    AndrisP

    Replied To a Post in Insert only if it doesn't exist

    You can create stored procedure eg delimiter $$ drop procedure if exists `check_before_insert`$$ create procedure `check_before_insert`( in p_param_1 varchar(30) ,in p_param_2 varchar(30) ,in p_param_3 varchar(30) ) begin declare v_exists boolean …
  • Member Avatar for AndrisP
    AndrisP

    Began Watching Insert only if it doesn't exist

    How can I do a bulk insert of rows but only if specific combinations of columns don't already exist? Those columns are not unique to the table. (Otherwise I could …
  • Member Avatar for AndrisP
    AndrisP

    Replied To a Post in DaniWeb on Ubuntu Phone

    Yes. FireFox is the best of android web browsers for DaniWeb IMHO.
  • Member Avatar for AndrisP
    AndrisP

    Replied To a Post in DaniWeb on Ubuntu Phone

    It was not the only problem with Ubuntu phone OS. Yesterday I reinstall OS to Flyme Android.
  • Member Avatar for AndrisP
    AndrisP

    Replied To a Post in Mysql Query help for get which column not have maximum % value

    You can define function delimiter $$ create function not_max_of_division( p_product varchar(30) ,p_division varchar(30) ) returns boolean begin declare v_max int; declare v_not_max boolean; select max(t.`sales`) into v_max from `sample` t …
  • Member Avatar for AndrisP
    AndrisP

    Replied To a Post in Mysql Query help for get which column not have maximum % value

    In to the subquery you can select `max(sales) group by Division` then `select * from SAMPLE where product not in (subquery)` eg select t.* from `sample` t where t.`product` not …
  • Member Avatar for AndrisP
    AndrisP

    Began Watching Mysql Query help for get which column not have maximum % value

    SAMPLE TABLE 1 =================================== product Division sales % =================================== product1 divsion1 99 product2 divsion1 51 product3 divsion1 50 product4 divsion2 98 product5 divsion2 41 product6 divsion2 40 product7 divsion3 97 …
  • Member Avatar for AndrisP
    AndrisP

    Replied To a Post in DaniWeb on Ubuntu Phone

    I try it many times but it does not change anything
  • Member Avatar for AndrisP
    AndrisP

    Replied To a Post in DaniWeb on Ubuntu Phone

    Maybe can I disable mobile view on the DaniWeb?
  • Member Avatar for AndrisP
    AndrisP

    Replied To a Post in DaniWeb on Ubuntu Phone

    Another web browser not available on the ubuntu phone. I have Meizu pro 5 Ubuntu edition. All software is updated.
  • Member Avatar for AndrisP
    AndrisP

    Edited DaniWeb on Ubuntu Phone

    What has gone wrong with DaniWeb? It is no longer normal usable on the Ubuntu Phone.
  • Member Avatar for AndrisP
    AndrisP

    Created DaniWeb on Ubuntu Phone

    What has gone wrong with DaniWeb? It is no longer normal usable on the Ubuntu Phone.
  • Member Avatar for AndrisP
    AndrisP

    Began Watching DaniWeb on Ubuntu Phone

    What has gone wrong with DaniWeb? It is no longer normal usable on the Ubuntu Phone.
  • Member Avatar for AndrisP
    AndrisP

    Replied To a Post in SQL JOIN on five tables

    You don't need use subqueries select a.`p_ID` ,a.`p_fName` ,a.`p_mName` ,a.`p_lName` ,b.`a_ID` ,b.`a_street` ,b.`a_box` ,b.`a_city` ,c.`c_ID` ,c.`c_name` ,c.`c_city` from `personTb` a inner join `personAddress` b on b.`p_ID` = a.`p_ID` inner join …
  • Member Avatar for AndrisP
    AndrisP

    Began Watching SQL JOIN on five tables

    there are five tables (personTb, addressTb,churchTb) each holds data pertinent to an individual; (personAddress,personChurch) each hold the primary key for the person table and corresponding table IE personAddress holds primary …
  • Member Avatar for AndrisP
    AndrisP

    Replied To a Post in Access variable outside - inside a function ?

    if you declare variable outside a function (before declare function) then you can access and change it inside eg var someVariable; function someFunction(){ someVariable = 5; } alert(someVariable); // undefined …
  • Member Avatar for AndrisP
    AndrisP

    Began Watching Access variable outside - inside a function ?

    How do you access a variable inside a function without placing the variable inside of the function in Javascript ?
  • Member Avatar for AndrisP
    AndrisP

    Marked Solved Status for bash sed save to variables and do something

    How i can `sed` save pattern matches to variables and do something with it? eg $ echo "string_4.3.2" | sed 's/^string_\([0-9]\)\.\([0-9]\)\.\([0-9]\)$/\1 \2 \3/' output "4 3 2" but I want …
  • Member Avatar for AndrisP
    AndrisP

    Replied To a Post in bash sed save to variables and do something

    Thanks to everyone who tried to help. I found solution: string="string_4.3.2" if [[ $string =~ ^string_([0-9])\.([0-9])\.([0-9])$ ]]; then do_something "${BASH_REMATCH[1]}" "${BASH_REMATCH[2]}" "${BASH_REMATCH[3]}" fi

The End.