-
Replied To a Post in Styling Google Map
It does not work because you are trying to style an external link loaded by the iframe tag. So, remove this: <iframe src="https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d97183.46594409156!2d-79.98050049999999!3d40.431368449999994!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x8834f16f48068503%3A0x8df915a15aa21b34!2sPittsburgh%2C+PA%2C+USA!5e0!3m2!1sen!2sid!4v1438937398399" width="1000" height="450" frameborder="0" style="border:0" allowfullscreen></iframe> Replace it … -
Replied To a Post in Tiny mce
If you refer to filtering: > Protection against XSS attacks needs to be done on the server since if you can submit contents in a form using TinyMCE one could … -
Replied To a Post in Styling Google Map
Hi, you have defined the init function and the array, but you are not applying the array to the map, so change this: function initMap() { map = new google.maps.Map(document.getElementById('map'), … -
Replied To a Post in Determine week number and select group
Maybe https://xkcd.com/149/ -
Replied To a Post in Tiny mce
Hi, it's a WYSIWYG text editor for HTML pages: http://www.tinymce.com/ -
Replied To a Post in simple queries taking long time to run
Also: what kind of column type are you using for `SaleDate`? Is this column nullable? You could see a performance difference if using date, datetime or varchar and by setting … -
Replied To a Post in simple queries taking long time to run
Hi, first problem is `CURDATE()`, the query won't be cached, you could try to send this date from PHP and see if it improves the execution, at least you should … -
Replied To a Post in how to make shipment track database
Hi, what are the requirements? Is this for a carrier or for a shop? For example: in the second case you will need few tables in which you can record … -
Replied To a Post in Make a script that comments to a facebook post?
Hi, you probably have to use their API, I'm not sure you can use the JavaScript SDK for this task, maybe you will need the PHP SDK, here are the … -
Replied To a Post in how my application will receive post requests??
An hook is a technique to extend or modify the behaviour of an event in a program. A [webhook](https://en.wikipedia.org/wiki/Webhook) is the same but related to web events. A callback url … -
Replied To a Post in How can I progress on web development?
Hi! Bit border line, but I suggest you to learn also how to build raw HTTP requests and parse responses to understand: how to deal with RESTful APIs, how to … -
Replied To a Post in Use input value as an array variable
Hi, to hide an input field use `type="hidden"`: <input type="hidden" name="from[]"> Now, `$_POST['from']` will be an array, if value is not assigned, then it will be an empty array, for … -
Replied To a Post in How to send a mail in php using onclick function
**@broj1** Hi, I've seen that in Magento, for internationalization, it's a refer to gettext `_()`: * http://php.net/manual/en/function.gettext.php -
Replied To a Post in php basic coding
Obtain from where: database, form? Which formula would you apply? -
Replied To a Post in LMDE can't install anything
Hi, in pratice apt does not resolve that repository, you can change it, read these links: * https://wiki.debian.org/SourcesList * http://http.debian.net/ In practice you can set `http://httpredir.debian.org/debian` and let the server … -
Replied To a Post in how my application will receive post requests??
Hi, you have to set a callback URL to receive the POST requests, from Parse API documentation: > The Parse API will POST the parsed email to a URL that … -
Replied To a Post in First post in thread.
It's fine for me on Google Chrome, Ubuntu: Mozilla/5.0 (X11; Linux i686) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/44.0.2403.155 Safari/537.36 -
Gave Reputation to |-|x in min - return more than 1 record
`ORDER BY unit_cm DESC LIMIT 3` will actually give you the 3 records with the highest values of `unit_cm` To get the smallest values use `ORDER BY unit_cm ASC LIMIT … -
Replied To a Post in time_out, max_execution_time nooby question
**@wawammm** Hi! For what I have read about directadmin, it will set a normal cronjob, so if I correctly interpreted the question yes, I think my reply answers to his … -
Replied To a Post in Stray start tag div
Hello, move the `</body>` tag to the end of the page, just before the `</html>` tag. An HTML document is composed two main sections, head and body: <html> <head> <title>Test</title> … -
Replied To a Post in Check if input value is malicious
In addition, you could use `document.createTextNode()`: $('form').on('change', function (e) { var text = $('#bla').val(); $('#cnt').append(document.createTextNode(text)); }); Example: http://jsfiddle.net/u6pqhjzy/ Documentation: https://developer.mozilla.org/en-US/docs/Web/API/Document/createTextNode -
Replied To a Post in time_out, max_execution_time nooby question
Hi, it depends on the OS: on Windows the measured time is the real time; on Linux system calls do not affect the execution time. Read the note at this … -
Replied To a Post in Hamming distance via bit_count error php
@Keimpe Hi! You're correct about the select statement, however the original query is performing a bitwise xor between values in table and the submitted input, then the result is read … -
Replied To a Post in What can i do when my web hosting plan does not include a database?
Ok, now don't forget to apply an **.htaccess** rule to avoid remote downloads of the sqlite file: <FilesMatch ".+\.(db|sqlite)$"> Order Deny, Allow Deny from all </FilesMatch> This will match any … -
Replied To a Post in What can i do when my web hosting plan does not include a database?
Hi, starting from PHP 5.3, SQLite3 is enabled by default, this would allow you to create an sqlite file and connect to it: * http://php.net/manual/en/book.sqlite3.php * using PDO: http://php.net/manual/en/ref.pdo-sqlite.php In … -
Replied To a Post in How to uniquely identify record in any db table without using primary key
> so we can use RowID for uniquely identifying the records right ? Depends how much uniqueness needs to be extended: on SQLite it will be unique over the table, … -
Replied To a Post in How to uniquely identify record in any db table without using primary key
> Interviewer said you need not to use any key in the table either that is a unique key or any natural key. So nothing explicitly defined in the creation … -
Replied To a Post in main-loop
Hi, you mean how to add conditional statements to a loop? For example: var test = 'oranges'; ['apples', 'oranges', 'mango'].forEach(function (elem, index) { // conditional statement if (elem == 'oranges') … -
Replied To a Post in HP printing
Hi, on terminal write `hp-` then hit tab, you should see: hp-align hp-info hp-query hp-check hp-levels hp-scan hp-clean hp-logcapture hp-setup hp-colorcal hp-makeuri hp-testpage hp-config_usb_printer hp-pkservice hp-timedate hp-doctor hp-plugin hp-unload hp-firmware … -
Replied To a Post in image not displayed from database??
The error is generated by line `15`: [5] //$img = $session_data['profile_picture']; ... [15] $data['profile_picture']=array('profile_picture'=>$img); You're using an undefined variable $img, which is commented at line `5`. -
Gave Reputation to diafol in learning php
Forever. You never stop learning. -
Replied To a Post in Mysql table records truncated suddenly
No, it shouldn't happen, check the database error log to find some information: * https://dev.mysql.com/doc/refman/5.7/en/error-log.html It can happen if the database executable (`mysqld`) is killed while writing data to a … -
Replied To a Post in Styling Google Map
Hi, [the overview explains](https://developers.google.com/maps/documentation/javascript/styling#overview) that there are two methods to load these styles. In the first case you can change the default style by assigning the array to the **MapOptions** … -
Replied To a Post in Mysql table records truncated suddenly
Hi, use backups or, if enabled, the binary log: * https://dev.mysql.com/doc/refman/5.7/en/binary-log.html * https://dev.mysql.com/doc/refman/5.7/en/point-in-time-recovery.html * https://dev.mysql.com/doc/refman/5.7/en/backup-and-recovery.html -
Replied To a Post in Valid HTML5 code
Yes, check the W3C Validator: https://validator.w3.org/ -
Replied To a Post in Ticketing System in php
Hi, you can use IMAP to access the ticket@domainname.tld account, then update a database table in which you save the ticket number: http://php.net/manual/en/book.imap.php If you also need to parse the … -
Replied To a Post in error
Hi, the error states that the included file is not found in the current path, I see your **index.php** is under `/homessd/` while you're trying to include **startup.php** from `/home/`, … -
Replied To a Post in Checking on two different strings
I'm not sure I've understood the problem and the request. > it won't work when i have time more than 2 hours So if you do: $next_program_times = $program_times + … -
Replied To a Post in Checking on two different strings
Hi, the issue is at line `12`: $next_program_times = $program_times + 1; If $program_times has value of `3:00 PM` which is a string and you add an integer, you get … -
Replied To a Post in How do I sent a form input element to my shopping cart?
The engraving does not arrive because it is not included in the form used to send the email message, in order to work you should do something like this: <textarea … -
Replied To a Post in How do I sent a form input element to my shopping cart?
Ok, at line `146` you set: $cartOutput .= '<td><form action="cart.php" method="post"><input name="text' . $item_id . '" type="text" class="submit" value="" /><input name="engraving" type="hidden" value="' . $i . '" /></form></td>'; It means … -
Replied To a Post in How do I sent a form input element to my shopping cart?
You're welcome! If the above is full code I can try few tests, otherwise I can only suggest you to break each step to see where it fails, you can … -
Replied To a Post in Need some download help in Codeigniter
Hi, you can create a method in your controller, search the database table and use the Download helper, for example: public function download($id) { # load download helper $this->load->helper('download'); # … -
Replied To a Post in Hamming distance via bit_count error php
Have you tried by moving the condition to the WHERE statement? For example: SELECT * FROM MY_TABLE WHERE BIT_COUNT(CAST(CONV(value,16,10) as unsigned integer) ^ CAST(CONV('$submit', 16, 10) AS UNSIGNED) ) >= … -
Replied To a Post in How do I sent a form input element to my shopping cart?
Using `$_POST['engraving']` as value of the input form assumes a previous step in which you set the value, i.e. another form, but if this form is accessed through a GET … -
Replied To a Post in How do I sent a form input element to my shopping cart?
Sorry I meant `cart_array`: <?php session_start(); echo "<p>Session array:</p>"; echo "<pre>" . print_r($_SESSION['cart_array'], true) . "</pre>"; Then point the form to a dummy cart script: <?php echo "<p>Post array:</p>"; echo … -
Replied To a Post in How do I sent a form input element to my shopping cart?
Hi! > Notice: Undefined index: engraving in /path/httpdocs/store/cart.php on line 13 error This usually happens when you try to access an array index key that does not exists, for example: … -
Replied To a Post in How to make pagination in slim framework?
Hi, Slim Framework supports composer so you can get a pagination library from [packagist.org](https://packagist.org/) or you write it by your self. -
Replied To a Post in mysql call statement with mysqli
Don't know your current code but, you're using procedural style, so the first argument for `mysqli_query()` is the connection link, which is missing from your last pasted code. It was … -
Gave Reputation to jkon in Change the time in the variable
<?php $timeInString = "5:00 PM"; // @see http://php.net/manual/en/function.strtotime.php $timeStamp = strtotime($timeInString); // @see http://php.net/manual/en/datetime.construct.php $dateTime = new DateTime(); // @see http://php.net/manual/en/datetime.settimestamp.php $dateTime->setTimestamp($timeStamp); // @see http://php.net/manual/en/dateinterval.construct.php $dateInterval = new DateInterval("PT5H"); // …
The End.