2,113 Posted Topics

Member Avatar for Peter_56

The loop is not executing the insert query, because the statement is executed at line 13. So only the last will be inserted. The insert can fail for different reasons: * $id does not increment through the loops, i.e. with: `$i++;` * when you execute the form again, $id will …

Member Avatar for AndrisP
0
403
Member Avatar for peace_coder

Also you have to include the TweenMax javascript: * https://cdnjs.cloudflare.com/ajax/libs/gsap/1.12.1/TweenMax.min.js it's visible in Codepen JS settings .

Member Avatar for cereal
0
306
Member Avatar for peace_coder

Hi, if you can edit the main php.ini file, change the option to on: allow_url_fopen=on then reload the phpinfo page to see if it applied. The location of the file is defined in the *Configuration File (php.ini) Path* of the phpinfo view. If you cannot edit the main php.ini, you …

Member Avatar for peace_coder
0
4K
Member Avatar for Raghu_2
Re: php

Hi, please share the code and explain where you have difficulties. Also write meaningful titles, just *php* does not help who wants to help or is searching a solution for your same issue.

Member Avatar for cereal
0
97
Member Avatar for dsimonovski1

// EDIT In addition to rproffitt's: contents, in the MS knowledge board, are loaded through Javascript, file_get_contents() won't load them, you need a rendering engine (like browsers do) to run your scripts. So you need something like PhantomJS: http://phantomjs.org/ Few months ago I posted an usage example here: * https://www.daniweb.com/community-center/threads/507919/daniweb-breaking-links-in-posts#post2218987 …

Member Avatar for cereal
0
360
Member Avatar for UI
Member Avatar for UI
0
403
Member Avatar for UI

Hi, in practice you want to log the `$url` variable. Between line 202 and 246 the scripts initialize the variable, verifies if the url format is valid and finally it attemps to contact the server. Now you have to decide at which step you want to log, for example if …

Member Avatar for UI
0
1K
Member Avatar for chrisschristou

`${APACHE_RUN_DIR}` should be defined in `/etc/apache2/envvars`, now I don't have one to verify, but it should be something like: export APACHE_RUN_DIR=/var/run/apache2$SUFFIX

Member Avatar for rproffitt
0
2K
Member Avatar for shivya_1

Hi, add error checks before and after the query: if($conn->connect_errno) die(sprintf("CONNECT ERROR: %s: %s", $conn->connect_errno, $conn->connect_error)); $result = mysqli_query($conn, $sql); if($conn->errno) die(sprintf("ERROR: %s [%s]: %s", $conn->errno, $conn->sqlstate, $conn->error)); And see if you get any useful input.

Member Avatar for cereal
0
315
Member Avatar for Pamela_6

Hi, enter the bios, change the start up order to read the USB media before than the primary disk, save and restart. Here you can find more suggestions: * https://answers.microsoft.com/en-us/insider/forum/insider_wintp-insider_install/performing-a-windows-10-update-everything-seemed/663f38cf-b941-431e-858f-2881c7793ff1?page=1 Bye!

Member Avatar for KushMishra
0
2K
Member Avatar for a5opyan

How is this script working? Through command line or through web interface? Do you have access and error logs of the web server (in case of web interface) and of the FTP server?

Member Avatar for Mr.M
0
256
Member Avatar for Mhecha

Hi, you are missing a comma between these two columns, in the update statement: work_carry = '$work_carry' demage_found = '$demage_found' Then `edit_customer_detail` is not set by the form which, however, is okay if this is set by a previous step and carried through GET.

Member Avatar for Mhecha
0
449
Member Avatar for Kasia_3
Member Avatar for jkon

Okay, I do not dance. Never. But I can listen the music while squinching at my shadow :D However the YT link seems broken (I mean the video id, not the protocol).

Member Avatar for cereal
0
283
Member Avatar for peace_coder

It seems godaddy was used to register and manage the DNS. Enter into the domain management page and see where it points. From those IPs you should be able to find the hosting company. The same can be done through tools like `dig` and `whois`: > dig daniweb.com ANY ... …

Member Avatar for cereal
0
406
Member Avatar for seularts

Hi, in your view.php code, you have this query: SELECT * FROM jobselection_data_old WHERE id=:id Then you bind the first column returned by the wildcard `*` to the variable `$lob`, which means that if the table structure as an id column as first column, $lob will receive the value of …

Member Avatar for cereal
0
3K
Member Avatar for phphp

With the `disabled` attribute those inputs are not submitted by the browser, you can use `readonly` instead.

Member Avatar for AndrisP
0
215
Member Avatar for dottomm

Hi, what is the size of the array? There are few errors: 1. a syntax error: you are missing a comma between user_id and dateTime; 2. dateTime, it does not matter the case, is a [reserved word,](https://dev.mysql.com/doc/refman/5.7/en/keywords.html) so use backticks. Also you could move `prepare()` outside the loop and use …

Member Avatar for cereal
0
723
Member Avatar for anmol.raghuvanshi1

It would be helpful to know how you upload multiple images: 1. are you using an array? <input type="file" name="image[]"> 2. or different names? <input type="file" name="image_1"> <input type="file" name="image_2"> <input type="file" name="image_3"> <input type="file" name="image_4"> <input type="file" name="image_5"> Because in first case you must loop the `$_FILES` array to …

Member Avatar for Rizvan_1
0
7K
Member Avatar for t_thakar

If you can use the latest version of MySQL, then you can use JSON_REPLACE: JSON_REPLACE(data, '$.Employee_Number', '544') See: https://dev.mysql.com/doc/refman/5.7/en/json-modification-functions.html

Member Avatar for cereal
0
280
Member Avatar for UI

Hi, read the notice and the warning: Notice: Use of undefined constant RETURNTRANSFER - assumed 'RETURNTRANSFER' in C:\xampp\htdocs\test\curl.php on line 27 Warning: curl_setopt() expects parameter 2 to be integer, string given in C:\xampp\htdocs\test\curl.php on line 27 The **notice** tells you that `RETURNTRANSFER` is not defined. The PHP engine in this …

Member Avatar for cereal
0
1K
Member Avatar for soph2602

Hi, in this case the artisan command won't solve the issue, because it's PHP telling those functions are deprecated as PHP 7.1.0. The Mcrypt library has been declared deprecated and will be moved to [PECL](https://pecl.php.net/package/mcrypt) with the release of PHP 7.2.0, this because it relies on libmcrypt which has not …

Member Avatar for cereal
0
998
Member Avatar for Mrewan79

Hi, you have to define an HTML form, for some examples see: * https://learnrubythehardway.org/book/ex51.html * https://github.com/sinatra/sinatra/blob/master/examples/chat.rb

Member Avatar for cereal
0
459
Member Avatar for phphp

Localhost? It seems a ramsonware, a virus that encrypts data and ask money to return the files back. If you are using Windows that's probably in your system, so it should not be related to the application code. The same can happen if the folder is shared in a local …

Member Avatar for Josh Ross
0
405
Member Avatar for soph2602

Hi, in order to send an email through SMTP you need to setup the connection correctly, right now you are pointing the **host** to `localhost` instead of something like `smtp.domain.tld` and the port to `25`, which is not correct if connecting through `tsl` or `ssl`, it may be port `465`, …

Member Avatar for cereal
0
6K
Member Avatar for patk570

Hi, look at the WHERE clause, you have: WHERE (qbcd_user_email.address = '[email protected].') So is going to search an email address with a leading and trailing dot, due to: WHERE (qbcd_user_email.address = '.$email.') Since you are using double quotes to enclose the query, you don't need the concatenation operator `.`, just …

Member Avatar for cereal
0
410
Member Avatar for UI

You have to print the $row: <iframe src="<?php echo $row["blog"]; ?>"></iframe> See if this helps.

Member Avatar for diafol
0
2K
Member Avatar for Dani

The **ssh-keygen** command generates keys for ssh, these are stored into your profile, under the `~/.ssh/` directory. Through **scp** you are copying your local `~/.ssh/*.pub` files (the public keys) into the `~/.ssh/autorized_keys` file of your remote home directory account, i.e. into [email protected] To get information about the commands simply prepend …

Member Avatar for pty
0
885
Member Avatar for Dani

Hi Dani, hope you're doing well, try to send the report to [email protected] or to their forums http://forums.zend.com and see if they can help. It seems related to Zend, if it was the system then there would be something about a shared library issue.

Member Avatar for Dani
0
388
Member Avatar for davy_yg

You have already asked this: * https://www.daniweb.com/programming/web-development/threads/500001/changing-style-color * https://www.daniweb.com/programming/web-development/threads/461404/change-css You received solutions in both threads. Bye.

Member Avatar for cereal
0
400
Member Avatar for nadiam

Hi! Those are definitions of the same function (hcf), the first line is defining a default in case the second argument is 0, in that case returns the first argument (a). Why? Because if you run `mod 1 0` you get an exception: *** Exception: divide by zero In haskell …

Member Avatar for cereal
0
213
Member Avatar for Dani
Member Avatar for UI

> Saying all this, I guess white space or the TAB/INDENT is considered as FALSE if some-how there can be "values" set to them one way or the other. Have you tried to evaluate it through `var_dump()`? var_dump(empty("\t"), empty(" "), empty(""));

Member Avatar for Reverend Jim
0
282
Member Avatar for UI

You can also use a regular expression (regex), in PHP you can use regex with `preg_*` functions: preg_match_all('/5/', $numberedString, $matches, PREG_OFFSET_CAPTURE); The first argument is the pattern to search, the slashes are delimiters; the second argument is the subject to search, your string; the third argument is the array that …

Member Avatar for diafol
0
259
Member Avatar for UI

In addition: it happens because it's boolean FALSE which is converted automatically to an empty string, you won't get a string FALSE, for example: echo "FALSE"; # string, printed echo 'FALSE'; # string, printed echo FALSE; # boolean, empty From the manual: > A boolean TRUE value is converted to …

Member Avatar for AssertNull
0
217
Member Avatar for KagaKuro

Hello KK, from the screenshot is seems you are trying to load CI resources from outside the application folder. Is Contact.php a CI controller? Can you share it? Remember to remove address and password as the post is public.

Member Avatar for KagaKuro
0
3K
Member Avatar for developer707

Hi, `IS NOT NULL` is not a string, [it's an expression](https://dev.mysql.com/doc/refman/5.7/en/expressions.html). So, as far as I know, you cannot bind it into a prepared statement. Do two queries: if($gjendja_id > 0) { $stmt = $dbconnection->prepare('SELECT a.dokumenti, a.datafillimit, a.datambarimit, b.programi, c.lloji_diplomes, d.ial, e.akreditimi FROM programet_akreditimet AS a INNER JOIN programet AS …

Member Avatar for cereal
0
363
Member Avatar for UI

In the specific case of Twitter, there is an API that allows to search through the public tweets of a specific account: * https://dev.twitter.com/rest/public/search You can check the libraries used to connect this service here and see how it is done: * https://dev.twitter.com/resources/twitter-libraries#php If you want to check the contents …

Member Avatar for diafol
0
359
Member Avatar for Lord_2
Member Avatar for davy_yg
Member Avatar for adriculous

Hi, I don't want to add confusion, but I wonder if there is an open process pointing to an unlinked file in that directory. Try something like: lsof -nP +L1 | grep '(deleted)' | grep -i ".club" from a terminal, to see if it outputs results. To be honest, I …

Member Avatar for rproffitt
0
350
Member Avatar for UI

Have you read this? http://php.net/manual/en/language.expressions.php Basically a statement can be an expression. And: > The simplest yet most accurate way to define an expression is "anything that has a value" About tokens: in PHP it can be, strictly, used to define some parts of the language or used widely by …

Member Avatar for cereal
0
1K
Member Avatar for dusk2dawm

Hi! In addition to previous suggestion: if the **path** is wrong or does not have write permissions Python would return: sqlite3.OperationalError: unable to open database file Instead you get: sqlite3.OperationalError: no such table: Airports Which can be generated if: 1. the database file name is wrong due, for example, to …

Member Avatar for rproffitt
0
24K
Member Avatar for Teri_1

Hi, can you show the previous step, i.e. the code used to set the session variables?

Member Avatar for abubaker_2
0
22K
Member Avatar for UI

Hi, what you get with `var_dump($numrows);`? Besides, look at your query: SELECT * FROM users WHERE usernames='abc' OR emails='abc' AND passwords='WRONG_pass'; Basically it is like writing: SELECT TRUE OR FALSE AND FALSE; Which evaluates to `TRUE`: +---------------------------+ | TRUE OR FALSE AND FALSE | |---------------------------| | 1 | +---------------------------+ In …

Member Avatar for diafol
0
353
Member Avatar for gahhon

Hi, once you load the document, create an element (customer) inside the root (customers), then create the children elements of customer and append them to it, at the end append the customer element to the root. Basically: <?php $str = <<<'XML' <customers> <customer> <ID>C1</ID> <FirstName>Jack</FirstName> <SurName>Wong</SurName> <Email>[email protected]</Email> <Password>081292</Password> </customer> <customer> …

Member Avatar for cereal
0
412
Member Avatar for SARDEN

Hi, read the error carefully, it says: > Error: SQLSTATE[HY093]: Invalid parameter number: parameter was not defined. And look at your prepared statement: $query = $pdo->prepare('INSERT INTO subscriptions (name, email, subscribe) VALUES(:name, :email, :chk)'); And the execution: $query->execute(array(':name'=> $name,':email'=> $email, ':subscribe'=> $chk)); As you see you have defined `:chk` in …

Member Avatar for diafol
0
3K
Member Avatar for Mul_1

Hi! This variable `$dweetcom_borang` is not defined in the script and it is used in the delete statement: $sql = "DELETE FROM $dweetcom_borang WHERE id=$del_id"; I see, however, that in the select statement, at line 9,you are not using a variable, so I wonder if this is the issue. Let …

Member Avatar for cereal
0
250
Member Avatar for diafol

> Has 7 made any difference to the way you code? A bit. To be honest, a part personal code, I have used PHP 7 only for one client's project because it was starting with that version, in that case I used strict type declarations, CSPRNG functions and Throwable to …

Member Avatar for rubberman
1
398
Member Avatar for Lloyd_4

If you manually run the query, does it works? If, for example: you are using InnoDB, autocommit is disabled, then there could be a deadlock. A part from that, use var_dump against $invoice, to be sure the value is really received by the script. Also, if you are running ext/mysqli …

Member Avatar for drmrkrch
0
318

The End.