Posts
 
Reputation
Joined
Last Seen
Strength to Increase Rep
+0
Strength to Decrease Rep
-0
33% Quality Score
Upvotes Received
1
Posts with Upvotes
1
Upvoting Members
1
Downvotes Received
2
Posts with Downvotes
2
Downvoting Members
2
1 Commented Post
0 Endorsements
~27.1K People Reached
Favorite Tags

52 Posted Topics

Member Avatar for DaveyMoyes

Hi Everyone, I have copied a .htaccess file from one website and I am trying to use the same htaccess file on a different website. here is the copy of the htaccess file I have copied from one site to another... <IfModule mod_rewrite.c> RewriteEngine on RewriteRule ^(\d+)/([^/]+)/?$ index.php?uiid=$1&title=$2 [L] </IfModule> …

Member Avatar for Dani
0
2K
Member Avatar for DaveyMoyes

Hi everyone, thanks for reading and replying to this dummy question. I have a script that open a javascript alert box - what I would like to do is after clicking the "OK" button is to direct the user to a new page. the alert is working, just when I …

Member Avatar for anitha407
0
6K
Member Avatar for DaveyMoyes

Hi Everyone, I am new to JQuery, Java Script & Ajax. Hope you dont mind the daft questions I may post. Here is my first Jquery, JS & Ajax question. I have the follow script inside my head section of a website I am testing with. <script type="text/javascript" src="jquery-1.9.1.js"></script> <script …

Member Avatar for pixelsoul
0
200
Member Avatar for DaveyMoyes

Hi everyone, I am having some trouble with a mysql select query not working correctly. The query I am trying to run is "SELECT * FROM cards2 WHERE cardid NOT LIKE '".$_SESSION['clubsId'][0]."' " I have also tried mysql_query(" SELECT * FROM cards2 WHERE NOT (cardid =".$_SESSION['clubsId'][0]." || ".$_SESSION['clubsId'][1]." Would appreciate …

Member Avatar for DaveyMoyes
0
176
Member Avatar for DaveyMoyes

Hi Everyone, I have the following piece of code & I am trying to use to create an array of "Playing Cards" from a mysql db. I am just not sure how to one single complete array ! Thanks for looking and replying with your suggestions

Member Avatar for DaveyMoyes
0
120
Member Avatar for DaveyMoyes

Hi everyone, I am working on a wee small project using cURL. From the documentation, it states "The Server will HTTP POST a string in a parameter called (INCOMING)" to the given callback URL. I know the list of parameters in the string as this is given in the documentation, …

Member Avatar for lindam88
0
280
Member Avatar for DaveyMoyes

Hi everyone... I am just geting to grips with htaccess RewriteRules I have the following rule that redirects users to website.com/folder RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^([a-z0-9]+)\/?$ /webstores/$1/ [L] But the url is missing the trailing forward slash / when I try and open php files …

Member Avatar for pixelsoul
0
191
Member Avatar for DaveyMoyes

Hi All, I have been configuring a monthly subscription Paypal IPN to collect monthly recurring payments from a membership website. I have my annual IPN working great. Just strugling with the monthly recurring payments. I have the following configured in my subscription button <input type="hidden" name="a1" value="' . $price . …

Member Avatar for LastMitch
0
321
Member Avatar for DaveyMoyes

Hi everyone - I am helping to build a website for a good friend of mine & we are adding into the website an easy to read conversion rate. The only problem we have at the moment is the value is being displayed incorrectly. for instance - If the website …

Member Avatar for DaveyMoyes
0
157
Member Avatar for DaveyMoyes

Hi Everyone. I have a htaccess file the re-writes my urls for a directory on a website I am helping to develop for a friend. the directory structure is mydomain.co.uk/dir1/dir2/shopping-cart/ The mod_rewrite rule rewrites the index.php file into pretty urls for example: shopping-cart/123/this-is-the-item-title The problem I am facing is when …

Member Avatar for gon1387
0
302
Member Avatar for DaveyMoyes

Hi Everyone, How can I add a + sign to the following string.... for some reason I just can not figure it out I have tried ".+ and ".+." and sign quotes - both options but it just doesnt seem to work for me.... $number = $Code."".substr( $mobnum, 0 ); …

Member Avatar for LastMitch
0
330
Member Avatar for DaveyMoyes

Hi everyone, I have been trying to update a mysql database with the shortend url I get from bit.ly I have the shortend url displayed on the page, but everytime I try and update mysql with the variable $bitlylink.. instead of http://bit.ly/123abc the database is updated with http://the.full.website.url/directory/link.html How can …

Member Avatar for cereal
0
437
Member Avatar for DaveyMoyes

Hi All, I have the following mobile re direct script working on one website, but not another, For some reason I am getting the error - Can not modify headers information - header already sent - etc etc On line 20 Any ideas why this would work for one website …

Member Avatar for hakeemtunde
0
320
Member Avatar for DaveyMoyes

Hi all, I have the follwoing pagination script that is working great, But, What I am trying to do is remove the page numbers from the script, Any help would be greatly appreciated - <?php /* Now we apply our rules and draw the pagination object. We're actually saving the …

Member Avatar for DaveyMoyes
0
679
Member Avatar for DaveyMoyes

How do i add variables from $var1=urlencode(''.$var1.''); on page one.php and use the values from the above variables on page two.php $var1 = $criteria['".$var1."']; if($var1=='') $var1 = ''; Page two is included in page one and I am trying to use the same variable value.

Member Avatar for broj1
0
201
Member Avatar for DaveyMoyes

Hi all - I have the following variable in my code $url=urlencode(''.$token.''); How can I add &app_data=any_string_here to the above variable, everytime I add it, I get an error saying unexpected

Member Avatar for Squidge
0
76
Member Avatar for DaveyMoyes

Hi all, is it possible to add ?variable=value to the end of a facebook application url ? for example: facebook.com/pagename/app_abcdefghij/phppage.php?variable=value then use a _Get to query a mysql database ?

Member Avatar for <M/>
0
91
Member Avatar for DaveyMoyes

Hi all, I have a facebook page tab application that is hosted on my server. If I navigate to the FQD location the page will load as you would expect. What I would like to do is detect if the page is being loaded inside an iframe, ie. being displayed …

Member Avatar for DaveyMoyes
0
4K
Member Avatar for DaveyMoyes

Hi Everyone, I have a foreach array that prints out images one per line. How can I print images out so I have 3 per line ? here is the code I am working with. if (count($friendDataRawArray) > 0) { foreach ( $friendDataRawArray as $id => $friend) { //$name = …

Member Avatar for brandonrunyon
0
178
Member Avatar for DaveyMoyes

Hi everyone, I have been using strcmp in a website I am helping with, we use this to check against passwords when a user is resetting thier password. The problem I have at the moment is, when ever i try to use the strcmp to check against numbers It always …

Member Avatar for broj1
0
146
Member Avatar for DaveyMoyes

HI everyone, I have a script running on a website that uses the facebook share.php file. <?php $title=urlencode(''.$numrows['title'].' | '. htmlentities(money_format("%10.2n", $numrows[price])).' '.$currency_code.''); $url=urlencode(''.$token.''); $summary=urlencode(''.$numrows['description'].''); $image=urlencode(''.$numrows['img1'].''); ?> <a id="button" onClick="window.open('http://www.facebook.com/sharer.php?s=100&amp;p[title]=<?php echo $title;?>&amp;p[summary]=<?php echo $summary;?>&amp;p[url]=<?php echo $url; ?>&amp;&p[images][0]=<?php echo $image;?>', 'sharer', 'toolbar=0,status=0,width=550,height=400');" target="_parent" href="javascript: void(0)"> <input type='submit' class='btn' title='Share This Item …

Member Avatar for diafol
0
940
Member Avatar for DaveyMoyes

Hi everyone, I have been trying to code a facebook application using the API. Within this, I am required to include the base_facebook.php file. But I keep gertting an error Fatal error: Uncaught OAuthException: An active access token must be used to query information about the current user. thrown in …

Member Avatar for veedeoo
0
3K
Member Avatar for DaveyMoyes

Hi everyone, I have been trying to write a php script to display a div and its contents depening on a result from mysql. Inside the div is a basic input form etc, nothing special, some error & validation checking. What I would like to do is, to only display …

Member Avatar for pritaeas
0
179
Member Avatar for DaveyMoyes

Hi everyone, I have a script running on my page that uploads a new image. I am getting the information from the mysql ok, by using if (isset($_POST['var'])) { Once the vailidation is complete, at the moment I am using header("Location: url.php"); to reload the page to display the new …

Member Avatar for dschuett
0
770
Member Avatar for DaveyMoyes

Hi everyone, I have a login form working great, until I found this strange error. If a user enters the username as user name (with a space) the login script fails. So I have tried using $username = str_replace(' ', '', strtolower($username)); I thought the above would remove any spaces …

Member Avatar for vibhaJ
0
283
Member Avatar for DaveyMoyes

Hi everyone, I am getting the following error message on a script page I have. The error is Parse error: syntax error, unexpected T_IF in blah blah blah on line 432 if($paypal != '') { $qry = "SELECT * FROM tbl_name WHERE var='$paypal'"; $result = mysql_query($qry) if($row=mysql_fetch_array($result)) { // this …

Member Avatar for diafol
0
294
Member Avatar for DaveyMoyes

hi everyone, I am looking into a small problem I have with a mysql database. At the moment users can upload upto 4 images per item. I am using php to display the images from the database, but if a user has only uploaded 2 images I am getting empty …

Member Avatar for smantscheff
0
136
Member Avatar for DaveyMoyes

Hi everyone, I have a strange thing happening when I update my form. On the form there are a number of input fields, item cost,item name, item description. If I update the item cost, this updates without any problems, but it also updates the item description, duplicating the description. The …

Member Avatar for DaveyMoyes
0
95
Member Avatar for DaveyMoyes

Hi Everyone, I am looking to protect a webpage in my website. What I would like to do is check if the webpage has been accessed from a pre determined url. For example: Mywebsite.com/webpage.php should only be accessed from predetermined.com/url?id=var I have been doing some digging around and found the …

Member Avatar for diafol
0
230
Member Avatar for DaveyMoyes

Hi All, I have the following scrip that uploads a image to a destination folder on my server. What I am trying to do is "rename" the uploaded file and update the link in the back end database. The file uploads and stores in the correct folder, but what it …

Member Avatar for cereal
0
183
Member Avatar for DaveyMoyes

Hi everyone, I need a wee bit of help with the following. I am calling all country names from a db table and echo-ing out each country name in a list format. $query = "select * from countries order by Country Desc"; $result = mysql_query($query) or die(mysql_error()); while($row = mysql_fetch_array($result)){ …

Member Avatar for DaveyMoyes
0
452
Member Avatar for DaveyMoyes

Hi all, I have a small piece of code to check that a field is numeric only, [code] function validate_numeric($variable) { return is_numeric($variable); } [/code] How can I check that text entered is text only ? so to protect against malicous attacks. . . Thanks

Member Avatar for jkon
0
334
Member Avatar for DaveyMoyes

Hi all, can someone tell me why I am unable to concatinate the variable $id to the members.php ? Its driving me mad. . . [code] $id = $row["id"]; $_SESSION['SESS_MEMBER_ID'] = $id; setcookie("id", $id, time()+86400); $securecode = $row["securecode"]; $_SESSION['SESS_SECURE_CODE'] = $securecode; setcookie("securecode", $securecode, time()+86400); $creff = $row["creff"]; $_SESSION['SESS_CREFF'] = $creff; …

Member Avatar for Biiim
0
208
Member Avatar for DaveyMoyes

Hi Everyone, Hoping someone here can help me fix this problem I have of setting a cookie variable from a databse $id = $row["id"]; variable. This seems to work fine when using session data, but I am trying to use cookies and I am a bit stuck. . . here …

Member Avatar for Biiim
0
441
Member Avatar for DaveyMoyes

Hi all, this is just a quick question with regards to php session data. . . I have a php built website and I am trying to develop a mobile html / php website to connect to the desktop website. I can enter my username / password / and secure …

Member Avatar for DaveyMoyes
0
193
Member Avatar for DaveyMoyes

Hi all, I am looking to understand Html entities & html special chars in more details. I have a form and text area that users complete, the databse updates correctly and displays the information. The problem im facing is this: When the database displays the data, its display incorrectly. For …

Member Avatar for karthik_ppts
0
223
Member Avatar for DaveyMoyes

Hi All, I have an image upload that works for my requirements - But what I am unable to figure out is how to rename the image to the datatime stamp and to keep the file extension .jpg / .png / .gif / .jpeg etc I have a variable $datetime …

Member Avatar for diafol
0
209
Member Avatar for DaveyMoyes

Hi Everyone, I have been trying to understand mysql a little further - with some small steps in the right direction. but I have come across a problem I am unable to fix / get working. I have a form, that has a variable $country - I am trying to …

Member Avatar for DaveyMoyes
0
263
Member Avatar for DaveyMoyes

Hi everyone :) I am working on a small error message, but i can not seem to get it to work correctly. Basically, what I am trying to do, is check the account balance field from a mysql database against a variable of $smsnum smsnum is automatically populated based on …

Member Avatar for diafol
0
167
Member Avatar for DaveyMoyes

Hi everyone, looking for some advice please. I had a mkdir working great on a shared hosting account I had, I have since moved from a shared hosting account to a virtual dedicated server, now the mkdir is not working as previous. Before i moved server is was using a …

Member Avatar for cwarn23
0
287
Member Avatar for DaveyMoyes

Hi all, I need someone to help me out, I am trying to call a .php file with php variables - [code] include('Code.php?buyer='.$lastid.'&oid='.$oid.'&bid='.$bid.''); [/code] when i edit the url myself using values from the database it works like it should do. but when I am calling the php file using …

Member Avatar for DaveyMoyes
0
164
Member Avatar for DaveyMoyes

Hi this is my first post on DaniWeb.... the information has helped me in the past but im seriously stuck.... Help would be very much appreciated.. Im trying to create a form where the user can upload 5 pictures to a mysql database (members) field names are img1, img2, img3, …

Member Avatar for red_ruewei
0
145
Member Avatar for DaveyMoyes

Hello everyone, hope you are all well, Im am looking into building myself a webpage, and would luike some advice please with my header tags and domain setup. header tags im looking at using are the following [CODE]<head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <meta name="description" content=". " /> <meta name="keywords" …

Member Avatar for webmaven
0
121
Member Avatar for DaveyMoyes

Hi everyone, its been a while since i kast posted on here, Im trying to make the following menu open on the mouseover event, but im having loads of problems, Whilst the menu system works great on the click event, Copy and paste this code if you are looking fro …

Member Avatar for DaveyMoyes
0
259
Member Avatar for DaveyMoyes

hi all, i am trying to run a batch file in vb6 and failing dreadfully, can anyone give any pointers as to how this can be acheived, the batch file is as follows @echo off cd\ ipconfig /flushdns ipconfig /registerdns exit

Member Avatar for vb5prgrmr
0
80
Member Avatar for macneato
Member Avatar for stuckinmud

Hi im no webmaster but i had the same problem a few weeks ago, What i found was this.... it works in FF but not IE.... im yet to find out how this can be achived in IE. whilst in dreamweaver (cs3) create your box as you would do, Open …

Member Avatar for ansaripk
0
139
Member Avatar for DaveyMoyes

Hi All, iv been a member here a few months now and have been helped greatly in the past & would appreciate some pointers please. I have been given an xml document & have been tasked with extracting information from it. an example of data held in the xml file …

Member Avatar for rskelley
-1
122
Member Avatar for DaveyMoyes

Hi all, Im looking into an xml file and trying to understand how i extract data from the xml file using a php script. an example of data that i would like to <enquiry_number>000001</enquiry_number> <product_code>HPI11</product_code> Im thinking i need to use a GET function but not sure how I would …

Member Avatar for ShawnCplus
0
67
Member Avatar for DaveyMoyes

Afternoon everyone – Onclick of “contact “Pop-Up “Contact-Sms-Centre.php' Can anyone help with this – iv got a php page that returns the following as part of a set of results <a href='Contact-Sms-Centre.php'>Contact</a> $city $country<hr The contact sms centre is width=450,height=350' I also have the popup.php as shown below [code=php]<html> <head> …

Member Avatar for DaveyMoyes
0
397

The End.