8,966 Posted Topics
Re: You need to post your new code, as the old one in the other thread has changed. | |
Re: [url]http://www.alistapart.com/articles/sendtofriend/[/url] | |
Re: The only difference between two UserGuess procedures is the index that is used for the QuizInfo array. You can use a single procedure for this, if you pass this index as a parameter to it. It's definition could be: [code] procedure UserGuessQ(QuestionNumber: Integer); [/code] I'm sure this will get you … | |
Re: You'd need to let the menu pass a parameter to your php file, so it would know what file to include. Something like index.php?id=1 or index.php?file=filename.txt | |
Re: You must enter a column name between both () on the constraint line. | |
Re: [url]http://www.hotelconcepts.com/en/home.html[/url] [url]http://www.myhotelsoftware.com/en/home.html[/url] | |
Re: First hit in Google: [url]http://www.kayak.com/labs/api/search/[/url] | |
Re: The server would need to poll the mail server, probably using pop or imap. The web application also needs to poll the server, to be able to inform the user if a new message was received. | |
Re: Not sure what it is supposed to do, but line 9 should be: [code] <!-- HIDE FROM INCOMPATIBLE BROWSERS [/code] And on line 60: [code] name="newtask" [/code] | |
Re: Apparantly the query is invalid on the line before. Try: [code] $login = mysql_query("select domain_name,domain_link from hosted_links") or die(mysql_error()); [/code] To see if you get an error message on the query. | |
![]() | Re: [url]http://stackoverflow.com/questions/252437/looking-for-an-seo-book[/url] Am sure you'll find more books in related threads. |
Re: For one, both your buttons have id="button". An id should be unique, so perhaps you should use class="button". You should also hide the popupContact class, because the popup div's are showing already. Is there a reason you are using a map ? Unless there is something missing, the buttons will … | |
Re: [url=http://www.phpriot.com/articles/event-handling-in-prototype/2]This[/url] is a nice description of events in prototype. | |
Re: If you want to convert any sentence to this format, you can use [icode]explode(' ', $sentence)[/icode] to create an array of words from your sentence, and then process each word accordingly. (Then use implode to make a sentence again.) | |
Re: Try the for-each, instead of the value-of. | |
Re: Are you trying to validate your webpage ? If so, what tool are you using, because it is not obvious from the screenshot (not to me anyway). ![]() | |
Re: [url]http://book.cakephp.org/view/488/Themes[/url] [url]http://www.sanisoft.com/blog/2007/12/29/theming-your-cakephp-apps-v12/[/url] [url]http://www.pseudocoder.com/archives/theming-with-cakephp[/url] | |
Re: $_GET requires brackets [], not parenthesis (). It is an array, not a function. | |
Re: Add the reference to the mainform to the uses clause of the implementation section. | |
Re: Does your form tag perhaps contain action="contact.php" ? | |
Re: Yes, adjust your query to exclude them. [code] SELECT * FROM yourtable WHERE TRIM(yourcolumn) <> '' [/code] | |
Re: If you want such a workaround than a simple UNION with a single row would be sufficient (assuming MySql): [code] SELECT * FROM mytable UNION SELECT * FROM mytable LIMIT 1 [/code] | |
Re: Are you sure the problem is with your website? It could be your own connection that is failing. Do you have an url ? What technologies does it use ? | |
Re: I think the way to do it is to put another div on top of it, containing a transparent image. You can use the a tag on that image. You may want to ask this question in the Web Design/HTML and CSS forum. | |
![]() | Re: $tweet = $stdClassObject->status->text; // $stdClassObject should be the name of the variable you outputted above ![]() |
Re: The string at line 59 contains a single quote ('), which should be escaped by a backslash ('). | |
Re: IIRC the [P] flag indicates it would show elephant.example.com and redirect silently. | |
Re: You can use htaccess to capture [icode]xxx.example.com[/icode] and redirect it to [icode]www.example.com/index.php?sub=xxx[/icode] [code] RewriteCond %{HTTP_HOST} ^(.*).example.com RewriteCond %{HTTP_HOST} !^www.example.com [NC] RewriteRule ^(.*)$ http://www.example.com/index.php?sub=%1 [P] [/code] | |
Re: Not sure exactly how you want to solve this, but the use of custom classes or frames (TFrame, if you also need a different interface per unit) is an option. | |
Re: Not easy to find I think. 2.6 is from 1994 iirc. Is there no way you could use a later version, like VFP7 or 9. They have extensive help files. | |
Re: [code] SELECT * FROM products WHERE prod_id = [$id] [/code] The brackets cause the query to fail, change it to: [code] SELECT * FROM products WHERE prod_id = $id [/code] | |
Re: Show what you have so far. For the mysql query to work, have a look at the FIND_IN_SET() function. | |
Re: I know you did not ask for a link, but isn't the example given here what you need ? (in combination with the settimestamp function of the datetime class) [url]http://php.net/manual/en/datetime.settimezone.php[/url] | |
Re: If your webhost allows you to create subdomains through an API, then you can make a php function to execute it. | |
| |
Re: For more information on "views" read [url=http://dev.mysql.com/doc/refman/5.0/en/create-view.html]this[/url]. | |
Re: Do you want a delete link next to your displayed rows, to delete that entry from the database when clicked ? | |
Re: Read [url=http://www.daniweb.com/forums/thread320013.html]this thread[/url] | |
Re: [code] $l="SELECT * FROM $tbl_name WHERE `name` = '" . mysql_real_escape_string($_POST['or']) . "'"; [/code] If this fails, echo the entire generated query, and paste it here, along with the error message. | |
Re: Same answer as in [url=http://www.daniweb.com/forums/thread320013.html]this thread[/url] | |
Re: The browser's debugger tools can provide some insight as to the requests sent to the server. Or you can try fiddler to see what happens. | |
Re: You get this notice if the form is not posted and the 'upload' input is not found. You can avoid it like this: [code] if (isset($_POST['upload'])) $file=$_POST['upload']; [/code] | |
Re: Sounds more like a DNS hack than a PHP hack. But anyhow, he's right, you have to make sure you're code is secure. | |
Re: [code] foreach ($row as $name => $value) { } [/code] But if you do I recommend using mysql_fetch_assoc instead. | |
Re: On line 43 of displayform you do [icode]$id = $_GET['id'];[/icode] yet the DocID (the name of the input field in the first form) gets POST'ed by the form. So it should read: [icode]$id = $_POST['DocID'];[/icode] | |
Re: In most everyday developing situations the database server name is 'localhost'. If you then make sure your local and remote DB both use the same username, password and database name, then there is no need to change your connection file. | |
Re: I think putting an index on the viewed column, and then using the second query (with the where) should be fastest. I don't have any hard data, but as smantscheff said, to be sure, run some tests. You can create a copy of your table, and then run the query … | |
Re: I think you need to change line 2 in the above query to: [code] WHERE FIND_IN_SET('Apple', GROUP_CONCAT(ItemName)) [/code] You can also use the where clause in the following manner (in your query): [code] WHERE ContainerID IN (SELECT ContainerID FROM items WHERE ItemName = 'Apple') [/code] | |
Re: You can create a table with your default english texts, and a second table with the translated version and the target language linked to the first table. Of course you can also put this in one table. |
The End.