Forum: MySQL Jan 30th, 2009 |
| Replies: 6 Views: 795 If you want the where to be contingent upon all the AND statements put them in parens.
eg:
WHERE (
AND a.paksh = b.paksh
AND a.tithi = b.tithi
AND b.date BETWEEN CURdate( )
AND (CURdate( ) +9)... |
Forum: Posting Games Jan 5th, 2009 |
| Replies: 530 Views: 28,061 |
Forum: PHP Jan 4th, 2009 |
| Replies: 13 Views: 2,456 http://www.w3schools.com/Ajax/ajax_intro.asp
Thats a link to an AJAX tutorial from w3schools, maybe that will be helpful hehe. |
Forum: PHP Jan 4th, 2009 |
| Replies: 13 Views: 2,456 Sorry I am not very familiar with javascript. I did just check the event is used as onsubmit not onSubmit. But yea I do not think that is what you are looking for anyways.
I totally missed that... |
Forum: PHP Jan 4th, 2009 |
| Replies: 13 Views: 2,456 you can use onSubmit instead. So the action takes place when the form is submitted.
And yes the header would cause a refresh of the page because it would go to the php page then back. |
Forum: Posting Games Jan 4th, 2009 |
| Replies: 530 Views: 28,061 788
Soon the three of us on team B will just give up and realize we are the B team. |
Forum: PHP Jan 4th, 2009 |
| Replies: 7 Views: 366 Take the table out of the while loop.
Use the while loop to create your image array.
$i=0;
while ($rows = mysql_fetch_array ($Img_result, MYSQL_ASSOC))
{
$imageArray=$rows['filename'][$i};... |
Forum: PHP Jan 4th, 2009 |
| Replies: 7 Views: 366 The reason you are only showing one file over and over is due to this line:
$realname = $rows ['filename'];
You need to tell it to iterate through the results array. You should keep a counter... |
Forum: PHP Jan 4th, 2009 |
| Replies: 13 Views: 2,456 What you should do when they submit your form to phpfile1.php do a redirect back to the htmlcode.html.
header("Location: htmlcode.html");
Or you can change the htmlcode to a php file and have... |
Forum: PHP Jan 4th, 2009 |
| Replies: 4 Views: 338 If this is your exact code you may be having inconsistencies due to syntax.
Change:
echo "Semester: $grammh[semester], class: $grammh[math], absences: $grammh[apousies], board_of_absences:... |
Forum: Posting Games Jan 4th, 2009 |
| Replies: 530 Views: 28,061 |
Forum: Posting Games Jan 3rd, 2009 |
| Replies: 530 Views: 28,061 |
Forum: HTML and CSS Jan 3rd, 2009 |
| Replies: 6 Views: 643 So, you have a user enter a search term then select which page they are going to search on.
The only thing that the code shown will do is redirect a person depending on the option they select from... |
Forum: PHP Jan 3rd, 2009 |
| Replies: 2 Views: 1,322 You might also want to make sure your upload limits are large enough for the file sizes you will be allowing. |
Forum: PHP Jan 3rd, 2009 |
| Replies: 1 Views: 608 To assign the values of the option list you are going to want to use a php echo inside the value quotes:
option value="<?php echo $StudentNumber;?>"
option value="<?php echo $Exam;?>"
When... |
Forum: PHP Jan 3rd, 2009 |
| Replies: 7 Views: 366 Are you saying you want 3 images per table row?
If this is what you want to do, you may also want to change your limit on the query results to 6.
Then you would put your table creation inside of... |
Forum: PHP Jan 3rd, 2009 |
| Replies: 4 Views: 338 What is the number you are expecting to be in the first slot?
Also, have you checked to make sure all the numbers are correct?
And why are you using DISTINCT here:
Select distinct orio_apousiwn... |
Forum: PHP Jan 3rd, 2009 |
| Replies: 2 Views: 748 I notice on the Foreign key explanation from the MySQL manual that their tables are INNODB.
http://dev.mysql.com/doc/refman/5.1/en/innodb-foreign-key-constraints.html |
Forum: Posting Games Jan 3rd, 2009 |
| Replies: 530 Views: 28,061 |
Forum: Posting Games Jan 3rd, 2009 |
| Replies: 530 Views: 28,061 |
Forum: Posting Games Jan 2nd, 2009 |
| Replies: 530 Views: 28,061 792..
why do I feel like this is a losing battle |
Forum: HTML and CSS Jan 2nd, 2009 |
| Replies: 2 Views: 586 You need to do:
#content a:link{
color:blue
}
That will change all link color inside of the content div |
Forum: Posting Games Jan 2nd, 2009 |
| Replies: 530 Views: 28,061 |
Forum: PHP Jan 2nd, 2009 |
| Replies: 7 Views: 959 If it wasn't already obvious to you, you would need to read the source code of the page. |
Forum: PHP Jan 2nd, 2009 |
| Replies: 7 Views: 959 I have not done this yet but I have an idea of how you would need to do it.
First you are going to need to use fopen to open the other page and place the contents of that page into a file for your... |
Forum: Posting Games Jan 2nd, 2009 |
| Replies: 530 Views: 28,061 |
Forum: HTML and CSS Jan 2nd, 2009 |
| Replies: 5 Views: 1,982 I have the same problems in IE7 IE6 IE5 and uh we don't look at the other IE browsers unless you want to cry.
IE made it possible to have different style sheets for different versions of IE or... |
Forum: PHP Jan 2nd, 2009 |
| Replies: 7 Views: 492 Ok let me set this out and see if I am understanding what exactly you what to do with the comment count.
You have comment count that I am guessing is a variable storing how many comments a user... |
Forum: JavaScript / DHTML / AJAX Jan 2nd, 2009 |
| Replies: 3 Views: 3,610 Do a search for lightbox or shadowbox or greybox.
Many of these have been made and are available for free downloads. |
Forum: PHP Jan 2nd, 2009 |
| Replies: 7 Views: 492 I have a database with almost 3000 entries in it at the moment and running a simple count from MySql runs very quickly.
If you are interested in the numbers you can run put a time at the top of your... |
Forum: PHP Jan 2nd, 2009 |
| Replies: 7 Views: 968 Last time I used Dreamweaver for anything other then my FTP it didn't magically write code for me.. lol
It does do a lot of stuff for you but you will have some serious headaches if you do not... |
Forum: Posting Games Jan 2nd, 2009 |
| Replies: 530 Views: 28,061 |
Forum: Posting Games Jan 1st, 2009 |
| Replies: 530 Views: 28,061 |
Forum: HTML and CSS Jan 1st, 2009 |
| Replies: 6 Views: 643 I think the best way to do this is to have the form validate to another page which then redirects based on the option that is selected.
So:
<form method="post" action="redirector.php">
On your... |
Forum: PHP Jan 1st, 2009 |
| Replies: 7 Views: 959 Are you looking to write a script to get the contents of a div on another page for you or are you just interested in looking at them yourself? |
Forum: PHP Jan 1st, 2009 |
| Replies: 15 Views: 13,620 I have not had to use the ob_ functions yet but I did take a quick look at:
http://us.php.net/ob_end_flush
It seems that ob_end_flush is not needed as PHP will do this itself if ob_start has been... |
Forum: PHP Jan 1st, 2009 |
| Replies: 15 Views: 13,620 So, if I am understanding you correctly, you:
have a form
you submit the form
the form goes to /js/ajax_form.php
user redirected (I think this is the step where you want the redirect to happen)... |
Forum: PHP Jan 1st, 2009 |
| Replies: 2 Views: 842 If you have access to these pictures and just want them on your computer, you need to set up a FTP client and use it to connect to your server.
Once you are connected you select the files you want... |
Forum: MySQL Jan 1st, 2009 |
| Replies: 4 Views: 3,200 http://dev.mysql.com/doc/refman/5.0/en/storage-engines.html
Thats a link to the MySQL site explaining the storage engines and how to set the engine you want to use for your tables. |
Forum: PHP Jan 1st, 2009 |
| Replies: 7 Views: 968 Being a newbie to php is something you are going to want to solve before diving into projects. I can tell you this from first hand experience, if you do not understand the code you are working with,... |