8,966 Posted Topics
Re: Here's a code snippet for [SQLite2](http://www.daniweb.com/web-development/php/code/442433/using-phpsqlite2-with-error-checking) and [SQLite3](http://www.daniweb.com/web-development/php/code/442441/using-phpsqlite3-with-error-checking). Line 8 has no semi-colon, or `if` as cereal mentions. You need to fetch from the result. | |
http://phalconphp.com/ Anybody here who has already tried this one? Am curious to any experiences. ![]() | |
Re: `htaccess` has no knowledge of browser resolutions, only user-agents. RewriteCond %{HTTP_USER_AGENT} "android|blackberry|ipad|iphone|ipod|iemobile|opera mobile|palmos|webos|googlebot-mobile" [NC] | |
Re: $b = array (); foreach ($a as $key => $value) { if (isset($b[$key])) { $b[$key] += $value; } else { $b[$key] = $value; } } print_r($b); | |
Re: Search this forum, plenty of topics on projects. YOU need to select something YOU like. ![]() | |
The following snippet shows how you can use binding in your queries when using PDO. For starters, here's the table structure I've used: CREATE TABLE `mytable` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(255) DEFAULT NULL, `email` varchar(255) DEFAULT NULL, `dob` date DEFAULT NULL, `level` int(11) DEFAULT NULL, PRIMARY … | |
Re: If you do not specify the columns in an SQL insert query, you'll need to specify values for ALL columns in that table. | |
Re: Create a page that uses AJAX to poll for new information every N seconds/minutes. Without Javascript you can add a meta tag to refresh the whole page. | |
Re: > how can I determine merchant id and sum the weight base on product ID?? Hard to say without knowing the table structures you're using. | |
Re: > syntax error in query expression "order Id Output `cmd.CommandText`, there is an error in your query. | |
Re: As long as you stick to our [rules](http://www.daniweb.com/community/rules), there's not really a problem. Be sure to provide some content, and not just a list of links. | |
| |
Re: With runat server the id of the inputbox is changed, so your function doesn't find it. Try adding the attribute `ClientIDMode="Static"` | |
Re: What exactly messed up? Line 41 should be: $sql = "DELETE FROM `marcacao` WHERE `marcacao`.`id` = `$id`"; // note the dollar sign to indicate the variable $id Line 56: I think `$estado` should have single quotes: `'$estado'` | |
Re: Shouldn't you be passing `input.value` ? | |
Re: > What is this cat in a box theory suggesting? That observing an experiment may have consequences for it's outcome. | |
Re: `$("#layout_select").val()` should contain the selected value. | |
Re: I think you need to hide one of the paragraphs when you click a button, and use a single print stylesheet. | |
Re: You can study the CSS of one of my tests [here](http://www.pritaeas.net/hosted/oww-test/). | |
Re: Network inspection screenshot attached. Taken while running my DwArticleWatch API client. Default response always was below 2 secs. | |
Re: http://jquery.malsup.com/cycle/pager-over.html Note that's just a demo. If you choose dots, change the CSS. It also supports fading. | |
Re: The basics of this are explained in this [code snippet](http://www.daniweb.com/web-development/php/code/437655/getting-products-details-from-categories-subcategories-with-ajax-call-). | |
![]() | Re: Am not sure what needs explaining. The result returned by a `mysqli_query` is a [result object](http://php.net/manual/en/class.mysqli-result.php). |
Re: http://www.thumbshots.com You can see this when you view the image link on the profile page, so I guess it's the same in threads. | |
Re: This probably (untested): UPDATE db.table SET col1 = IF(col3 IN ('a', 'b', 'c') AND col2 = 'something', 1, 0) | |
Re: What happened? Do you get errors? Be more specific, we cannot just guess what's wrong without knowing/seeing what you have done. | |
Re: Adding your company link in your signature is allowed. You can edit it in "Edit Profile". | |
![]() | Re: From the [mysqli_affected_rows manual](http://php.net/mysqli_affected_rows): *"Returns the number of rows affected by the last INSERT, UPDATE, REPLACE or DELETE query."* From the [mysqli_num_rows manual](http://php.net/mysqli_num_rows): *"Returns the number of rows in the result set."* ![]() |
Re: `$foo` is an empty string or has invalid markup. See the second comment (by Shane Harter) [here](http://php.net/manual/en/domdocument.loadhtml.php). | |
Re: Your query needs to use single quotes around your values, not double. IIRC you can also specify the database with one of the command line options, so you don't have to use "USE". ![]() | |
Re: The setTimeout function does not wait for a second, if that's what you're after. So the changes in the loop (without the alert) happen so quickly, that the DOM gets no time to refresh, and therefor updates after the loop is done. | |
| |
Re: > Nothing is getting done , no pulls , no push , no syncs , no nothing! What have you tried? Getting errors? | |
Re: I found [this](http://www.dbforums.com/oracle/892234-writing-trigger-oracle-should-stop-current-transaction.html), basically it triggers an application error. | |
Re: It's a logic error. You are searching between two times for all days in the range. You want to search from a specific date and time up to another date and time. | |
Re: > Call to undefined function sqlite_open() in /var/www/ET/process.php on line 9 SQLite is not enabled. Check your PHP.INI Thread closed. Continued [here](http://www.daniweb.com/web-development/php/threads/462188/simple-sqlite-row-query). | |
Re: > How does one go about adding more calculations and outputs to the same slider Just add more code to the `slide` event. If you have three, make sure they have unique id's. | |
Re: Check you PHP.INI file for max_execution_time. | |
Re: http://net.tutsplus.com/tutorials/javascript-ajax/adding-a-jquery-auto-complete-to-your-google-custom-search-engine/ | |
Re: I think the `CookieContainer` class might be what you're looking for. | |
Re: Wouldn't using a HTML template suffice? It can be edited and stored, and when needed printed to PDF. Is there something you have tried already? Are you trying to create some kind of report? | |
Re: Sounds like you need a couple of tables to store that information, and some management to put the events and comments in. The question is broad because it really depends on how the calendar was written. For everyday shown, the calendar needs to query for events, and if there are … | |
Re: For i = 0 To List2.ListCount + 1 Shouldn't this be: For i = 0 To List2.ListCount - 1 |
The End.