- Strength to Increase Rep
- +4
- Strength to Decrease Rep
- -1
- Upvotes Received
- 1
- Posts with Upvotes
- 1
- Upvoting Members
- 1
- Downvotes Received
- 2
- Posts with Downvotes
- 2
- Downvoting Members
- 2
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> … |
|
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 … |
|
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 … |
|
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 … |
|
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 |
|
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, … |
|
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 … |
|
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 . … |
|
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 … |
|
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 … |
|
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 ); … |
|
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 … |
|
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 … |
|
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 … |
|
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. |
|
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 |
|
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 ? |
|
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 … |
|
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 = … |
|
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 … |
|
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&p[title]=<?php echo $title;?>&p[summary]=<?php echo $summary;?>&p[url]=<?php echo $url; ?>&&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 … |
|
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 … |
|
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 … |
|
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 … |
|
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 … |
|
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 … |
|
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 … |
|
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 … |
|
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 … |
|
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 … |