8,966 Posted Topics
Re: [url]http://api.jquery.com/category/manipulation/dom-insertion-inside/[/url] [iCODE]AppendTo()[/iCODE] appears to be what you want. | |
Re: No, changing to mysqli will not solve this, it is just not implemented in the mysql server. What you can do is this: [CODE=sql] SELECT * FROM ( SELECT a, b, (a+b) AS c FROM table ) AS tmp WHERE c = 1 [/CODE] | |
Re: [CODE] echo '<div>' . $_SESSION['username'] . ' | <a href="logout.php">Logout</a></div>'; [/CODE] | |
Re: What doesn't work as expected ? Do you get errors ? | |
Re: This should do exactly the same: [CODE] procedure TMainServer.SearchUserAccounts(const MyUserID, UserID, Token: String; rSocket: TWSocketClient); var search, msg: string; begin search := Trim(UserID); MyQuery.SQL.Text := 'SELECT * FROM users '; case StrToInt(Token) of 0: MyQuery.SQL.Text := 'WHERE username LIKE ''%' + search + '%'''; 1: MyQuery.SQL.Text := 'WHERE ip LIKE … | |
Re: [iCODE]$subject[Subject][/iCODE] is empty invalidating your query. | |
Re: Your query is using the wrong quote, use backticks ([iCODE]`[/iCODE]) | |
Re: Are you using PHP 5.3.0 ? If you are not you need to use create_function instead of the anonymous one. | |
Re: [url]http://www.daniweb.com/search.php?q=htaccess+mod_rewrite[/url] | |
Re: It would be helpful if you stated which error you have, or what part is not working. Just pasting a piece of code won't get you much assistence. | |
Re: Your $cart is not kept when switching to other pages. You need to store it in a session variable if you need it. | |
Re: Apparently you do not have a column named 'page' in your table 'static_page'. | |
Re: Not sure what you are trying to accomplish but this is bad syntax all over. | |
Re: Do not specify R=301 because it indicates a permanent redirect. You can remove line 10 I guess if you change line 8 to: [code=text] RewriteRule ^(.*)$ http://codershane.com/?p=$1 [NC] [/code] | |
| |
Re: You cannot put it before the order. Not quite sure what result you are after, but it sounds like you need a sub-query. | |
Re: [CODE=text] RewriteEngine on RewriteRule \.txt$ /notallowed.html [F,L,NC] [/CODE] ![]() | |
Re: Just look on the net for samples, you can call your php file from sh. | |
Re: Not sure what you want on line 64, but this [iCODE]$_SERVER['http://localhost/php_template2/PHP_SELF'][/iCODE] is not valid code. | |
Re: Mysql uses [iCODE]'yyyy-mm-dd'[/iCODE] format. | |
Re: If you mean from mysql to php, then no, this is not possible. You'd have to create a polling mechanism. | |
Re: [iCODE]NewDate := Now() + 10;[/iCODE] | |
Re: Can you post the actual mysql error you are getting. | |
Re: Apparently your add_date column is not a datetime column in the database. Read more in [URL="http://php.net/manual/en/datetime.format.php"]the manual[/URL]. | |
Re: For files I use Beyond Compare, for database Navicat. | |
Re: Not while you are using a CSV file. If you use a tool such as PHPExcel, which can generate a real Excel file, then it is possible. | |
Re: Indexing is in postgres, but I would not set an index on the image column itself, rather on it's name. Why would you want an index on the image itself ? | |
Re: Minor correction (case sensitive): [iCODE]readDateJs[/iCODE] | |
| |
Re: Probably because you id column in your table is not set to auto increment. | |
Re: Use [iCODE]$kategori[/iCODE] as set on line two, instead of [iCODE]$_REQUEST['kategori'][/iCODE]. If any of your others threads helped you solve your problem, mark them as solved. | |
Re: It would be more helpful to others, if you'd include some more information on how and why you do things, instead of just showing code. It would also be helpful if the [iCODE]$img[/iCODE] array is filled with all files from your images folder. You can do this easily with [URL="http://php.net/glob"]glob[/URL]. | |
Re: You cannot put PHP in a Javascript function directly, but by using AJAX, you can call a PHP function (like a form post). There are several examples in this websites, so I suggest you search first. | |
Re: [url]http://stackoverflow.com/questions/2436484/how-can-i-create-numbered-map-markers-in-google-maps-v3[/url] | |
Re: I think you need to change [iCODE]$row[/iCODE] on line 20 to [iCODE]$row_anasearch[/iCODE]. Am not sure what you are after, but I'd use a different construct. | |
Re: Plenty carts out there, try google. Also a lot of sites with comparisons. | |
Re: You can add an extra integer column to your table. Select two (using LIMIT) random items where you order the query by MIN(extra column) first, and RAND() second. After using the selected two, increment the extra field. | |
Re: One that comes up a lot, is two dropdowns with linked info (although it involves javascript). I was planning on writing one, but still haven't. I do have a working example though. If you want it I can zip it (uses PHP, MySQL and jQuery). One thing popping up in … ![]() | |
Re: Check the HTML output of your page, are your database values in there ? Then you have a typo somewhere in your file (unclosed tag perhaps). | |
Re: You'll need javascript to perform an [URL="http://w3schools.com/ajax/default.asp"]ajax[/URL] call, you cannot do it just with php. | |
Re: The opening bracket on line 54 is missing a closing bracket somewhere. | |
Re: If your user base is large and you have a lot of pageviews, then instead of worrying about your mysql connections, worry about caching. | |
Re: The sending of the email should be INSIDE the while loop, not after it. Unless you want to send one e-mail with everybody in CC. Tell us what you want to happen first. | |
![]() | Re: I like [URL="http://www.plupload.com/"]plupload[/URL] for uploading files. When it is done it calls a php file, where you can store your files and convert them. |
Re: You can find it on the [URL="http://phpexcel.codeplex.com/discussions/273432"]PhpExcel discussion[/URL] list. | |
Re: Already answered in [URL="http://www.daniweb.com/web-development/php/threads/383286"]one of your other threads[/URL]. The variables did not get a value yet. | |
Re: This has been described in your other post. [iCODE]$_REQUEST['kategori'][/iCODE] may not have a value, use [iCODE]isset()[/iCODE]. Also, [iCODE]$_REQUEST[/iCODE] is deprecated, use [iCODE]$_GET[/iCODE] | |
Re: Escape it with a backslash, read more in [URL="http://www.php.net/manual/en/regexp.reference.escape.php"]the manual[/URL] or on [URL="http://www.regular-expressions.info/characters.html"]this website[/URL]. |
The End.