2,113 Posted Topics
Re: 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 … | |
Re: 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 . | |
Re: 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 … | |
Re: 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. | |
Re: // 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 … | |
Re: Continue here: https://www.sitepoint.com/community/t/why-400-error/266706 | |
Re: 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 … | |
Re: `${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 | |
Re: 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. | |
Re: 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! | |
Re: 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? | |
Re: 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. | |
Re: Maybe this will be helpful for your research: * https://arxiv.org/abs/1703.04993 | |
Re: 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). | |
Re: 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 ... … | |
Re: 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 … | |
Re: With the `disabled` attribute those inputs are not submitted by the browser, you can use `readonly` instead. | |
Re: 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 … | |
![]() | Re: 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 … |
Re: 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 | |
Re: 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 … | |
Re: 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 … | |
Re: 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 | |
Re: 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 … | |
Re: 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`, … | |
Re: 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 … | |
Re: You have to print the $row: <iframe src="<?php echo $row["blog"]; ?>"></iframe> See if this helps. ![]() | |
Re: 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 … | |
Re: 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. | |
Re: 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. | |
Re: 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 … | |
Re: > 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("")); | |
Re: 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 … ![]() | |
Re: 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 … | |
Re: 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. | |
Re: 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 … | |
Re: 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 … ![]() | |
Re: Hi, it is not clear where you are having difficutiles. | |
Re: 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 … | |
Re: 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 … | |
Re: 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 … | |
Re: Hi, can you show the previous step, i.e. the code used to set the session variables? | |
Re: 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 … ![]() | |
Re: 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> … | |
Re: 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 … ![]() | |
Re: 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 … | |
![]() | Re: > 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 … |
Re: 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 … |
The End.