Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
0% Quality Score
Upvotes Received
0
Posts with Upvotes
0
Upvoting Members
0
Downvotes Received
2
Posts with Downvotes
2
Downvoting Members
1
0 Endorsements
~28.7K People Reached
Member Avatar for MDanz

I just installed wamp, so i can test my website offline. Now i get numerous Undefined index or Undefined variable errors, which i know how to fix. Now logging in works online but with wamp it doesn't work. The code isn't wrong. I imported the database online to offline. I've …

Member Avatar for ryantroop
0
91
Member Avatar for MDanz

I've looked everywhere and haven't found a clear step by step tutorial on how to secure sessions/cookies. Here are snippets of my code, i'd like to know how i can improve on session security to prevent fixation/hijacking and cookie safety. This is snippets of code for the user login system. …

Member Avatar for pritaeas
0
299
Member Avatar for MDanz

I'm trying to do a query that if mike isn't in the three highest bids for a keyword, then select the row(row that has been outbid). I tried below but i get no results, i should get rows with id 4 and 7. btw a keyword can be bidded on …

Member Avatar for |-|x
0
125
Member Avatar for MDanz

Each childrow has a parentid and position. For childrows with the same position there is one row where start='1'. What i'm trying to do is return the pending rows with their start row. The results that should be shown are; start(owen) pending(dave,paul). This is because they have the same position. …

Member Avatar for rch1231
0
124
Member Avatar for MDanz

i'm trying this below but it isn't working, the page is coming up blank .. [CODE]<?php $url = 'http://www.realgm.com'; function get_url_contents($url){ $crl = curl_init(); $timeout = 5; curl_setopt ($crl, CURLOPT_URL,$url); curl_setopt ($crl, CURLOPT_RETURNTRANSFER, 1); curl_setopt ($crl, CURLOPT_CONNECTTIMEOUT, $timeout); $ret = curl_exec($crl); curl_close($crl); return $ret; } ?>[/CODE]

Member Avatar for RoseAug
0
290
Member Avatar for MDanz

The query below is correct. It returns the rows `paul` and `rick` because they have the highest rating of the child rows. This was solved for me with the below link. I am having trouble understanding the query. I understand joins, what i don't understand is `t2.rating is null`? [URL="http://sqlfiddle.com/#!2/97e60/2"]http://sqlfiddle.com/#!2/97e60/2[/URL] …

Member Avatar for smantscheff
0
201
Member Avatar for MDanz

Ok, as easiest as i can explain. - There are many child.sid to parent.id - There are many child.nid to child.sid - There are many child.id to child.nid child.id is just the id of a child row. And each row has rating column. In the query i'm grouping by child.nid. …

Member Avatar for Biiim
0
588
Member Avatar for MDanz

With the below query I'd get the results one and three. How do I get the results for `sid`; 15 and 17? I can't use a WHERE because I won't know the `sid`. A better way of explaining is, how do I LIMIT per `sid` without grouping? [CODE]mysql_query("SELECT * FROM …

Member Avatar for smantscheff
0
145
Member Avatar for MDanz

i've done this [code]RewriteRule ^([A-Za-z0-9-]+)/?$ profile.php?user=$1 [L][/code] to make [code]www.example.com/profile.php?user=testing[/code] into [code]www.example.com/testing[/code] What i'd like to do is change.. [code]www.example.com/profile.php?user=testing[/code] into [code]www.example.com/user=testing[/code] What is the RewriteRule to accomplish this? Also if i used $_GET['user'] with the second clean url would it still work?

Member Avatar for hijabihtohai
0
140
Member Avatar for MDanz

I have a large array. Is there an alternate method to check if $value in the array is present in the MySql table vote and if not then insert $value into vote. This is what i am doing currently. Is there a better method? [CODE]foreach($rowids as $value) { $select = …

Member Avatar for smantscheff
0
86
Member Avatar for MDanz

where did i go wrong? It should update mysql(insertsubscribe function) and change the image in the anchor tag. php [code] $id= $row['id']; echo "<div class='subscribe'><a id='s$id' href='javascript:subscribe($id);'><img src='/subscribe.jpg' alt='subscribe' /></a></div>";[/code] ajax [code]function subscribe(number) { if (window.XMLHttpRequest) {// code for IE7+, Firefox, Chrome, Opera, Safari xmlhttp=new XMLHttpRequest(); } else {// code …

0
69
Member Avatar for MDanz

Can i get help correcting the code below? You can just copy and paste and try it yourself. Onmouseover the popup div appears. If i click(X) the popup div should close but it doesn't. Only doubleclicking (X) closes the popup div. Onmouseover it should always display a popup div though. …

0
74
Member Avatar for MDanz

This is a function for a slideshow,onmouseover i want it to stop. Instead of stopping the slideshow onmouseover, it speeds up?? How can i correct this to stop onmouseover? [CODE]<body onload="nextslide();">[/CODE] [CODE]function nextslide() { // Hide current slide var object = document.getElementById('slide' + current); //e.g. slide1 object.style.display = 'none'; // …

Member Avatar for Airshow
0
136
Member Avatar for MDanz

i tried this code but onmouseover it doesn't stop the the slideshow? [code] function nextslide() { // Hide current slide object = document.getElementById('slide' + current); //e.g. slide1 object.style.display = 'none'; // Show next slide, if last, loop back to front if (current == last) { current = 1; } else …

0
67
Member Avatar for MDanz

The width spreads across the whole page, i only want it to be as long as the content in the div. How can i solve this? [code]<style type="text/css"> .three { display:block; width:auto; height:100px; position:relative; border:1px solid black; } .three a { width:100%; height:100%; position:absolute; } </style>[/code] [code]echo "<div class='three'><a href='two'></a>test</div>";[/code]

Member Avatar for Arkinder
0
101
Member Avatar for MDanz

[CODE]RewriteRule ^user/[A-Za-z0-9-]+)/([A-Za-z0-9-]+)/([A-Za-z0-9-]+)/?$ /profile.php?user=$1&r=$2&page=$3 [L][/CODE] this isn't working... i get an internal server error.. if i remove it the page works. Any idea how to fix this? the url should be like below [url]http://www.example.com/user/testing/1/1[/url]

0
82
Member Avatar for MDanz

I've recently used mod_rewrite and changed my .htaccess allowing clean urls. Is there a tutorial that tells me how to use $_GET with a clean url? for instance how do i get the name with the clean url($_GET method)? messy url[code]example.com/play.php?id=203&name=test[/code] clean url[code]example.com/videos/play/203/test[/code] also when using forms is it as …

Member Avatar for diafol
0
102
Member Avatar for MDanz

i'm not getting any results for the query. I'm sure it has something to do with the apostrophe and back slashes [code] $search = "q test'yes"; $search = mysql_real_escape_string($search); mysql_query("SELECT * FROM block WHERE name LIKE '%$search%' ORDER BY `id` DESC",$this->connect); [/code] When i echo it out i get this …

Member Avatar for urtrivedi
0
2K
Member Avatar for MDanz

i'm trying to get a clean url for my about page. i want to change [url]http://www.example.com/about.php[/url] to [url]http://www.example.com/about[/url] i put my htaccess file as this [code]RewriteEngine On RewriteBase / RewriteRule ^(.+)/([0-9]+)/?$ about.php[/code] it's not working though, i get the 404 not found error.

Member Avatar for MooGeek
0
75
Member Avatar for MDanz

Onchange of the dropdown list, the textfield should display either "testing 3" or "testing 4" but nothing is happening. [code] <form action='submit.php' method='POST' name='form'> <select name='preset' onchange='preset(this);'> <option value='test1'>testing 1</option> <option value=test2'>testing 2</option> </select> <input type='text' name='big[]' value='' /> </form> [/code] [code] function preset(ele) { if(ele=="test1") { var action1 = …

Member Avatar for karthik_ppts
0
86
Member Avatar for MDanz

I get random Parse error: syntax error, unexpected $end in my code. All i have to do is refresh the page and the error goes away, all is working. When it appears the line is always different and when i examine the line nothing is wrong with the code. This …

Member Avatar for almostbob
0
199
Member Avatar for MDanz

Hello, what do professional web designers do to overcome this problem? Is there a simple solution for png transparency support in ie6? I found a fix but i don't want to buy any license to use some code.

Member Avatar for pixelsoul
0
67
Member Avatar for MDanz

My png image with no background works in firefox, chrome etc.. but when it comes to ie6,ie7 i have to use the alphaimageloader filter. What is the common way professionals approach this problem? Websites like twitter the images with no background overlap with no problems when i load them in …

Member Avatar for sagive
0
71
Member Avatar for MDanz

what i'm trying to do is get the contents of the textarea, which the id is 'reply'. then onclick of a button, a popup div with id 'layer1' displays the contents of the textarea. i tried below but it comes up blank. i haven't included the pop up/button code, thats …

Member Avatar for jusvin85
0
4K
Member Avatar for MDanz

This code adds a new textarea when i press the "add" button. How do i alter the code so it can remove a textarea. e.g. i added 4 textarea's but i only intended to add 3, how do i delete the 4th textarea? [CODE]<div id='newdiv'> </div>[/CODE] [CODE]<input type='button' onclick='new()' name='add' …

Member Avatar for PsychicTide
0
102
Member Avatar for MDanz

for example.. in one column it has "test1, test2, test3, test4" .... when i search for test1... i only want rows the word 'test1' in them specifically. $search = test1 i've tried LIKE %$search% but it get's all rows with the word 'test' in it... i want only rows with …

Member Avatar for davidchilders
0
113
Member Avatar for MDanz

i have a form on submit.php, with method post to the same page($PHP_SELF). If i made a mistake i want to be able to press 'Go Back' to the previous page(same page) and have the values in their textfields. [code] if(isset($_POST['new'])) { <a href='#' onClick='history.go(-1)'>Go Back</a> } else { // …

Member Avatar for Airshow
0
134
Member Avatar for MDanz

i want box 1 and box 2 horizontally next to each other. I want the parent div if the content overflows to scroll and box1 and box2 horizontally next to each other. i tried below but box2 keeps going underneath box1. the scroll is necessary. [code]<div id='parent'> <div id='box1'></div> <div …

Member Avatar for scottloway
0
8K
Member Avatar for MDanz

the function keeps returning 1. if i echo $i within the function then it counts up to six. the function should return 6, because there are 6 results from the mysql_query, so $i iterates upto 6. please any help solving this? [CODE] $i=0; $thewidth = $database->width($theid, $i); echo $thewidth; [/CODE] …

Member Avatar for kekkaishi
0
80
Member Avatar for MDanz

i have two functions. In function two it has $id=9. how do i get function one to echo $id? how do i adjust the below example to accomplish this? [code] $newdb = new Database(); class Database { function one() { $newdb->two(); echo $id; } function two() { $id = 9 …

Member Avatar for jkon
0
73