516 Posted Topics

Member Avatar for mheidi

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]

Member Avatar for macslayer
0
4K
Member Avatar for mrcniceguy

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 …

Member Avatar for mrcniceguy
0
148
Member Avatar for Reliable
Member Avatar for Arctic wolf

You need JavaScript (unless you're comfortable with the page reloading on each change).

Member Avatar for Arctic wolf
0
126
Member Avatar for rakeshkn123

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].

Member Avatar for diafol
0
147
Member Avatar for Mapper99
Member Avatar for MidiMagic
0
137
Member Avatar for realestninja

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 …

Member Avatar for cwarn23
0
983
Member Avatar for nagkar
Member Avatar for starsinthesky

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]

Member Avatar for nhocikaka
0
2K
Member Avatar for chinmayu

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.

Member Avatar for almostbob
0
81
Member Avatar for samycbe
Member Avatar for nil
0
147
Member Avatar for queenc

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 = …

Member Avatar for rm_daniweb
0
162
Member Avatar for zahraj
Member Avatar for guest11

[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 …

Member Avatar for guest11
0
175
Member Avatar for changeco

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.

Member Avatar for changeco
0
153
Member Avatar for otooleb6

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?

Member Avatar for buddylee17
0
84
Member Avatar for srpa01red
Member Avatar for alextan

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 …

Member Avatar for buddylee17
0
101
Member Avatar for rajeesh_rsn

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." …

Member Avatar for hooka85
0
94
Member Avatar for hilimili

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.

Member Avatar for mrcniceguy
0
84
Member Avatar for nickfday

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 …

Member Avatar for nickfday
0
2K
Member Avatar for jumbla

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.

Member Avatar for jumbla
0
250
Member Avatar for boliu

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, …

Member Avatar for boliu
0
106
Member Avatar for prak65

Read this: [url]http://www.search-this.com/2007/03/12/no-margin-for-error/[/url]

Member Avatar for MidiMagic
0
128
Member Avatar for leroi green

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 …

Member Avatar for leroi green
0
150
Member Avatar for arvindikchari
Member Avatar for Tonkz

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 …

Member Avatar for Tonkz
0
146
Member Avatar for jimbob90
Member Avatar for MidiMagic
0
69
Member Avatar for khr2003
Member Avatar for almostbob
0
169
Member Avatar for rajeesh_rsn

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 …

Member Avatar for rajeesh_rsn
0
94
Member Avatar for NoGood

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.

Member Avatar for NoGood
0
71
Member Avatar for jackakos
Member Avatar for ahmksssv

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 …

Member Avatar for fskreuz
0
215
Member Avatar for veledrom
Member Avatar for HB25

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 …

Member Avatar for HB25
0
3K
Member Avatar for rikkwolf

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 …

Member Avatar for MidiMagic
0
99
Member Avatar for OmniX

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?

Member Avatar for OmniX
0
2K
Member Avatar for ditty

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'); …

Member Avatar for buddylee17
0
66
Member Avatar for Shanti C

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 …

Member Avatar for Shanti C
0
5K
Member Avatar for bvaz

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]

Member Avatar for bvaz
0
133
Member Avatar for theighost

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 …

Member Avatar for theighost
0
108
Member Avatar for jean4designs

I would need a link to the page to see exactly what's happening, but yes it can be done with javascript.

Member Avatar for jean4designs
0
85
Member Avatar for Stefano Mtangoo

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 …

Member Avatar for Stefano Mtangoo
0
114
Member Avatar for queenc

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.

Member Avatar for queenc
0
277
Member Avatar for campuzcrazyness

</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.

Member Avatar for campuzcrazyness
0
170
Member Avatar for alexgood87

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."; …

Member Avatar for chrishea
0
115
Member Avatar for vinithktp

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.

Member Avatar for buddylee17
0
154
Member Avatar for LTT

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 …

Member Avatar for jshpro2
0
457
Member Avatar for csharplearner

Use [URL="http://www.white-hat-web-design.co.uk/articles/php-captcha.php"]captcha[/URL].

Member Avatar for csharplearner
0
136
Member Avatar for rajarajan2017

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.

Member Avatar for rajarajan2017
0
135

The End.