Forum: PHP Jul 12th, 2008 |
| Replies: 7 Views: 658 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,208 try encoding your str1 with encodeURIComponent
more about this at w3schools (http://www.w3schools.com/jsref/jsref_encodeURIComponent.asp) |
Forum: MySQL Mar 13th, 2008 |
| Replies: 2 Views: 878 the syntax of your query is ok. Something else is going on here. Can you post more code or any MySQL errors you are getting? |
Forum: PHP Mar 8th, 2008 |
| Replies: 4 Views: 1,089 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: 682 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,278 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,278 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,571 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: JavaScript / DHTML / AJAX Feb 13th, 2008 |
| Replies: 3 Views: 1,498 try modifying your code like this:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title> Test... |
Forum: PHP Feb 12th, 2008 |
| Replies: 6 Views: 2,941 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: 737 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,374 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: 10,000 when in doubt check out the mysql manual...
http://dev.mysql.com/doc/refman/4.1/en/date-and-time-functions.html |
Forum: JavaScript / DHTML / AJAX Jan 21st, 2008 |
| Replies: 6 Views: 2,571 document.getElementById('states').disabled=false; |