146 Posted Topics
Re: Submerge a slice of lactal bread into whipped eggs, then brown it with plentiful oil and add salt to taste. A delicious ! | |
Re: You can pass the image id as parameter in functions: [code] <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-us"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <meta http-equiv="Content-Language" content="en-us" /> <meta http-equiv="Content-Style-Type" content="text/css" /> <meta http-equiv="Content-Script-Type" content="text/javascript" /> <meta http-equiv="date" content="2003-12-02T09:54:03+08:00" /> <meta http-equiv="imagetoolbar" content="no" /> <title>Dynamically enlarge … | |
Re: The jQuery questions should be made on JavaScript / DHTML / AJAX forum. From Drupal perspective, some jQuery plugins could not work with the jQuery bundle included on Drupal core (the jQuery distribution included maybe is too old). To fix this issue, there is a module to update the jQuery … | |
Re: Look at your apache httpd.conf if the line that includes your vhosts file isn't commented. Try to use: [code] NameVirtualHost * <VirtualHost *> DocumentRoot /cmsdata/cms/sites/home ServerName www.ocms.com ErrorLog /usr/local/apache/logs/o-error_log CustomLog /usr/local/apache/logs/o-access_log combined </VirtualHost> <VirtualHost *> DocumentRoot /cmsdata/cms/sites/us ServerName www.uscms.com ErrorLog /usr/local/apache/logs/ous-error_log CustomLog /usr/local/apache/logs/ous-access_log combined </VirtualHost> [/code] also add in your … | |
Re: Do you have activated the permissions for create and edit content types on User Management / Access Control ? Take a look if is enabled all CCK field types in modules. | |
Re: US for americans wouldn't be the slogan? I was thinking on Hawaii... | |
Re: How could you compete against a company with 1600 employees and 100 million users (myspace). What are you, lost your mind? | |
Re: Wow, but it needs a lot of art. You could use inner divs and ajax to update the avatar directly without reloading the page. You will need custom CSS classes for each character to situate correctly the elements. The rest it's very simple. | |
Re: Could be from MSN Messenger, uPnP, try to close all programs and watch if the traffic changes. Hack attempts in proximity with neighbors happens usually with wireless communications. Also, try to scan your computer for spyware/malware (Spybot or Anti-Malware does). | |
Re: [QUOTE=Aia;848850]>California's unemployment number just jumped to 11.2%. California could be a country in is own right, comparable to some nations in Europe; capital and population wise. California is one of the most socialist state in USA, perhaps only second to New York. See the results.[/QUOTE] California is communist, isn't it? … | |
Re: Use CURL or fsockopen() to get the result from Google, then simplexml_load_string() [code=php] $zip = 10001; $url = "http://news.google.com/news?pz=1&ned=us&hl=en&q=".$zip."&output=rss"; $ch = curl_init(); $timeout = 5; // set to zero for no timeout curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, $timeout); $result = curl_exec($ch); curl_close($ch); $rss = simplexml_load_string($result); [/code] | |
Re: I noticed that after three months 'far' from DaniWeb. A little obtrusive or maybe different, I ignored it without giving much attention in less than one second. Pop-up blockers are very common nowadays. I was thinking, would be great to implement with jQuery an accordion or another stuff to perform … | |
Re: [QUOTE=jephthah;846254]Dear Sir, I find your capability to handle the situation to be entirely insufficient and I have therefore taken proactive measures to rectify matters to my personal tastes, exercised posthaste and with extreme prejudice. Best Regards.[/QUOTE] Is that a HR letter or a simple memo? Each first letter on each … | |
Re: Look at the *third* code example: [URL="http://www.lotsofcode.com/php/validation.htm"]http://www.lotsofcode.com/php/validation.htm[/URL] is_numeric() is a common form to avoid characters from alphabet on age field. | |
Re: What could make a difference a microbe to avoid being crushed on the floor. We should be more realistic? | |
Re: Enclose strings between quotes: [code=php] $query = "SELECT * FROM $table WHERE Username='".$user."' AND Password='".$pass."'"; [/code] | |
Re: The same marketing text found at: [URL="http://www.tekla.com/international/solutions/building-construction/construction-companies/site-management/Pages/Default.aspx"]http://www.tekla.com/international/solutions/building-construction/construction-companies/site-management/Pages/Default.aspx[/URL] This is a construction company. Websites are managed differently. To maintain a site, first of all, programming tasks differs substantially from design tasks. Programming tools could be mainly editors, IDEs and debuggers. Design tools: image editors like Gimp, Photoshop; multimedia authoring packages like … | |
Re: Could you show me the error displayed? I can't find a syntax error in your code... the error seems to be located on the course year selection, subjects drop down appears to be filtered ok. | |
Re: Hosts configuration file have global scope -address translation for any user- and it is stored on one location e.g. /etc/hosts, for that reason you cannot create individual configuration files. For example, it is possible to build a script to delete that file and copy the file suitable for that user, … | |
Re: with a jQuery toggle() event you can switch the css display properties easily, to hide/unhide divs, or use an accordion type, with nice effects. So, you can make the three views on PHP, each of them enclosed on a single div, then use of unobtrusive javascript to generate an accordion … | |
Re: I didn't found your modem model at [URL="www.portforward.com"]www.portforward.com[/URL]. That site includes some guidelines to open/forward ports to your computer. I think this modem is working as bridge modem only, so your computer connects directly to your ISP. Try to look at your computer if the firewall blocks WoW. | |
Re: Basically, you can do: [code=php] $query = "SHOW COLUMNS FROM customer"; $result = mysql_query($query) or die(mysql_error()); while ($row = mysql_fetch_array($result)) { $fieldnames[] = $row[0]; } list($d, $m, $y) = explode('-', $fieldnames[2]); $timestamp = mktime(0,0,0,$m,$d,$y); $newts = strtotime("-7 days", $timestamp); $newdate = strftime("%d-%m-%y", $newts); $query = "ALTER TABLE customer ADD `".$newdate."` … | |
Re: [code=php] //$Text = "[url]http://www.google.com/[/url]"; $Text = "[url=http://www.google.com/]fdsfd_shttp://[/url]"; $Text = preg_replace("/\[url\]([a-z\:\/\.]*)\[\/url\]/", '<a href="javascript:go('${1}','new')">${1}</a>', $Text); $Text = preg_replace("/\[url\=([a-z\:\/\.]*)\]([a-zA-Z0-9_\:\/]*)\[\/url\]/", '<a href="javascript:go('${1}','new')">${2}</a>', $Text); echo $Text; [/code] [I]Missing braces...[/I] | |
Re: Is that a question ? :) Most simple mail() tutorial [URL="http://email.about.com/cs/phpemailtips/qt/et031202.htm"]http://email.about.com/cs/phpemailtips/qt/et031202.htm[/URL] | |
Re: If that is a DATETIME field type, you can use UNIX_TIMESTAMP() like this [icode]SELECT UNIX_TIMESTAMP(`date`) FROM `my_table`[/icode] then use date() to show it correctly | |
Re: Some computers have issues if you do a test from external IP using the same computer due to a NAT conflict. If you want to test simply if your program works, 127.0.0.1 or localhost interface. To do a test between "machines" on a local area network, you can setup a … | |
Re: Notepad or TextEdit, faster, drag&drop of text, really easy to use. | |
Re: Use always the 'optimal resolution', that is the max available res. Activate Cleartype font smoothing from Display Properties. | |
Re: The loop is before the mysql query... try to put backward [code=php] <?php $rows = mysql_num_rows($Recordset1); if($rows > 0) { mysql_data_seek($Recordset1, 0); $row_Recordset1 = mysql_fetch_assoc($Recordset1); } do { ?> <option value="<?php echo $row_Recordset1['channel_name']?>"><?php echo $row_Recordset1['channel_name']?></option> <?php } while ($row_Recordset1 = mysql_fetch_assoc($Recordset1)); ?> [/code] | |
Re: If it is only an image URL, you can simply concatenate into an <img> tag after using the mysql query e.g. [icode]echo "<img src=\"". $row['image_url'] ."\" alt=\"\" />";[/icode] [code=php] <?php $query = "SELECT image_url FROM gallery WHERE id = ". mysql_real_escape_string($id); $result = mysql_query($query) or die(mysql_error()); $row = mysql_fetch_array($result) or … | |
Re: I wrote a solution on your previous thread ([URL="http://www.daniweb.com/forums/thread186448.html"]http://www.daniweb.com/forums/thread186448.html[/URL])... this is almost a duplicated one. Why not to continue to develop your issue into your previous thread ? | |
Re: made me remember Doom III and Paul Verhoeven's Starship Troopers. Fonts are too big, that could make me move away from display, the background movie is pixelated. Use much Action as you can, like dynamic loading. The site have a resemblance with glass and/or spatial images - holograms, perfect match … | |
Re: Leave MySQL user scope restricted only to localhost and/or 127.0.0.1, always create and use a different mysql user per database/site to avoid using root (if your mysql account is compromised e.g. through the configuration file stored in your web server, the user will not be able to drop all databases). | |
Re: Hi, I'm returning to this forum from long time ago... Looking at this issue it isn't difficult at all... just dealing a bit with regular expressions, preg_match_all() should be the function that is worth to use e.g. to store all links into an array: [code=php] $pattern = "/href=\x22([^\x22]*)\x22/"; preg_match_all($pattern, $string, … | |
Re: Pinky and The Brain try to take over the world. Hope not by God's wish. | |
Recently I've seen a small issue when I submitted a new post, I was the last person on the thread, I think the new message should be added to the end of my last post instead of creating a new separated box with avatar/stats. With this feature I think the … | |
Re: I've fixed your code: [CODE=php] <?php if (!class_exists('gtk')) { die("Please load the php-gtk2 module in your php.ini\r\n"); } function pressed() { echo "Hello again - The button was pressed!\n"; } function pressed2() { echo "Hello again - The button was pressed!\n"; } $window = new GtkWindow(); $window->resize(800,600); $window->set_title('My Diary'); $window->connect_simple('destroy', … | |
Re: Use a [ICODE]INNER JOIN[/ICODE] statement in your SQL query, placing it before [ICODE]WHERE[/ICODE]. You may be able to link a common ID field between the two tables and show a result into one set. | |
Re: Ten million. Wow! Now this man will get a great compensation to continue getting drunk :) This is best than play a lottery. Find a bug on a US legal system. | |
Re: Session variables are generated on runtime by the interpreters, so, I think you will get always a different session regardless of it's PHP or Java. Anyway, if you want to pass a Java variable to PHP it's possible through a simple url query when the php script is loaded. | |
Re: I don't undertand the meaning of your question... Why not to use an incrementing/decrementing operators (e.g. $updown--) or assignment operator. The values inside the braces doesn't contain an assignment operator, so doesn't change their value when the condition is true. | |
Re: Try to remove the leading slash on the code that generates the link. | |
Re: That isn't the American Dream ?? ;-) I mean, people can get a bit shabby sometimes, but this... is one for the books. It's weird that neighbours didn't perceive the bad smell from this apartment by no means the regular visits of the delivery guy... Take a look at the … | |
Re: Always enclose PHP stuff into a PHP block. The code should be: [icode]<a href="action.php?id=<?php echo $num; ?>">Text to be displayed</a>[/icode] or in this case printing a variable content: [icode]<a href="action.php?id=<?=$num?>">Text to be displayed</a>[/icode] Ops. Scru and me the same response. You can use the last example too. | |
Re: Facebook and another community sites achieves this optimal capacities performing an image scale reduction and using lossless formats like JPEG for every photo uploaded. Data storage can be a concern on higher web sites, I think CPU usage should be another factor to be considered. You can make a heavy … | |
Re: A forum differs slightly from a custom CMS or a social networking site. The threads and posts can be viewed like the news on a backend. The most important points to get focus are: 1) the ACL or authentication part taking into account the moderators and users, as well as … |
The End.