Posts
 
Reputation
Joined
Last Seen
Ranked #4K
Strength to Increase Rep
+0
Strength to Decrease Rep
-0
100% Quality Score
Upvotes Received
5
Posts with Upvotes
5
Upvoting Members
4
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
3 Commented Posts
0 Endorsements
Ranked #1K
~16.3K People Reached
Favorite Tags

68 Posted Topics

Member Avatar for Clarkeez

Try adding in something like this to the $.post success function (add an id 'submit' to the submit button): [CODE] $('#submit').remove(); $('#myform').append('Thanks for submitting');[/CODE] This will take the submit button away once the data has been posted.

Member Avatar for udara86
0
783
Member Avatar for danielagaba

Ajax is the way to do this. You need to send the form to a php script with ajax and then have it return the data to the textarea. Here is a simple ajax request to get you started: [CODE] function ajaxHandler(endParams, returnId) { var ajaxRequest; // The variable that …

Member Avatar for php_dev
0
690
Member Avatar for CoolAtt

Just an idea, but you could have the forms submit to your first PHP login processing file, then pass the rest of the info along to the other login processing files with curl from your first script.

Member Avatar for diafol
0
256
Member Avatar for xylude

Hey all, I tried to do a simple redirect from domain.com to [url]www.domain.com[/url] and being the noob that I am, I apparently caused some sort of lingering issue. Now anything with a / in it gets the slash removed. For example, a link to domain.com/blog goes to domain.comblog. I took …

Member Avatar for rch1231
0
96
Member Avatar for johndohmen1963

Try putting this in your loop: [CODE] if($row['nummer']!=$i) { //You have a blank space, put your mysql query here mysql_query(" UPDATE narr_fotos_kostumball SET nummer=('$tafel$i') WHERE albumdescription='$album_descr'"); } [/CODE]

Member Avatar for johndohmen1963
0
109
Member Avatar for xylude

I am running the following code: [CODE] if(is_array($check)) { foreach($check as $val) { if($_SERVER['PHP_SELF']==$val) { $show = false; break; } else { echo "<p>".$_SERVER['PHP_SELF']."!=".trim($val)."</p>"; } } } [/CODE] And I am getting the following output: /client/scheduled.php!=/client/scheduled.php Hopefully it's not something dumb on my part, I appreciate any advice.

Member Avatar for xylude
0
87
Member Avatar for RazorRamon

$("#messages").load(function('loadchat.php'); should be $("#messages").load(function('loadchat.php'));

Member Avatar for xylude
0
574
Member Avatar for xylude

So I'm trying to access the .css('height') of an element and it keeps returning 0px regardless of what it's height is. I've put a couple alerts to see what it gets in the $(document).ready() function so it should be accessible by then. The height property is being set in the …

Member Avatar for xylude
0
73
Member Avatar for Soben

For that kind of stuff I usually use the $(id).load(htmlLocation) function like so: [code] $('#content').slideUp('slow',function(){ $(this).load('page.html',function(){ $('#content').slideDown('slow'); }); }); [/code]

Member Avatar for xylude
0
203
Member Avatar for akilapuritha

Any reason you can't use jQuery? It seems to do all the compatibility stuff for ajax just fine. If not, try swapping that code block with this one. [code] try { // Opera 8.0+, Firefox, Safari xmlhttp = new XMLHttpRequest(); } catch (e) { // Internet Explorer Browsers try { …

Member Avatar for xylude
0
68
Member Avatar for Nfurman

Dumb question but are you sure you gave the cancel button an id of btnCancel? Also you should have that first function check to see if the user has entered text. You should also change .click to .focus on the first function because if for some reason they click the …

Member Avatar for pritaeas
0
132
Member Avatar for mindmyweb

Why not use copy(source,destination) and rename(file,newfile) instead? copy: [url]http://www.php.net/manual/en/function.copy.php[/url] rename: [url]http://www.php.net/manual/en/function.rename.php[/url]

Member Avatar for mindmyweb
0
257
Member Avatar for fluffybunny69

The problem is that $keyword isn't set until after you have sent the user to the other page. You should use javascript so send the user to the url instead of a form. jQuery code would look like this: [CODE] $('#searchsubmit').click(function(){ var keyword = $('#se').val(); window.location = http://www.domain.com/default.aspx?st=FT&ss=+keyword; }); [/CODE] …

Member Avatar for ko ko
0
225
Member Avatar for Melanie22
Member Avatar for bjeffries

Is the .htaccess file in the same folder as the files you are targeting with it? Also, you may try ask the folks in the [URL="http://www.daniweb.com/forums/forum33.html"]Linux Servers and Apache[/URL] forum too ;)

Member Avatar for bjeffries
0
241
Member Avatar for Bliksempie

I wrote a class once to do a large csv import to mysql. As long as the row names in your mysql table match those in the csv, you could use the script to bring it in to your database. You could even mod it a bit to check if …

Member Avatar for pakkupakku
0
1K
Member Avatar for xylude

I spent some time this morning trying to figure this out, and finally did. I thought I would share: [CODE]$('body').click(function(event){ //You can swap .attr('class') with whatever and it probably will work. Nested divs may return the top parent's class, so you may need to fool around with it some. If …

0
64
Member Avatar for feoperro

I use PHP Eclipse (Helios). It's pretty simple to set up, has code hinting and also identifies and marks any syntax errors.

Member Avatar for feoperro
0
83
Member Avatar for skier

I am pretty sure the path for file_exists needs to be relative to the script it's called from. If the script is being run from the root you want: [CODE] if(file_exists('/cambiolabs/extension/catalog/files/inspection_886.pdf')) { //do something } [/CODE]

Member Avatar for hielo
0
728
Member Avatar for niths

Not too sure if it can be done. The only way I know is to use the 'accept=""' attribute, but it is not supported by any major browsers according to w3schools.com: [url]http://www.w3schools.com/tags/att_input_accept.asp[/url]

Member Avatar for mschroeder
0
65
Member Avatar for programmer12

[CODE]echo "<span style='cursor:pointer;' onclick='toggle_visibility('".strtolower($str) ."');'>".$anime_list['name']."</span><br/>";[/CODE] should be: [CODE]echo "<span style='cursor:pointer;' onclick='toggle_visibility(\"".strtolower($str) ."\");'>".$anime_list['name']."</span><br/>";[/CODE] The browser is ignoring it because you need double quotes to encase the string.

Member Avatar for programmer12
0
243
Member Avatar for Smudly

You could use substr_count() to check for the dots, but you should also check the mime type to make sure it's an image.

Member Avatar for kekkaishi
0
72
Member Avatar for xylude

I have been trying to get a loaded element to fade in on Safari for about 2 hours now to no avail. Anyone aware of a fix for this? Here is my code: [CODE] $('#badgeHolder').fadeTo('slow',0); $('#badgeHolder').load('somePage',function(){ $('#badgeHolder').fadeTo('slow',1); }); [/CODE] I have also tried: [CODE] $('#badgeHolder').load('somePage').hide().fadeIn('slow'); [/CODE] Either one of the …

Member Avatar for xylude
0
485
Member Avatar for antiv_boy

I would personally make a break tag to insert into my posts and use explode to separate the pages: [CODE] <?php $page = $_GET['page']; //so the script knows what part of the post to display $page--; //decrement page since the array is zero indexed. $break = "[break]"; //whatever you want …

Member Avatar for antiv_boy
0
1K
Member Avatar for xylude

I have a neat idea for an ajax/php rpg engine and want to get together with a small group of php developers with some free time and make this happen. I really think it could be fun to develop and also fun to see people enjoying the end result, but …

Member Avatar for xylude
0
93
Member Avatar for roba1989

I think I understand what you're trying to do, and the code below should work. But it's really not very clean HTML, nor is it very nice from a UI standpoint. Personally I would try to make all of the database entries go into a select box where I would …

Member Avatar for xylude
0
169
Member Avatar for cristi08

Why not just add an autoincrement field? It should still let you do that if you don't already have one.

Member Avatar for cristi08
0
94
Member Avatar for Th3nutz

If you can't do Cron, you can also have a small script that runs on each page load and checks the time vs. the time it was last run (probably keep in a database table). If the time is more than 1 day after the last time it was run, …

Member Avatar for xylude
0
106
Member Avatar for dalip_007

I'm pretty sure you can just edit the max post and max upload sizes in the php.ini file to allow for bigger files. I think it's in the root of your xampp folder. If not you should be able to search it out. Once you find the php.ini file look …

Member Avatar for xylude
0
163
Member Avatar for dalip_007

[code] $ip = $_SERVER['remote_addr']; $firstDigits = substr($ip, 0, 8); if($firstDigits != '172.122.') { //do whatever } [/code] Hope that helps :)

Member Avatar for xylude
0
73
Member Avatar for xylude

I have 2 files: master.php and test.php. master.php has a class in it that I would like to include in test.php. The only problem is that test.php is ignoring the class in master.php. Here is the code: Test.php: [code] include("http://".$_SERVER['HTTP_HOST']."/rebuild/scripts/php/master.php"); $loader = new modLoader(); $module[0] = 'm.class.templating.php'; $module[1] = 'm.class.userInfo.php'; …

Member Avatar for xylude
0
248
Member Avatar for Alexii

The code at the top should go into the file 'create-user.php'. For the second question you can specify files that you don't want indexed in a robots.txt file. Google 'robots.txt' for more info on that :)

Member Avatar for deleted1234
0
119
Member Avatar for gymangel812

You are missing a comma in line 60: if (! preg_match('/^-?\d+$/',$_POST['price'])) also php's is_numeric function should work just fine for checking if the number is numeric. For example change line 60 with: if(!is_numeric($_POST['price']) { //fail }

Member Avatar for xylude
0
107
Member Avatar for Ambislm

I didn't read all the way through your code, but you can use the $_SESSION superglobal to hold on to variables from page to page. Here is a W3schools article: [url]http://www.w3schools.com/PHP/php_sessions.asp[/url]

Member Avatar for meffe
0
213
Member Avatar for xylude

Trying to get results from 5 tables where the userId is the same. I am getting like 8k rows for where there should be about 20-30 or so. Here is my statement: [CODE]mysql_query("SELECT * FROM userrating, postratings, blogCommentRatings, commentratings, gamecommentratings WHERE userrating.userId = '$this->userId' AND postratings.userId = '$this->userId' AND blogCommentRatings.userId …

Member Avatar for tyson.crouch
0
112
Member Avatar for xylude

I am trying to get a variable to increment in a function called by setInterval. It does one then stops... All I want is for the slider function to loop through the array over and over again, but it seems to like stopping after the first one. Here is the …

Member Avatar for rajarajan2017
0
165
Member Avatar for EdTheUniqueGeek

You could do something like that with Java. It wouldn't actually be embedded in the page, but you could launch an app through Java from the web page.

Member Avatar for diafol
0
1K
Member Avatar for xylude

I have an if statement that is always evaluating true even if none of the conditions are true. It goes like this: if(condition1 || condition2 || condidion3) { //do stuff } For whatever reason even if none of the 3 conditions are actually true, it just runs anyway. Is there …

Member Avatar for theighost
0
112
Member Avatar for cliffordpg
Member Avatar for azegurb

[CODE]$var = mysql_query("SELECT * FROM table WHERE category = 'PHP'"); $rows = mysql_num_rows($var);[/CODE] - the variable $rows should give you the number of rows where category = 'PHP'.

Member Avatar for xylude
0
104
Member Avatar for xylude

I am building a website locally and I have a crazy problem. If I enter a path to the file in my browser like: file:///home/jcrider/public_html/site/assets/5182/sound/r_Fantasia_Chopin_44.mp3 It will play the mp3, but when I try to run it through localhost like: [url]http://localhost/site/assets/5182/sound/r_Fantasia_Chopin_44.mp3[/url] It does nothing. It did work once, but I …

Member Avatar for xylude
0
112
Member Avatar for kamalkumar

Try this: [code] function ajaxHandler(endParams, returnId) { var ajaxRequest; // The variable that makes Ajax possible! try { // Opera 8.0+, Firefox, Safari ajaxRequest = new XMLHttpRequest(); } catch (e) { // Internet Explorer Browsers try { ajaxRequest = new ActiveXObject("Msxml2.XMLHTTP"); } catch (e) { try { ajaxRequest = new …

Member Avatar for xylude
0
84
Member Avatar for xylude

I am using prettyPhoto ([url]http://www.no-margin-for-errors.com/projects/prettyphoto-jquery-lightbox-clone/[/url]) and some ajax together. I am trying to figure out how to get the responseText that contains the links with rel='prettyPhoto' to actually work. Or really how to get any js to work as responseText. Not really looking for anyone to do it for me …

0
59
Member Avatar for gruffy321

CSS3 will allow you to embed fonts, but unfortunately it doesn't work in the older browsers. You could have a script that detects the browser and does images for older browsers and CSS3 for the newer ones. Here is a tut for using the embed font capability in CSS3: [url]http://www.zenelements.com/blog/css3-embed-font-face/[/url]

Member Avatar for gruffy321
0
143
Member Avatar for Mohammed S

The array doesn't contain any slashes or quotes does it? You may just need to run some clean up like mysql_real_escape_string on it to get it to come through.

Member Avatar for xylude
0
219
Member Avatar for azegurb

You should look into mysql's LIMIT for pagination. It is really easy to implement.

Member Avatar for azegurb
0
101
Member Avatar for xylude

I am making a little forum and while trying to add the quote post functionality have come across a problem that has me stumped. Here is my js: [CODE] function addQuote(text) { var tArea = document.getElementById('forumReply_message'); tArea.value = text; } [/CODE] Here is sample HTML (one that doesn't work): [CODE] …

Member Avatar for xylude
0
83
Member Avatar for Anarionist
Member Avatar for Anarionist
0
105
Member Avatar for xylude

I need to replicate the encryption shown below: [code] def self.encrypt(password, salt) Digest::SHA1.hexdigest("--#{salt}--#{password}--") end [/code] I am trying something like this to no avail: [code] $salt = 'edc93eaf81aa1d64368c35213f192bb4ea81d20d'; $password = $_POST['input']; $password = sha1($salt.$password); echo "password sha1 value: " . $password; [/code]

Member Avatar for ruby_rocks
0
550
Member Avatar for veledrom

I too recommend 1and1, there's a lot of negative reviews out there - but I have been with them for over a year with no issue, other than the occasional server lag. Overall they have good prices and pretty good service.

Member Avatar for mschroeder
0
897

The End.