JRM 107 Practically a Master Poster

hi all,
i dont know how to get the right title of this thread.actually i wanna create a web-based system.i want to combine php n java.but for ui,i want to use html.anything that could help me like tutorial,example of web page code or any else?

i appreciate if sumone could give me a step by step tutorial on how to code web pae like background,txt field,dropdown menu and etc...

thanks for advance

For a start, PLEASE don't use text-speak!!!
Read what you have written above. Is this how you wish to present yourself?
You seem to know that PHP, Javascript and HTML are what you want to use,so what is the question? You want some pre-written code?
How about using something like wordpress,Joomla or Drupal? You can quickly modify these into just about anything you want.

Otherwise,the only way to learn how to do this stuff is to spend some time doing it along with the help provided at the sites that were already posted. Your first attempts may be terrible, but that's how you learn! Run your experiments on a localhost server setup.

JRM 107 Practically a Master Poster

It may be a syntax problem. try:

#footer {
	position:relative;
	height:362px;
	width: 100%;
        background:url('../images/footer_bg.jpg') ;
        background-repeat:repeat-x;

}
drewpark88 commented: JRM Rocks! He has helped me many times! +1
JRM 107 Practically a Master Poster

hi all,
I am a new learner of php. I m currently working on my 1st php project.project is all about a website development.The site is still underdevelopment. I want to include counter in m website in order to know the number of visitors.I am continuously searching for a snippet.Please help!!

Sorry! No snippets here, but you will need two things:
The PHP connection handling ;
http://us3.php.net/manual/en/features.connection-handling.php

...and a database to be incremented with each connect.

JRM 107 Practically a Master Poster

What kind of help do expect with a vague question like that?
Here's an equally vague answer: You have a code error somewhere...

Sorry to pounce on you, but please understand that we are not looking over your shoulder or telepathic. Questions should be concise and preferably accompanied by the problematic code.

You are not alone. I see this kind of nebulous posting here all of the time.
There is an "art" to asking a question in such a way that you will get a clear, helpful
answer in return.

JRM 107 Practically a Master Poster

usually after you make the connection, call mysql_query() to set your query then call
mysql_fetch_array() . Then you will have an array to read out.

The ultimate authority is here:
http://php.net/manual/en/book.mysql.php

JRM 107 Practically a Master Poster

Although I'm ignorant about cryptology that sounds very logical.
But how comes Even 100 characters long produce 40 Hash character. It kinda abracadabra doesn't it?

Not really. It's just a 'hash" of the original input string. The string is not "recoverable " from the hash. The original information is actually lost. However, the same hash is produced for a given input. When you make the encrypted password the first time , it is stored in the database. When you log in, you produce the hash once again and compare that with what was stored. The original information is only relevant in the hash sum that is created from it.

Think of it like a 40 bit shift register that you can shift any number of bit sequences though it, but you only have 40 represented no matter what.
( I don't mean to imply that this how sha1 works, but just an analogy of how to boil 100 down to 40)

JRM 107 Practically a Master Poster

An option value can be passed like this:

<option value = 1>Initial Brief</option>
JRM 107 Practically a Master Poster

Ok awesome thanks JRM. I took your advice and downloaded GeSHi a generic syntax highlighter. Now the only problem after I added the double qoute is that I am getting an error as follows:

Parse error: syntax error, unexpected T_VARIABLE in \\nawinfs02\home\users\web\b885\rh.mysite.com\orderform\process_transaction.php on line 30


Although I believe line 30 is for me is line 27 on this forum.

Better than Geshi, why not just get an open source IDE that does PHP? Netbeans and Eclipse are popular.
You left off a boat load of semicolons.

drewpark88 commented: JRM has helped me a bunch! +1
JRM 107 Practically a Master Poster

I don't know if both dates will be there or not. It depends on how that part of the code is.
Maybe the simplest approach is to do one at a time, but they STILL need to be differentiated from each other somehow, like date1 date2 or date[].
If the output of the calender is d , call it for each field and drop it into value.
Those element exist, (via hard coding ,PHP echo, or js DOM.) so when the value is populated by d PHP will pick them up as
$_POST[date1], $_POST[date2]

function insertdate(d) {
window.close();
window.opener.document.getElementById('date1').value = d[0];
window.close();
window.opener.document.getElementById('date2').value = d[1];
}
JRM 107 Practically a Master Poster

How about in viewby_IT.php, use this query:

$sql=mysql_query("Select * from students where (voted=1 AND coarse = 'cs')");

In viewby_BA.php use this query;

$sql=mysql_query("Select * from students where (voted=1 AND coarse ='ba')");
JRM 107 Practically a Master Poster

It is the concatenate operator.
Call it the glue that binds if you will...

JRM 107 Practically a Master Poster

OK for the LAST TIME - I am not a student ... I am not here for homework ... and I am not asking for HAND OUTS ... I am simply a new person to PHP programming and I am asking for a little help with creating a script that will do what I am trying to do ... why all the attitude and negativity ... look if you dont want to help then just keep your feelings thoughts and opinions to yourself cause honestly I am not interested in someone that knows a programming code that I am not familiar with RUNNING off at the mouth cause they know more then I do ... SIMPLE you dont want to help then dont but passing judgement on somone or closing threads that they are opening to ask for help from those that are willing to do so is just totally ignorant and wrong ....

I am working on MY personal website and that is what I want this script for and to learn from ... its very simple and instead of running off with the drama why wouldnt you offer to help somone ...

I dont just cut and paste code I change it modify it and learn from it as I do ... so why the UNNEEDED DRAMA ...

If you are not a young person, you certainly have a healthy sense of entitlement like many "20 somethings" do.
Why don't you study this stuff, write bad programs …

nav33n commented: Exactly! +6
JRM 107 Practically a Master Poster

I have a table that accepts article and email from a user and another table that accepts the name and comments from another user. I want the first user(the person who post the article to recieve email that someone has commented on the article.
I will appreciate it if you can write out the pseudo code e.g
//query your db,left join the two tables
//blah blah

something like that, and i will even appreciate it more if it's the code or something.
Just as daniweb sends email to me when u reply to my post. Thanks

How about YOU writing some code, and others will help you along the way?
We all have our own projects to do, we don't need to do yours as well.
That's what some of us get paid $$ to do. Are you offering $$?

JRM 107 Practically a Master Poster

JRM he/she want to get value of start and end from user... so your code will not work Sorry Dear !

Ah, but it was YOUR code that YOU wrote for him/her.
He/she did not need to think his/her way out of a paper bag! LOL

I believe in assisting the process, not doing it for them.
You have been snookered into doing somebody's homework, my friend!

JRM 107 Practically a Master Poster

I dunno, post like this disturb me a bit , since you are not thinking at all, but just ask others to do the work for you.
anyway, here is the the way you set the start and end:
Modifying the previous answer:..

<?php
var $start = 3 ;
var $end = 30 ;
$total=0;
for($start;$start<=$end;$start++)
	$total=$total+$a;
echo "Total of 1 to 10 is : $total";

 ?>

Now...was that very difficult?
I set the variables as hard values, but you can also make a form with inputs for those variables, then pick them up with $_POST.
No, I am not going to write the form for you...

JRM 107 Practically a Master Poster

I want to know more about php programming.. can any one tell me about php programming..

That's what your rambling thread was supposed to be about?
Well, here ya go...
http://us.php.net/manual/en/index.php
It wasn't very hard to find , either!

JRM 107 Practically a Master Poster

What's your point? Hire Indian programmers? Are you looking for a job?
I don't understand...must be a language barrier!

kireol commented: hah nice :) +2
JRM 107 Practically a Master Poster

Man, this thread is making my head hurt!
The long and short of it comes down to:
MySQL has it's own date time format. There is no way to change it.
PHP has all of those functions just for such occasions.
You can use strftime() to format the date the way you wish to display it, but only save it the way that MySQL wants it. Once again you can use strftime() to change it back to MySql format.
The only drawback is that Strftime() will call time() if it gets a null argument for time.
I would have preferred that it just showed a blank...

darkagn commented: all good points :) +3
JRM 107 Practically a Master Poster

congratulations! It works, albiet a bit inefficient.
As I said before, the only reference needed was x
and you pulled that one in as a value!
All you are doing by taking in all those other unneccessary references is to bring the variable scopes INSIDE the function. It works just as well if the variables were set as global. Aguments pass things in, not out!

I get the feeling that you have missed this point.
good luck.

JRM 107 Practically a Master Poster

Here's a tip
GOOGLE is your friend.
Whenever you have a "lookup" type question,
try Google-ing it first . Enter it like this:
C++ continue
C++ break

You may use this method for any lookup question you may have in the future.
It doesn't even have to be limited to C++ either!

Salem commented: Yes! +15
JRM 107 Practically a Master Poster

Of course it doesn't -- Turbo C is not a C++ compiler.

LOL! ...but the OP didn't seem to know that!

His first line reads:
"i wrote a program in c ++..."

Ancient Dragon commented: nice catch +15
JRM 107 Practically a Master Poster

in the comparison program, the first two prototypes are incorrect. You have the test condition (a,b) which makes no sense. Later on you use it correctly with (a==b).

If you took the time to read the compiler errors, you could have noticed this immediately !

I learn allot from compiler puke...

Ancient Dragon commented: compiler puke :) +18
JRM 107 Practically a Master Poster

Wow! That was interesting. Getline essentially "ate" the left buffer.
I suppose it was left buffer since it was allocated first. Everything uses the lowest address number available and works out from there?

So, the moral to the story is to preallocate pointers to avoid problems?
By changing buffer to [6] fixed the problem.

I was hoping that that char was dynamically allocated so that they didn't waste memory like arrays do. No free lunch -eh?

iamthwee commented: The moral of the story is use std::string like everyone else. +11
JRM 107 Practically a Master Poster

Well its not that my code is wrong , actually I use turbo C++ which is surely outdated in today's world. It still accepts the old rules and syntaxes applied in C++ , which have been changed since 1998. I openly admit that our college still loves old setups .

Well, IMHO if you are PAYING good money for an education the university should give you a proper one! Learning outdated/obsolete methods is worthless. Can you tranfer to better school?

Also, if you have your own computer, geo to www.codeblocks.org for a very good and FREE IDE.

also get the mingw gcc compiler to work with it. The thing keeps me honest! Also FREE.

You code as written will not fly in any modern commercial setting.
In fact, that gets() is depreciated. It works but is "dangerous". How do I know? My compiler told me!

I would highly recommend that you work with modern tools like these open source professional quality programs i mentioned.

Why learn to write code that won't compile by today's standards?

BTW, i wrote a version of tis that uses char* instead of arrays (much easier). They don't need to be pre-allocated either.

I stuffed the the pointers with cin.getline(a, 100, '\n').

iamthwee commented: I have stock shares with gets(), when did it depreciate? :( +12
JRM 107 Practically a Master Poster

You should post ALL your custom includes as another "code" entry in text, just like the main program.
Nobody likes to open attachments...

Did you try removing the breakpoint in question?
sometimes it's just as easy or easier to insert a "test cout" that reports the state of variables in a non-cooperative program.

iamthwee commented: Hell yeah, attachments suck-ass +9
JRM 107 Practically a Master Poster

I'm certainly no expert, but I believe the serial I/O is setup with a tty device , then an emulation is setup in termcap. There is a command line program to do this, but I don't remember what it is.

The serial device gets associated with serial port, the device is associated with the emulation and a login profile is created.
You can tinker with the selected termcap for various effects and the login profile will determine the level of security, plus shell scripts to be run at login.
I don't think you can do much with Linux without a login shell!

Sorry to ramble, but i think that's roughly the area you need to be looking at...

SpS commented: Nice ~~ SpS +3
JRM 107 Practically a Master Poster

All VERY good hints! I had it alphabetizing soon after I got strncmp() working. You have to fix BOTH "if" statements and their attendant functions. Also think about what the "next" loop is actually doing.
There is a simple statement to make it "do more".

To my surprise, two "if" statements were needed. Each checking a different "direction". Once you get it to work, try commenting one set out and see what happens. I thought it was educational..

If I tell you the answer, then you will NEVER get a feel for this stuff! Learn by deductive reasoning-it's the only way.