516 Posted Topics
Re: Wordpress is php dependent, so I'd imagine you'd need to make sure php is installed on the server. The site lists the minimum requirements to run Wordpress on a server. [url]http://wordpress.org/about/requirements/[/url] | |
Re: The php mail function works great for a contact page on your site that will send the email to your sites MX. However, when sending to other mail servers such as yahoo, gmail, hotmail... it's not reliable enough to trust. Why? Because the mail function doesn't have SMTP authentication. Use … | |
Re: You need JavaScript (unless you're comfortable with the page reloading on each change). | |
Re: I'm not sure if wamp server installs a mysql command line tool but you should be able to access MySql via phpmyadmin. Try going to [url]http://localhost/phpmyadmin[/url]. ![]() | |
Re: [url]http://www.search-this.com/2007/03/12/no-margin-for-error/[/url] | |
Re: Come up with your own thing. While MySpace is not difficult to immitate, it will be very difficult for you to grow a community. There are immitators everywhere. For the sake of the php community, Mar Zuckerberg has already done it with Facebook(using nothing more than php and apache). Do … | |
| |
![]() | Re: You'll have to use your isp's SMTP server. See here:[url]http://roshanbh.com.np/2007/12/sending-e-mail-from-localhost-in-php-in-windows-environment.html[/url] |
Re: The table height attribute has been deprecated. It still works fine, but it is not valid in XHTML. Use a CSS style to set the table height: [icode]<table style="height:100%"[/icode] The basic idea is for html to contain the content and logical structure and have CSS handle all display styles. | |
Re: mail2saion, many thanks for bumping this thread to promote your blog. | |
Re: Here's a possible solution. Step 1, Create an empty array. Step 2, Evaluate each checkbox in a loop. If empty, push a 0 into the array. Else, push a 1 into the array. Step 3, Implode the array using a comma as the "string glue": [code=php] <?php if(isset($_REQUEST["submit"])){ $checkarray = … | |
Re: You mean like: [code=vb] arr2 = arr1 [/code] | |
Re: [URL="http://www.vb-helper.com/howto_net_get_drive_information.html"]Here's[/URL] a tutorial. Make sure you add the COM reference that it talks about in the first paragraph. This is what it showed for my machine: [code=output] C: Type: Fixed File System: NTFS Free Space: 189465538560 Total Size: 249933357056 Volume Name: Serial Number: -736547909 -------------------- D: Type: CDRom Not ready … | |
Re: Count is an aggregate function. It's not going to return anything from the database. It's only going to count the number of records matching your criteria and return the total. | |
![]() | Re: I will restrain from lecturing on [URL="http://dev.mysql.com/tech-resources/articles/intro-to-normalization.html"]normalization[/URL]. I assume you've probably never heard of it but I'd highly recommend looking into it. What does your insert look like? |
Re: If you have phpmyadmin, you can also upload the csv through it. | |
Re: elseif implies that you have multiple conditions to check. Example: [code=Coldfusion] <cfif color is "green"> <cfset colorscheme = "white"> <cfelseif color is "blue"><!---Notice how there is a statement after elseif. You can't just use <cfelseif>---> <cfset colorscheme = "black"> <cfelse> <cfset colorscheme = "red"> </cfif> [/code] Honestly, you have two … | |
Re: You could use a meta refresh or JavaScript's window.location. Both are used by DaniWeb during login (depending on whether or not you have JavaScript enabled). Login. When you get to the page that says "Thank you for logging in, rajeesh_rsn. Click here if your browser does not automatically redirect you." … | |
Re: Adobe Flash, JavaScript, HTML 4.01 Transitional, CSS, and PHP. Yeah he probably is promoting his site, but the links on DaniWeb are no-follow, so it wont improve the Search Engine rank. | |
Re: You'll either have to give the xml file a .php extension, or set Apache to parse php in xml files. This can be done with the http.conf file or with a .htaccess file. If you don't have access to the server, .htaccess may be the only way for you to … | |
Re: There are several ways to do this. The easiest would probably be to use the session array to keep up with the option values. You could also set a cookie with javascript. | |
Re: I've always found that email clients remove quotes from attribute values and some, like hotmail, actually change the values. The only solution that I've found is to not surround values in quotes. Clients have so many techniques to weed out spam and malicious messages, html emails can be tricky. Also, … | |
Re: Read this: [url]http://www.search-this.com/2007/03/12/no-margin-for-error/[/url] | |
Re: By default, divs are block level elements, and won't allow other elements to lay next to them. You can fix this by setting the inner divs style to either float:left and float:right, or you can use display:inline for both. If you use display:inline, make sure that the sum of the … | |
Re: How much are you willing to spend? | |
Re: Your code is correct. The problem is the * in the css. Particularly the padding. With [code=css]* { margin: 0; padding: 0; }[/code]you've reset the padding of all elements to 0. By default, the browser adds padding-left to the second list. However, you've reset the padding to 0, so the … | |
Re: There is no such attribute value as "float:center". Only left and right. | |
Re: Read this: [url]http://www.seocompany.ca/software/free-encryption-software.html[/url] | |
Re: Use substr function. Note, I also used strpos in the example to ensure that the last word isn't broken up. [code=php] <?php $str="The quick lazy fox jumps over a lazy dog."; $space=" "; $sppos=strpos($str,$space,10); $str=substr($str,0,$sppos); $str.=" ..."; echo $str; ?> [/code] Example without strpos: [code=php] <?php $str="The quick lazy fox … | |
Re: You're on the right track. You'll need to create an anchor for the page to go to. In the html where you want the page to scroll to, add [icode]<a name="bottom"></a>[/icode] The page should scroll to here after submit. | |
Re: It sounds like you need a JavaScript onclick event. | |
Re: Here is a simple AJAX form submission using POST. It basically sends the first and last name to the server, and the server outputs the form information and the date on the server. Very simple, but easy to build on. [B]post.php[/B]: [code=php] <?php $FirstName = $_POST['FirstName']; $LastName = $_POST['LastName']; $today … | |
Re: Sometimes it's easier to tell php which html to send to the client, based on a condition. Simple example: [code=php] <?php $show="invalid"; if($show=="valid"){ ?> <div>You get to see this content</div> <?php }else{ ?> <div>Error: Access Denied</div> <?php } ?> [/code] In this example, the only thing outputted to the client … | |
Re: Constructive criticism (the page looks good): Forget about the video. Try to trim some of that bandwidth down. You guys must have some dedicated fans, to wait on that page to load. More is not always better. If a fan visits the page with dialup (approximately 40 kb/s), it's going … | |
Re: You have to get the number of rows. [code=php] $a = "SELECT * FROM a WHERE b = c"; $b = mysql_query($a); $num_rows = mysql_num_rows($b); if($num_rows == 0) { echo "No rows retrieved"; } else { echo "Rows retrieved"; } [/code] Is that what you were asking? | |
Re: If you have access to php.ini, you can set this by changing the date.timezone value. [code=php.ini] [Date] ; Defines the default timezone used by the date functions date.timezone = America/Los_Angeles [/code] Also, if you just want to change the timezone for local script, use the [URL="http://us3.php.net/manual/en/function.date-default-timezone-set.php"]date_default_timezone_set[/URL] function. [code=php] <?php date_default_timezone_set('America/Los_Angeles'); … | |
Re: Rewrite rules don't actually hide the query string. Rewrite rules pretty much convert seo friendly urls into the actual query string. Example .htaccess: [code=.htaccess] RewriteEngine on RewriteRule ([^/\.]+)/?.html$ viewPage.php?ID=$1 [L] [/code] The above rewrite rule will allow you to do something like this: url reads: yoursite.com/DaniWeb.html apache interprets as: yoursite.com/viewPage.php?ID=DaniWeb … | |
Re: Have you added a loop to display the output? [code=coldfusion] <cfquery name="players" datasource="connsilvereagles"> SELECT * FROM player ORDER BY playernumber DESC</cfquery> <cfoutput> <table> <cfloop query="players"> <tr><td>#playernumber#</td></tr> </cfloop> </table> </cfoutput> [/code] | |
Re: I'd recommend finding a good php library that allows for SMTP authentication. If the email client has decent security, php's plain old mail function with html headers is a sure fire way to get your email tossed in the junk folder. I use [URL="http://www.phpclasses.org/browse/file/919.html"]class.phpmailer.php[/URL]. It also creates a plain text … | |
Re: I would need a link to the page to see exactly what's happening, but yes it can be done with javascript. | |
Re: The file is included inline and parsed just like the contents of the file would be if they were placed there instead. A standard include for the content could be something like: content.php: [code=php] <div class="content"> <?php echo $content;?> </div> [/code] Then the page could be something like: [code=php] <?php … | |
Re: Modify the query to assign the count number to the kwcount column: [code=php] $sql="select id,count(keywords) AS kwcount from seeker where userid=".$id;[/code] You can then retrieve kwcount in the same way that you retrieve the id column. | |
Re: </br> should be <br> for html and <br /> for xhtml. There is no such thing as </br>. Also, why are you using vbscript? You do know vbscript only works in Internet Explorer right? Use JavaScript. | |
Re: Welcome to DaniWeb! Here are some basic guidelines to get any problem solved here: When posting code of any sort, it's important to use [URL="http://www.daniweb.com/forums/faq.php?faq=daniweb_policies#faq_keep_it_organized"]code[/URL] tags. Here's an example: [noparse] [code=php] <?php echo "Hello world."; ?> [/code] [/noparse] And your code will look like this: [code=php] <?php echo "Hello world."; … | |
Re: Please review the [URL="http://www.daniweb.com/forums/faq.php?faq=daniweb_policies"]Member Rules[/URL], specifically the "Keep it Organized" section regarding proper use of code tags. Without the tags, there is no toggle plain text option, and most of us will not bother troubleshooting. | |
Re: Just a side note, you may be better off loading all of the dropdowns directly into javascript from php when the page loads. If the page contains multiple AJAX requests that go one after the other, I'd either recommend to do it this way or to follow [URL="http://blog.mibbit.com/?p=143"]Mibbits[/URL] guide to … | |
Re: Use [URL="http://www.white-hat-web-design.co.uk/articles/php-captcha.php"]captcha[/URL]. | |
![]() | Re: No clue. This is one of the many tasks of a technical worker. Communicating with the "not so technical" client. Contact your client and get more info on what a "Style Guide" should include. ![]() |
The End.