430 Posted Topics

Member Avatar for ditty

I think you want a [URL="http://code.google.com/intl/nl/apis/language/translate/overview.html"]Google Translate API[/URL], but it's deprecated. You could also use the [URL="http://www.bing.com/developers"]Bing API[/URL].

Member Avatar for twiss
0
107
Member Avatar for microlatina
Member Avatar for microlatina
0
120
Member Avatar for bunnyboy
Member Avatar for newbie14

You could try to add [icode]'masterID=' + document.getElementById('masterID').value[/icode] in send(), assuming that the input element has that id. But I've always found ajax a pain, without a library.

Member Avatar for newbie14
0
150
Member Avatar for omer.merdan
Member Avatar for didi00

Could you add [icode]print_r($shopConfig);[/icode] at line 16? Especially take a look at this value in line 20 - seems strange to me (even if you type a real email there).

Member Avatar for didi00
0
208
Member Avatar for tom356

In order to view a gif, you don't have to convert it to swf. You could write some stuff around it that handles the play button - a play image, an image preloader, and a click handler :)

Member Avatar for twiss
0
74
Member Avatar for Inny

That's a really old script, it's meant to work in IE and Netscape. I still recommend Flash, but you could try an [icode]<object>[/icode].

Member Avatar for twiss
0
168
Member Avatar for kolibrizas

I don't know why someone downvoted that, I find it good questions. While writing a CMS (of course) won't get boring soon, you'll be careful not to do things over and over again in writing it, too. Some tips: You'll definitely have to make a class for every [i]part[/i] of …

Member Avatar for iamthwee
0
393
Member Avatar for Landscape

You could use any server side language for this. For example, you could change the extension of your pages to php and write this: [icode]<?php include 'menu.php'; ?>[/icode] Where menu.php contains the menu (duh). You could also do it the other way around, put the menu in index.php and include …

Member Avatar for Geowil
0
287
Member Avatar for jennia1686

Perhaps that's because of the Panda update? Just a guess, though, because quite some sites have been hit by that update (including daniweb).

Member Avatar for BrandonCooper
0
73
Member Avatar for Xcelled194

[url]http://petewarden.typepad.com/searchbrowser/2008/06/how-to-post-an.html[/url] Edit: perhaps this is not what you want, take a look at get_headers().

Member Avatar for Xcelled194
0
157
Member Avatar for MasterGberry

I prefer [url]http://devzone.zend.com/article/627[/url]. Both aren't perfect, but Zend tries a bit harder to teach you some best practices, and as you mention database injections, w3schools [url=http://w3schools.com/php/php_mysql_insert.asp]doesn't talk about that[/url] but Zend [url=http://devzone.zend.com/node/view/id/642]does[/url].

Member Avatar for chrishea
0
542
Member Avatar for hsmukunda

Internet Explorer doesn't support this box shadow thing. Give it a border (black 1px) at least. Also, it's nicer if you give it background:#FFF;

Member Avatar for twiss
0
131
Member Avatar for PatOverHere

As this is server-side (as the name suggests), you normally won't see it in the source.

Member Avatar for twiss
0
67
Member Avatar for Sorcher

@Sorcher, is English your native language? If not, you're forgiven :) What floor does, is round any number, but downwards. So: [CODE] echo floor(2); // 2 echo floor(2.5); // 2 echo floor(2.999); // 2 $x = 9; echo floor($x / 10); // 0 $x = 10; echo floor($x / 10); …

Member Avatar for Ezzaral
0
126
Member Avatar for aaron1988
Member Avatar for HelenLF
Member Avatar for twiss
0
55
Member Avatar for dyingatmidnight
Member Avatar for twiss
0
81
Member Avatar for RoseMary3

Please don't post a question [url=http://www.sitepoint.com/forums/search-engine-optimization-3/what-exactly-shallow-content-763215.html]on two places[/url]. Read: [url]http://www.masternewmedia.org/the-google-panda-guide-part-1-what-it-is/[/url]

Member Avatar for twiss
0
336
Member Avatar for Aamit

Well, it depends. Do you want the first day of the week to always be the first day of the month? Besides: [url]http://php.net/manual/en/book.datetime.php[/url]

Member Avatar for urtrivedi
0
9K
Member Avatar for ebanbury
Member Avatar for twiss
0
149
Member Avatar for merse

You could try to put them both in a div, with the div's width:auto, and the tables a maximum width. Or you could the width of the second table to the width of the first table with javascript (onload).

Member Avatar for twiss
0
97
Member Avatar for rizla777

As I understand it, you want some sort of tabs thing? You could do something like this: [CODE=HTML] <div class="menu"> <div class="tab1">Home</div> <div class="tab2">Bla</div> .. <div id="content"> <div class="tab1">Home text</div> <div class="tab2" style="display:none">Bla text</div> .. [/CODE] [CODE=Javascript] $(function() { $('.menu > div').click(function() { $('.content div').css('display', 'none'); $('.content .'+this.className).css('display', 'block'); }); …

Member Avatar for twiss
0
141
Member Avatar for bangla

Okay, some hints. - Use code tags :) - This doesn't exactly matter, but your select name doesn't make sense. You better rename it to something else (perhaps state, but you're using name?). - Options have a value, not a name. (Perhaps you also mean $row[State]? But I'm not sure …

Member Avatar for twiss
0
215
Member Avatar for dyingatmidnight

I think you're forgetting [icode]$checkedout == 0 && [/icode] on line 36. And then on line 60 you can just remove the if.

Member Avatar for dyingatmidnight
0
113
Member Avatar for navi17
Member Avatar for twiss
0
87
Member Avatar for MadMaddie

Probably $page starts with one? Try to [icode]echo "SELECT * FROM Populace ORDER BY Name LIMIT $start, $ppp"[/icode] first, and run that in phpmyadmin or something similar.

Member Avatar for twiss
-2
241
Member Avatar for Bheeman89

As far as I understand those things, you have to salt first, and then hash it - and not just md5, but really a lot of them mixed. It's a good idea to use someone else's security script, also.

Member Avatar for twiss
0
188
Member Avatar for rents

One way is to create an image (1px width, but very 'high') that does just that and repeat it horizontally. Another way is to create the (pure) css for that at [url]http://www.colorzilla.com/gradient-editor/[/url].

Member Avatar for rents
0
139
Member Avatar for samsons17

For every account (email) type you want to be able to access, you'll have to find an API that you can use to get the list of contacts. As for gmail, take a look at: [url]http://code.google.com/apis/contacts/[/url].

Member Avatar for samsons17
0
165
Member Avatar for muralibobby2015

Well, there are a lot of ready-made scripts that can do that for you, but on the other hand, if you only need a simple xml, you could easily write it yourself. Just start with looking at how a simple xml file should look, create that, and use file_put_contents for …

Member Avatar for urtrivedi
0
121
Member Avatar for Ritesh_4

Yes, in html5 there is: [icode]<input type="date">[/icode]. But it's not really widely supported.

Member Avatar for Ritesh_4
0
161
Member Avatar for PixelatedKarma

Yes, as you need only one row, a while loop is not necessary. As for the other change, I prefer the original version. If the site is down now, the code will be invalid (the body and html closing tags are missing - you could also add them in the …

Member Avatar for vibhaJ
0
158
Member Avatar for ebanbury

Try something like this: [code] if (isset($_POST['submit'])) { $reg_agent = $_POST['reg_agent']; $reg_license = $_POST['reg_license']; if ($_POST['reg_agent'] == "Yes" && !empty($reg_license)) { $dbc = mysqli_connect("localhost", "xxxxxxx", "xxxxxxxx", "xxxxxxxxxx"); $query = "INSERT INTO user_test (reg_agent, reg_license) VALUES ('$reg_agent', '$reg_license')"; mysqli_query($dbc, $query); } else { echo 'You need to enter a license number.<br …

Member Avatar for ebanbury
0
145
Member Avatar for pseudorandom21

Yes, good idea. Perhaps it could be implemented so that if the code contains something between {{{ and }}} those pieces of code are shown, and the rest is hidden? The only problem is to get new users to use this. They often don't use code tags at all.

Member Avatar for diafol
0
225
Member Avatar for pritaeas

I haven't done research on this, but my guess is that it's used for personalisation and social (sharing) stuff rather than the place on the page. If it has any influence at all, perhaps only if many people vote up or something like that.

Member Avatar for Dani
0
282
Member Avatar for mrcniceguy
Member Avatar for diafol
0
125
Member Avatar for aymenbnr
Member Avatar for dyingatmidnight

It might be that that's not the problem, but there's a missing ) at the end of the query. What does [icode]var_dump($daysLate);[/icode] say?

Member Avatar for dyingatmidnight
0
306
Member Avatar for raghujosh

It's easiest if you give it an ID, first. Then: [code] document.getElementById('that_id_you_gave_it').value = '3'; [/code]

Member Avatar for twiss
0
104
Member Avatar for Lightninghawk
Member Avatar for Tyrone.Wilson
Member Avatar for heshanm

Well, before you execute your query (account.php line 14), you'll have to do some validation. If gender == male && type == B echo error, something like that.

Member Avatar for heshanm
0
227
Member Avatar for muralibobby2015
Member Avatar for twiss
0
121
Member Avatar for dschuett

I'm not sure if I understand what the problem is, but what you want might be an different easing. If not, do you have a page live to explain what doesn't work?

Member Avatar for twiss
0
173
Member Avatar for ciokhan

I would try to use css. To create an hover effect, do something like this: [CODE=CSS] table:hover { background-color:#F00; } [/CODE] Furthermore, if you search for "gimp make png transparent" you'll get a lot of tuts/ explanations.

Member Avatar for twiss
0
246
Member Avatar for floatingDivs

/styles.css is in fact an absolute path. A relative path would be styles.css. "having to create a local folder" - I don't really understand this, you can't access a local folder from the web, but that's probably not what you mean. Perhaps you have a link to somewhere you have …

Member Avatar for twiss
0
91
Member Avatar for kurtopia

Well, if you absolutely need to do this, you'll have to find a way to read doc's and pdf's, and write the whole thing into one pdf. Also look at [url]http://www.phplivedocx.org/2009/02/06/convert-doc-to-pdf-in-php/[/url].

Member Avatar for twiss
0
68
Member Avatar for sithembisophp

I suspect that (if this works) you need [icode]feed[0].userID[/icode]. If that doesn't work, try to log feed ([icode]console.log(feed);[/icode]), look at your browser's log, and figure out what [icode]feed[/icode] is.

Member Avatar for twiss
0
94

The End.