-
Replied To a Post in Mysqli Syntax Error keeps coming up
*// ops! I just saw your reply Diafol! :D* Hi, can you share the error with us? Also: are you using MySQLi or PDO? The former returns boolean TRUE for … -
Gave Reputation to diafol in Generating Bills
>im going to upload my application to some free server you guys will see it and then give me your suggestions. Erm, not sure that works by itself. Code is … -
Gave Reputation to jkon in Getting the “after root URL” with PHP
Hello cereal , Well actually it is not like parse_url , lets see an example but many more can be made, Lets say that you have this .htaccess and this … -
Gave Reputation to rproffitt in Generating Bills
@cereal. My thought was "how strange to ask to use a daemon and as cron was such a thing, well, may as well point that out." It should be interesting … -
Replied To a Post in Generating Bills
**@rproffitt** The **cron** program is indeed a daemon, but the scripts listed in the cron table (crontab) are usually not daemons: once executed they quit and will ran again at … -
Replied To a Post in $HTTP_RAW_POST_DATA error
I try keep it handy: I'm on linux, I've only installed PHP (+ libraries) and the databases, I'm not using Apache or Nginx for development, not if I don't have … -
Replied To a Post in Generating Bills
Hello all! **@spluskhan** you can do that, but by increasing the number of bills to process, the script may crash for timeout or for memory issues, for this reason you … -
Gave Reputation to jkon in Getting the “after root URL” with PHP
I found myself starting to answer a question that I have answered many times , so I thought why not making a code snippet and just reference this. This is … -
Replied To a Post in Getting the “after root URL” with PHP
Hi, so it's like the [`parse_url()` function](http://php.net/parse-url), correct? -
Replied To a Post in $HTTP_RAW_POST_DATA error
So the file is restored to the original? As I wrote I don't know about WAMP setups, it could be the software that keeps the file in memory, stop the … -
Replied To a Post in is it possible to run php page from lua code?
Do you mean like a shell execution? -
Replied To a Post in Connection of PHP and mysql
Check the documentation of the connect function, you can fix it by yourself ;) -
Replied To a Post in PHP to Excel
Not tested, could be the encoding? Try, for example, to add `;charset=utf-8` to the content type header. -
Replied To a Post in Using PHP DOM to change title in bold format and other string modifications
Hi, it happens because in `<140/90 mmHg OR <130/80 mmHg)` there is the `<` character that has a special meaning in the HTML parsing. Example: <?php $html = '<p>Hello < … -
Replied To a Post in $HTTP_RAW_POST_DATA error
Fix this part of the code: foreach ($_FILES['audioaud']['name'] as $name => $value) { $filename = stripslashes($_FILES['audioaud']['name'][$name]); the first argument of the **foreach** should be an array, you're submitting a string, … -
Replied To a Post in $HTTP_RAW_POST_DATA error
You're welcome. About the first warning see also: * http://php.net/manual/en/ini.core.php#ini.always-populate-raw-post-data > but the audio file still doesnt been uploaded. Can you show the script? -
Replied To a Post in $HTTP_RAW_POST_DATA error
Hi, remove the `;` from this line: always_populate_raw_post_data = -1 semi-colons, in the PHP configuration files, are used to comment lines and exclude them from the parsing. //Edit And remember … -
Replied To a Post in Connection of PHP and mysql
> the browser display "Cannot Select Database". ok, it's the same issue: add the **$conn** parameter to the `mysqli_select_db()` function, see: * http://php.net/manual/en/mysqli.select-db.php If you read the documentation carefully, you … -
Replied To a Post in PHP Generate UL LI , UL LI
Good for you, bye! :) -
Replied To a Post in Connection of PHP and mysql
Hi Zelrick, line **21:** `$mypassword=$_POST['pwd'[`; wrong closing bracket, fix that and the script seems fine, for me. Have you tried to print something before the rest of the script executes? … -
Replied To a Post in Connection of PHP and mysql
Is the Apache **access log** registering the requests? Are you accessing the form page from the server or through `file:///`? There are some errors at lines 25, 27, 31 and … -
Replied To a Post in Syntax Error
Hi, look I will not fix that query as it would be wrong in any case. Use prepared statements. Example with PDO: $query = "INSERT INTO `history` (`user`, `login`, `logout`, … -
Replied To a Post in Connection of PHP and mysql
> When I was trying to undo what I done everything has been not working lol it happens :) that's a good reason to use virtual machines, so the base … -
Replied To a Post in PHP Playlist and player
Hi, have you tried PI MusicBox? http://www.pimusicbox.com/ -
Replied To a Post in Slow API response
Hi Dani! You can see the response header and the request flow by adding: curl_setopt($ch, CURLOPT_HEADER, TRUE); curl_setopt($ch, CURLOPT_VERBOSE, TRUE); > I'm passying in Connection: keep-alive headers but they are … -
Replied To a Post in Undefined variable: row
**@harsh_7** Hi, I'm not sure what the OP was trying to do but, in reference to result sets from databases, look at methods like `bindColumn()`: * http://php.net/manual/en/pdostatement.bindcolumn.php the variable is … -
Replied To a Post in Problem with simple echoing a form
Reverse: * remove the short PHP tags `<?`; * remove the shorthand `=` for echo as this string is already in a print construct; * leave the curly brackets in … -
Gave Reputation to urtrivedi in Problem with simple echoing a form
Remove curly braces around $_server variable, its used when you want to embed variable in string. echo "<form action ='<?=$_SERVER[PHP_SELF]?>' method = 'POST'/>"; echo "<input type='submit' name='off' value='Turn OFF Grow … -
Replied To a Post in PHP script count leave days + Problem
As alternative, if the dates are saved into a database table, you could use `datediff()` along with `date_add()` (to get the [inclusive counting](https://en.wikipedia.org/wiki/Counting#Inclusive_counting)) and `sum()`, for example: select sum(datediff(date_add(`to`, interval … -
Replied To a Post in Connection of PHP and mysql
Hi, in the **dbconnect.php** file you have this line: $conn = new mysql($servername, $username, $password); which is wrong. In PHP there are three APIs that you can use: mysql, mysqli … -
Replied To a Post in PHP Generate UL LI , UL LI
Ok, then you could use PDO to group the results into an array, the index key is defined by the first column listed in the SELECT statement, in your case … -
Replied To a Post in PHP Generate UL LI , UL LI
Hi, so you want to group the names under each town? For example: <ul> <li>Town <ul> <li>Name X</li> <li>Name Y</li> <li>Name Z</li> </ul> </li> ... </ul> is this correct? -
Replied To a Post in PHP+MYSQL Query
> ErrorUnknown column 'created_at' in 'where clause' > How to overcome this Replace with the appropriate columns, mine is an example, I don't know your table structure. -
Replied To a Post in PHP+MYSQL Query
You can do: SET @dt = '2016-07-18'; SELECT * FROM `arrival` WHERE `created_at` >= DATE_FORMAT(@dt ,'%Y-%m-01') AND `created_at` < @dt; the `DATE_FORMAT()` will output the first day of the month … -
Replied To a Post in Mc Access Database
Hi, if the connections are limited (20 concurrent users) then Access can work fine, by opening more connections the database performance can degrade fast. How do you plan to update … -
Replied To a Post in how to looks for list of enterpreneurs ?
You can start from yellow pages or get a list at the local chamber of commerce. Start from typography services, if they like the work you do for them, there … -
Replied To a Post in Google Analytics Alternative
Hi, do you want to build it from scratch or you want to install a monitoring software? In the first case you can parse the access logs of the server … -
Replied To a Post in For use if else check the availability of the information
Hi! Your thread is marked solved, did you actually solved the issue? Do you care to share your solutions for the readers? Last question: are these `1/07/59 - 2/07/59` Thai … -
Replied To a Post in Invalid argument supplied foreach online host, but works fine on localhost?
Hi, is the curl request link correct? By testing I get a 404 page, not JSON data. -
Replied To a Post in Retrieve data from one database to another
Hi, * is the second database in the same server of the first database? * if affirmative: do you access with same credentials? * if affirmative: do you have same … -
Gave Reputation to showman13 in play embedded youtube video in fullscreen automatically
Just in case anyone is interested... I never did find a way to display full screen automatically no matter what the device. Instead I opted to set the i frame … -
Created XML load issue with parent/child nodes
Hello everybody, so, I realized that when I try to load some XML into a MySQL table through the `LOAD XML LOCAL INFILE ...` statement, if there is a parent … -
Replied To a Post in Data Saving Issue
Hello, if haven't solved yet, show us the schema of the history table, run: SHOW CREATE TABLE `history`; Consider that the insert cannot occour if there is a unique key … -
Began Watching Concat multiple rows into single row in DB2
i want to combine multiple rows into a single row using **DB2**. I have found this code, but I do not know how can i edit it>? CREATE FUNCTION MySchema/MyUDF … -
Replied To a Post in PHP - Column count doesn't match value count at row 1
**Date** is a reserved word, use backticks for the column and table names. -
Replied To a Post in sql database
Maybe [this thread?](https://www.daniweb.com/programming/web-development/threads/503302/xampp-for-win-7-64-bit) To check your previous threads go to your profile and click on [**Discussion Threads**.](https://www.daniweb.com/members/903876/davy-yg/threads) -
Replied To a Post in DW User Shortcuts
> If using Chrome as your browser, you can install Tampermonkey as a plugin extension. It works also with the [CJS (Custom JavaScript extension).](https://chrome.google.com/webstore/detail/custom-javascript-for-web/poakhlngfciodnhlhhgnaaelnpjljija?hl=en) Thank you for sharing, it's great! … -
Began Watching mysql php update with multiple where clause
Hi, i have two tables in mysql. Tbl1 - lets call it {$tbl_p} has product_id and tax_id fields. Tbl2 - lets call it {$tbl_c} has product_id and tax_id_w fields. Tbl1 … -
Marked Solved Status for Message Inbox > Conversation failed post
Hello, I was trying to send a PM but it seems to hang: after clicking the submit button this disappears and it does not happen anything else. With short messages … -
Gave Reputation to Dani in Message Inbox > Conversation failed post
Diafol, you hijacker!! Cereal, bug should be fixed in that you should no longer be getting a 500 error. However, there is currently a 5000 character maximum. Diafol, you're seeing …
The End.