Forum: PHP Jul 12th, 2008 |
| Replies: 7 Views: 656 the modulus operator (%) takes the left side, divides it by the right side, and returns the remainder. So, 5%3 would result in two, since 5/3 yields a remainder 2.
If you are getting a division... |
Forum: PHP Mar 24th, 2008 |
| Replies: 3 Views: 2,207 try encoding your str1 with encodeURIComponent
more about this at w3schools (http://www.w3schools.com/jsref/jsref_encodeURIComponent.asp) |
Forum: PHP Mar 8th, 2008 |
| Replies: 4 Views: 1,086 to encode it in php...
<?php
//encode input going in...
$encode = urlencode("in'out\"");
//decode output coming out...
$decode = urldecode($encode); |
Forum: PHP Mar 8th, 2008 |
| Replies: 3 Views: 555 another way to tackle it would be...
echo '<td align=center style="width: 30px"><strong><a href="' . $link1 . '" style="color: red">CID</a></strong></td>'; |
Forum: PHP Mar 8th, 2008 |
| Replies: 3 Views: 555 echo "<td align=center style=\"width: 30px\"><strong><a href=\"$link1\" style=\"color: red\">CID</a></strong></td>"; |
Forum: PHP Feb 27th, 2008 |
| Replies: 6 Views: 680 echo your option tags inside of a select tag like this:
<select name="test" id="test">
<option value="value 1">option 1</option>
<option value="value 2">option 2</option>
<option... |
Forum: PHP Feb 24th, 2008 |
| Replies: 17 Views: 1,277 also, just to make sure we're not missing something obvious here...you are saving the page as .php extension right? |
Forum: PHP Feb 24th, 2008 |
| Replies: 17 Views: 1,277 you only have to use commas if you want commas to appear in the output
what part is not working, Everything seems to work when I run it...what are you trying to do? |
Forum: PHP Feb 14th, 2008 |
| Replies: 36 Views: 3,551 i assume you have root access to the server to set configurations etc....
I am not a phpmyadmin maestro, so you might be better off posting this in a linux/wamp forum depending on your server... |
Forum: PHP Feb 12th, 2008 |
| Replies: 6 Views: 2,933 since most people will probably never pick more than a few, it would save space to only have one column.
try this:
<?php
//multi-list boxes post an array of results
//get this array into a... |
Forum: PHP Feb 11th, 2008 |
| Replies: 3 Views: 736 that seems most logical...it would depend, however...Is there code elsewhere that has to make sense of this data? Will it be able to determine that the 3 entries are really just one meeting with a... |
Forum: PHP Feb 7th, 2008 |
| Replies: 12 Views: 9,343 when I use the select menu on your live page, I get a javascript error that says 'previewProduct is undefined' (look at the little exclamation alert on the bottom left of your browser and double... |
Forum: PHP Feb 5th, 2008 |
| Replies: 6 Views: 9,948 when in doubt check out the mysql manual...
http://dev.mysql.com/doc/refman/4.1/en/date-and-time-functions.html |