kanaku 60 Posting Whiz

I think you're better off downloading the php manual --- then treating us to a cookie-fest with the money you saved from the book. :)

But seriously, the manual has sample codes for the functions so it's a good 'buy' (download?). Plus it's in digital format. I <3 CTRL+F.

kanaku 60 Posting Whiz

It doesn't work either. But thanks anyway. :)

I can't use the --more-- tag because I've already used it for something else. Funny how something as 'powerful' as wordpress can't even deal with in-page link tags... :D

I guess it can't be done. They're stripping it intentionally... I'll just install a wordpress blog on my site.

kanaku 60 Posting Whiz

I don't see any problems. :(

kanaku 60 Posting Whiz

Eh. Don't use tables for the tag-cloud. :p it's called a tag-cloud because of the 'random'-ness of the text. Putting it in a table will create an ordered, block-structure. Try this code in your html body: <p><span style="font-size: 11px">Thing 1</span> <span style="font-size: 20px">Thing 2</span> <span style="font-size: 16px">Thing 3</span> <span style="font-size: 14px">Thing 4</span> <span style="font-size: 12px">Thing 5</span> <span style="font-size: 28px">Thing 6</span> <span style="font-size: 19px">Thing 7</span> <span style="font-size: 15px">Thing 8</span></p> --- quickly taken from this tutorial

For your 'scrolling' effects. You can choose from a load of effects at dynamicdrive. But I suggest you choose one consistent effect only. (Or just use CSS to change the color)

kanaku 60 Posting Whiz

Sorry.. I tried running your query in my localhost (5.0.67) and it didn't generate any error. :(

kanaku 60 Posting Whiz

We understand what you're trying to do. The cats.php and dogs.php ARE server-side BUT the javascript for checking the value of the selected option and changing the form action is NOT.

So instead of using the javascript code I gave you earlier, the others are suggesting you have one file (ie) processform.php.

Inside processform.php is a simple script that goes like this:

$selected = $_POST['dropdown'];
// do some variable cleaning here...

if ($selected == 1)
include ("dogs.php");
else if ($selected == 2)
include ("cats.php");

Of course the others suggested a redirect, but I don't want to be sued for plagiarizing. They should work more or less the same way. :)

kanaku 60 Posting Whiz

Heehee. We're at 800 now!

816

kanaku 60 Posting Whiz

I think he/she thought this was a 'sharing' thread... for your likes and dislikes. :)

Your signature...? Like it. :)


iGoogle?

kanaku 60 Posting Whiz

obtain

kanaku 60 Posting Whiz

Dogs. (with mayo, mustard, and cheese)

... oops.

You mean we're not talking about FOOD?

kanaku 60 Posting Whiz

My application will support multiple comments for every posted question. Wouldn't using the model you suggest require me to store all a question's comments in a single table cell? It's possible (until the length of the complete comment text exceeds the largest table variable's storage capacity), but it seems unnatural and would require additional overhead.

Nope. I meant well, but I didn't explain well... :) *rewind*

Answers table structure:
- answerID
- questionID
- commenterID
- commenttxt

The answerID is unique, it will reference a questionID that can be repeated in the answers table... Here is a sample answers table:

ansID: 1
quesID: 1
commenterID: 34
comment: "No, you can't eat dogs in the US. That's illegal."

ansID: 2
quesID: 1
commenterID: 8
comment: "Why would you want to eat your pet?! That's disgusting!"

ansID: 3
quesID: 1
commenterID: 72
comment: "Someone delete this question!!!!!"

ansID: 1
quesID: 2
commenterID: 28
comment: "Hi, confusedgeek489! I had the same question myself. You can go to (link)daniweb if you want to find answers. Cheers!"

---------------------------------------------------------
I forgot why using the multiple tables approach is not advisable. (I tried to do it before... :)

kanaku 60 Posting Whiz

There are a couple of computer dictionary terms for pages like that one:
- Angry fruit salad
- Angry fruit cocktail

Heehee. Thanks for enlightening me (and gamely rubbing it in, you can keep my naivete). :p


Sorry for hijacking your thread Designer_101. To answer your design vs implementation problem, take a look at rev.iew.me. You can design the background using an 800px canvas in Photoshop, right? But the design 'expands' to fill the whole width of the screen due to a repeating background.

You can use % not only for the margins but for the content itself. When you're planning a design, you can use this technique: Start with a small canvas (700-800). Use a prominent banner for your centerpiece and have the background look 'interesting' (ie not bland) by tiling a small (1px?) strip.

If you design like this, you can now use percentages without fear of 'breaking' the layout you drafted in photoshop. For example, set 80% as the width for the content itself without the layout looking cut-off (recall the tiling 1-px background).

However, the problem with percentages is that it might stretch your content too wide (ie monitors with 2000px*80% = 1600px!) and people don't like reading long lines OR it might make your content too thin (say if the browser window is 200px, 80% = 160px. Yikes!) What you can do is add a max-width or min-width to your content div. BUT IE6 (and/or …

kanaku 60 Posting Whiz

Hallu! this page says something about reserved words being used in your query. It also says that this is sometimes caused by a mySQL version mismatch and provides a tip for exporting your database using phpMyAdmin to prevent this error.

Their link to reserved words is outdated. Try this one.

kanaku 60 Posting Whiz

Hallu again rajeesh! SkyVValker had the same problem about limiting the display. His question was already answered here by DiGSGRL. :)

kanaku 60 Posting Whiz

Actually, you can just have a comments table with the following columns (at least):

- questionID
- commenterID
- commenttxt

So when you display the page showing question#42, you will query the comments table where questionID = 42.

kanaku 60 Posting Whiz

Hallu rajeesh! There is a special forum for search engine optimization at daniweb. So head on there and ask away to your heart's content. :)

kanaku 60 Posting Whiz

Yes. I quoted it lots of times now. :)

Should people sue for copyright infringement due to excessive signature quoting?

kanaku 60 Posting Whiz

normalizing

kanaku 60 Posting Whiz

Haven't tried it. :(

falling in love? :cheesy:

kanaku 60 Posting Whiz

Waah... you're catching up!

792!

kanaku 60 Posting Whiz

You're welcome. :) It was fun learning too...

kanaku 60 Posting Whiz

I don't want to ignore you but I don't know the answer either. :|

kanaku 60 Posting Whiz

794. Go team A!

kanaku 60 Posting Whiz

why do I feel like this is a losing battle

Post it in your signature. hehe


792. :D

kanaku 60 Posting Whiz

Oh ok. sorry about that... I didn't notice the 'coming out' effect. Here's the code for it:

body
{
background: #FFF url('logo.png') no-repeat 150% -125px;
}

I snooped at the code *hungs head in shame* and played around with the values. The % should be greater than 100. The -125px is the background's distance from the top (you can set it to 0 if you want to observe the behavior of the background as a test subject).

The % value specifies the horizontal position of the background. 0 means left and 100% means right. Since the value is greater than 100%, the background is partially hidden (the rightmost portion of the background is in 115% of the browser's width). For example, if your monitor is 1000px, the background's rightmost part is at 1150px. So 150 pixels of your background is hidden.

Since 115% of 200pixels is less than 115% of 1000 pixels, resizing the browser to 200pixels is like positioning the background's rightmost edge to to (15% of 200) or 30 pixels from the 'end' of the browser. This brings down the 'hidden' portion of your background to 30 pixels (from the initial 150).

I don't understand the exact concept of which exact value to use... For example, if it's really the right-edge that's being positioned, setting a value of 0% should hide the image completely, right? But it positions the background to the left. =/

If you want to play with the values, try …

kanaku 60 Posting Whiz

And here I was thinking Silverlight was the sword obtained from Sir Prysin that was used to kill Delrith...

I learn a lot just sitting at the daniweb doormat. *wags tail* Welcome to daniweb, viola!

kanaku 60 Posting Whiz

I'm curious why there are a lot of people joining daniweb from India. Does daniweb travel by "word-of-mouth" at your work or is it popular particularly in your country? How did you find daniweb? Will I ever live to see this question answered? Did I welcome you already? No?

Oops. Welcome and halluuuuuu subhomoy. enjoy your stay (here's a cookie --- nonedible. for tracking purposes only)

kanaku 60 Posting Whiz

Hi! I'm... err.. kanaku (not my real name). I'm an avid stalker of the introductions forum since... a week ago. This is exactly what brought me to your topic and now I'm going to bombard you with questions like I did the others:

By batch 2008 did you mean you graduated last year or you're a freshman student? (Because I'm batch 2005 and it means I entered college 3-4 years ago)

Visiting lecturer! out of the country? Anyway, welcome to daniweb Arshad!

kanaku 60 Posting Whiz

You have to find a balance between the price you're willing to pay and the quality you're willing to settle for.

BUMMER (about the scamming part)

It's easier to code 'great applications' rather than to come up with a unique idea that's going to sell. If you had a great idea that got stolen by people who you hired to code it, BUMMER (again).
I hope that this time, you find programmers with a decent background/reputation so you won't get scammed.

I'm not an IT expert. (I'm a chemical eng'g student, actually) but these are my two cents worth: do not compromise the quality of the work (your confidence in the person, the application he's going to develop, etc) just to be able to cut back on costs. Choose a decent middle ground.

PS: welcome to daniweb

kanaku 60 Posting Whiz

Cool. (Even if I didn't ask the question)

I always wondered how the check(ed)boxes are passed to the table.


But is it bad practice to create a separate table that holds the checked values for all users (ie an interests table that stores userID and interestID?)

kanaku 60 Posting Whiz

You might also want to download the PHP documentation in .chm format for quick reference.

And install a local 'practice' server using xampp so you don't have to sign up for a php and SQL supported host. (Because I think it isn't convenient to test your scripts when you have to use FTP everytime you update a few lines of code)

kanaku 60 Posting Whiz

It's a background image set in the document body.

Here's the CSS code for it:

body
{
background-image: url(image.gif);
background-position: top right;
background-repeat: no-repeat;
}

OR a shorthand version

body
{
background: #FFFFFF url(image.gif) no-repeat top right;
}
xander85 commented: Great resource! You are appreciated! +2
kanaku 60 Posting Whiz

LMAO

794 (again)

kanaku 60 Posting Whiz

Love-hate it. (depending on quality)

Posting games?

kanaku 60 Posting Whiz

Ack!

I say, 794, you stubborn little cat! :p

kanaku 60 Posting Whiz

Some first-time posters are confused. They're starting to think we don't want to help. To those people who are confused, don't be scared. :D Of course we're willing to help. We just need 'proof' that you already spent time on this.
To clear things up, here are examples of scenarios where I (probably) won't help:

- "Hi I want to open my file without number seven popping up so I changed the settings like it said and when I opened the window like in the instructions it should go blue but it went green! I tried it again with pink but the number 8 became number 9 and it's going to become number 10. I tried restarting but I'm lost. Pls help."

Explain. Please, please, please explain what's happening. Don't ask like we're standing behind you and have seen all your valiant efforts at hair-pulling. If the poster is in luck, someone might reply with this: What are you opening? What tutorial are you following? What did you change? Isn't pink the nicest color in the world? --- to the path of enlightenment. Most of us will just give up though.

- "Variable X is a factor of variable Y. If variable Z is integrated from X to Y, array M should be generated such that it contains all the possible combination of (X,Y) that will lead to an answer Q without an instance of X equal to Y."

This thread will get no answers. Only posts …

kanaku 60 Posting Whiz

794

kanaku 60 Posting Whiz

Nope... *thank God for Google and Apollo 8*

Do you play Earthrise?

kanaku 60 Posting Whiz

Well, if Dreamweaver can do that, you don't need any code at all. =p

Here is a set of tutorials from connecting to the database to user authentication.

Don't ask me about Dreamweaver though. *runs away*

kanaku 60 Posting Whiz

*clobbers Fab*

This is fun. When the game is finished, let's do it by multiples of square root of 2. LOL

790.

kanaku 60 Posting Whiz

Dumbledore

kanaku 60 Posting Whiz

Ack! It is Mr.19-things-plus-four! haha

Excuse: The audience is designers-wanting-to-be-wowed... right?

Be merciful. You should give it points because you can still use the back button. =p

*tries to delete quoted post but fails due to 30-minute rule*


update:
Midimagic, you ruined it for me... I can't love webdesigner wall like I did 80+ posts ago... give me back my naivete!

kanaku 60 Posting Whiz

Wow. You're honest. LOL

But still, welcome stationq. =)

Remember: the more entries you send, the more chances of winning! So post away!

kanaku 60 Posting Whiz

*beams at beamo*

Welcome welcome!!! Please, post to your heart's content.** LOL

**disregard creepy welcome message

kanaku 60 Posting Whiz

Yey for a new convert!

How do you read gdimike? :/

kanaku 60 Posting Whiz

Greetings, earthling. Welcome to daniweb. ;p

kanaku 60 Posting Whiz

Hello! Kumusta? haha welcome to daniweb

kanaku 60 Posting Whiz

Try this link.

It's a copy-paste tutorial. :D

kanaku 60 Posting Whiz

1. Can we have multiple files open at one time?
If yes, then I'd love to see a save-workspace option. (So I won't have to open the 4-8 different files next time).
2. Find and Replace functions. Better if you can do a search on all open tabs. :p

(I'll come back if I come up with something else)

kanaku 60 Posting Whiz

I agree with the cat. =) It's better to do this on the server-side.

But if you insist, you can try this:

<form method="post" name="dynamicform" action=""><input name="title" id="title" type="text" value="" />
<select name="dropdown" onChange="document.dynamicform.action=(this.value)"><option value="1">Page1<option value="2">Page2<option value="3">Page3<option value="4">Page4</select>
<input type="submit" name="search" value="Search" /></form>

This will give an action of "1" or "2", etc.. since those are the values of your drop down list.

I set the form action to null initially so that when the user tries to submit without choosing an action, nothing will happen.

However, javascript might not be the best (secure?) way of doing this. (still agreeing with black-cat)