Forum: PHP Feb 26th, 2009 |
| Replies: 10 Views: 1,098 Do you already have the part of the query that matches the site? Add to that (with an AND clause) a MATCH(field) AGAINST('value') as demonstrated in the link I gave you. |
Forum: PHP Feb 26th, 2009 |
| Replies: 10 Views: 1,098 Try looking at this page (http://hudzilla.org/phpwiki/index.php?title=Advanced_text_searching). |
Forum: PHP Feb 26th, 2009 |
| Replies: 18 Views: 3,451 Oh wow, how did I miss that part? Sorry 'bout that one. |
Forum: PHP Feb 26th, 2009 |
| Replies: 18 Views: 3,451 Honestly, you have been given the proper solutions. Sending (and therefore, reading) your forms with the POST method sends variables through the headers sent. For this purpose, however, I would... |
Forum: PHP Feb 16th, 2009 |
| Replies: 7 Views: 474 Are you familiar with databases? Databases contain tables, tables contain records, or "rows". Each row has multiple "columns" of data. I am saying that each record should have information stored for... |
Forum: PHP Feb 16th, 2009 |
| Replies: 7 Views: 474 Each mysql record is one message, contains the message body, title, time etc. and the users it is to and from. The user fields would optimally be references to the ids inside a user table. You can... |
Forum: PHP Feb 16th, 2009 |
| Replies: 2 Views: 570 I learned so much from this (http://hudzilla.org/phpwiki/index.php?title=Main_Page) tutorial. |
Forum: PHP Feb 13th, 2009 |
| Replies: 4 Views: 309 No hard feelings. You should mark this as solved, however. It makes a difference. |
Forum: PHP Feb 13th, 2009 |
| Replies: 4 Views: 309 I hope you mean "can't save .php files"! And I hope you're lying, because you can save a file with any file type you want :\ |
Forum: PHP Feb 13th, 2009 |
| Replies: 4 Views: 421 Alignment like notepad, add styles? Your question is way too vague for anyone to know how to help you. Some details would be quite useful! |
Forum: PHP Feb 12th, 2009 |
| Replies: 9 Views: 448 If you go back to the origional code you posted, a quick fix would be to quit program execution after outputting that message. So you could change that section to:
//Let the user know everything... |
Forum: PHP Feb 11th, 2009 |
| Replies: 24 Views: 954 <td width=""><p><?php echo wordwrap($message, 75, "<br />", true); ?></p></td> Change 75 to whatever width you want. |
Forum: PHP Feb 8th, 2009 |
| Replies: 15 Views: 887 TommyBs is right. You don't need 's around your field names, and definitely don't use `. Is there in fact a field named status? And try doing this query directly in MySQL (via phpMyAdmin if you have... |
Forum: PHP Feb 8th, 2009 |
| Replies: 3 Views: 465 Hmmm, so you look for records with the user's selected year in it, thats where I would have started. But if we don't find any such rows, then it must already exist? I think not. Try $total > 0. |
Forum: PHP Feb 8th, 2009 |
| Replies: 15 Views: 887 Backticks are not the same as single quotes. read (http://us.php.net/language.operators.execution) |
Forum: PHP Feb 6th, 2009 |
| Replies: 24 Views: 954 Does the text overflow the width of the paragraph? Let me know if there is any CSS that would affect the <td> or the <p>. |
Forum: PHP Feb 6th, 2009 |
| Replies: 24 Views: 954 Have you tried setting the width of <td> to an actual value? <p> tags should word wrap automatically if the width is specified. |
Forum: PHP Feb 6th, 2009 |
| Replies: 24 Views: 954 In here:
<td width=""><p><?php echo nl2br($message); ?></p></td> |
Forum: PHP Feb 3rd, 2009 |
| Replies: 4 Views: 565 Learn database functions for whatever db server your client uses (MySQL, whatever). A tutorial on SQL statements and the php manual (http://us2.php.net/manual/en/) will help you with this. |
Forum: PHP Feb 2nd, 2009 |
| Replies: 9 Views: 428 Put this:
if (!$user_check) {
die('Invalid query: ' . mysql_error());
}
in between this:
$user_check = mysql_query("SELECT userdb_user_name FROM default_userdb WHERE... |
Forum: PHP Jan 31st, 2009 |
| Replies: 4 Views: 338 mysql_fetch_array (http://us2.php.net/mysql_fetch_array) returns an array, just a the name implies, so this statement:
$new_Number_value = $query_results_Number++; is trying to increment an array?... |
Forum: PHP Jan 29th, 2009 |
| Replies: 5 Views: 2,513 Where exactly are you calling session_start()? And that error just means you have some sort of output (check for spaces, newlines before your <?php tags) before you have called session_start(). If... |