- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 11
- Posts with Upvotes
- 10
- Upvoting Members
- 8
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
164 Posted Topics
Re: What do you mean when you say that it "logs all the code"? Have you tried to do: exit( var_dump( $url ) ); exit( var_dump( $ex ) ); Just to see what is returned? | |
Hi all, I have two tables. - Cart (cartId, prodId, etc) - Codes (Id, cartId, Code) Each line in the **Cart table** has a code from the **Codes table**. Because of an error, we now have 20 cart rows (But another time around it could be 1000 rows, so manually … | |
Re: What error do you get? maybe remove the qoutes from your variables, so they are not treated as strings? mysql_query('INSERT INTO sales (datess, control, payee) VALUES ('.$datess.', '.$control.', '.$payee.')'); Note that you should be using mysqli, with i at the end. Mysql is deprecreated in the latest PHP versions I … | |
Hi all, I have this function, which should scroll animated to an anchor. Does anyone know how I can activate this only after a form has been submitted? I want to animate the scroll down to either id="error" or id="succes" - depending on the form was submitted with or withour … | |
Hi all, I am trying to set up Doctrine 2 Orm for a self made MVC framework, but keep hitting the same error when trying to retrieve data: Fatal error: Uncaught exception 'Doctrine\ORM\Mapping\MappingException' with message 'Class "App\models\menu" is not a valid entity or mapped super class.' in C:\wamp\www\framework\vendor\doctrine\orm\lib\Doctrine\ORM\Mapping\MappingException.php on line … | |
Hi all, I have been asked to set up a wordpress site, and are finding it hard to find in the documentation how I can do the folllowing: A main link is clicked, and only then I want to show the children underneath, if there is any. Further if a … | |
Hi all, I am using Ardent as a standalone package, together with Laravels Database package. Things are set up, and I can query just fine - But when I define my relations, I get a white screen when I try to dump the expected data. I have double checked and … ![]() | |
Re: Do you get any errors at all during your attempt to insert? ![]() | |
Re: Hi, So what do you have so far? :-) Do you mean loop the data you have in a view? | |
Hi all, Im starting to use composer, and have installed a few packages - This thread is about illuminate/database component. Im clearly misunderstanding something about how i can use the autoloader. I have the following directory structure: -app -assets -vendor index.php [Request goes to index.php] - This file includes composers … | |
Hi all, I have the following code that finds specific images, and uses an attributte to create an iframe src. ( It is for youtube videos ). I am able to find the nodes and the attribute, but cant quite figure out how i REPLACE the found image with the … | |
Hi all, I am creating an ecommerce site, and have some javascript getting data from dom elements and inserting them into my PHP Cart via AJAX. It all works fine, but then i came to think of possible security issues with my approach. Button inserting data into the cart with … | |
Hi all, I need to make a function, that returns the number of checkbox groups that has any values marked. So im not after the checkbox alone, nor their values - Lets say I have 4 groups on the page - I need to know how many groups the user … | |
Hi all, I am creating a function, that filters products, that are allready loaded into the DOM. JSFiddle: http://jsfiddle.net/Klemme/8CFVa/2/ Please read on, two get the issue :-) In each product div, I have listet an HTML5 data attribut like this example: data-options="{"brand":"acer","screenSize":"17","processor":"intel","grafik":"intel"}" I have 2 groups of checkboxes working now, … | |
Hi All, I need to create a couple of webservices, where I retrieve info from the database. Found this example on php.net while searching for examples: class MyClass { public function helloWorld() { return 'Hallo Welt '. print_r(func_get_args(), true); } } try { $server = new SOAPServer( NULL, array( 'uri' … | |
Hey All, I am tryiung to create a function that lets me filter products on the page, by using html5 data-attributtes. Each prodct can have multiple values, as in: data-brand="acer", data-screen="17" data-processor="blah" etc etc. I am trying to make it work with two filter options at the moment, and then … | |
Hi all, I have a function that I would like to return products based on a usermade filter via check boxes. Basically: > Each product has multiple data-attributtes, for example: data-brand="acer", data-price="2995", data-screensize="15.6", data-processor="intel" So say i'm lining up 40 products, the users need to be able to narrow down … | |
Hi All I have to create a filtering function for a webshop, and need to do it client side for performance reasons. I load in x number of product, so I can get to them in the DOM - And after this I have a number of checkbox groups which … | |
Hi all, I have a problem with my code below. It works in chrome, but acts different in IE, and sometimes FF. Im aiming to load in divs whenever the user scrolls to 220px from the bottom. Basically, I tjeck to see if the distance from the bottom < specified … | |
Hi, I am able to post from my CMS and share the post directly on the fan page wall. **BUT** only when I have signed in to facebook, and have copied the access token from my admin profile, and directy inserted it into the php script that sends the post … | |
Hi all, I'm trying to delete elements from an array - The array should be a shopping cart - So I need to ad/remove items from it. So far I can add items no problem, but i seem to keep failing to delete the correct indexes. The array contains a … | |
Hi all, I am trying to lay out a plan for my classes, and havent godt the most experience in oop yet. I am using an abstract class, to be able to have a more clear overview and keep the project easier to manage. SO: I have created two abstract … ![]() | |
Hi all, I need to parse an XML file, which includes CDATA and HTML <br> tag I would like to include for my output. I would like to replace <br> with <br /><br /> - Two spaces, but it doesnt seem to happen. This is an example on the XML … | |
Hi All, I am pulling out info from my db and need to tjeck if a column is 0, if it is then i need to SUM 3 other columns and pull out that total. I want to use the CASE keyword and tjeck for this, but am doing something … | |
Hi All, I get fsockopen warnings using drupals webform. Not my CMS, but am pretty sure nothing basic has been modyfied. I have attached screendump of error here in this msg. (Well, I wanted to but seems they have removed that feature?) Only thing is that i have disabeld smtp … ![]() | |
Hi All, I have a script that works fine for transferring files from one server to another when I use HTTP protocol. (When I use a test site that is.) Here is the script, working on test site with HTTP: // Navn pÃ¥ faktura der skal hentes $pdf_faktura_navn = 'Microsoft_sporgeskema.pdf'; … | |
Hi all, I have to find out to write a function that can serve PDF documents (invoices) in the browser window. My challenge is that the PDF fiels is on another server, which I do have access to. Can I somehow just create a link on the site, and then … | |
Hi all, I have this script sending an really simple html email. It works fine, but I cant seem to preserve the line breaks when sending the email to the client. Any idea how I can preserve line breaks? Thought nl2br would do the trick.. // Data der skal emailes … | |
Hi all, I would like to get my head around how I can create a singleton db pattern. What I have now works though, but as I know its not a singleton - My idea is this: * I would like a class that holds all config information and them … | |
Hi all, How come this class doesnt connect to the database..? class credentials { private static $config = array(); const DB_USER = 'root'; const DB_PASS = ''; const DB_HOST = 'localhost'; const DB_NAME = 'dev_dcs'; public function __construct() { self::$config['user'] = self::DB_USER; self::$config['pass'] = self::DB_PASS; self::$config['host'] = self::DB_HOST; self::$config['name'] = … | |
I have inserted a rich text editor to an textarea, but I get the following error after submitting my form: [CODE] Notice: Undefined index: msgpost in C:\wamp\www\mycms\administrator\page_new_parse.php on line 15 [/CODE] I have changed the textarea name, and the id to "msgpost" as explained on their website. I have also … | |
Hi all, I have a project where I need to improve a search function on a webshop, which is using data from CNet. I am really struggling to find some usefull examples or tuturials explaining the way CNet SKU search is/can be build. The webshop is made in PHP - … | |
Hi All, Im trying to learn how to use pdo, and am curious to know how i best can deal with allkind off errors. Lets say there is a typo, or im selecting an non existing row etc etc. In my connection, do I have do set anyting different here: … ![]() | |
Hi, Any tips on how I can make a smarter function? I have recently begun oop, so Im not allways sure if I do things in a "bad way" - both the amount of code, and the performance. Any advice on this piece is appreciated: class get_page_info { public $id; … | |
Hi, I have this bit of php returning the response, just for testing : header('Content-type: application/json'); $response = array(); $response["status"] = "ok"; echo json_encode( $response ); 1) Is this a wrong way to send a json encoded string back via jquery ajax? 2) I get NOTHING, No response from this … | |
Hi all, I am looking into PDO, as I want to learn how to use it for future projects. I am fairly new to OOP, but got the basics by now.. All though I cant get this database class to work : class Database { private $host = 'localhost'; private … | |
Hi all, I have a function which sends html emails, and inserts an image inline in the body of the email, whereever I want it to be. So far so good.. My question is, how can I insert all the images I want in the email, not just one? The … | |
Hi all, I cant seem to find the place in developers.facebook where I can see my access token for my facebook PAGE (not app..). I need to find that, and then set permissions to manage MANAGE_PAGES. Isnt that the right way to do it, when my goal is to be … | |
Re: I would like to make a business earning a million dollars a month, please give the code for doing this! ;-) Dont you currently have any code, that is not working or need to be tweaked? ![]() | |
Re: You could store the users email address along with the post. Then tjeck if logged in user has the same email address, as the author of the post which is currently being viewed - If so: echo edit/delete link.. Get the point? EDIT: I understood your question as if you … | |
Hi all, I have to create a function, that lets users write a newsletter from an intranet, instantly share that on the companys Facebook page wall. The intranet stuff is made, and all fine - just need to post it on the wall too.. Anyone knows what api or plugin … | |
Hi all, I have a very simple question, for many of you.. I need to write out a select list like this : From table pages, I need id and link to fill up the options in my select list. But I need to tjeck in another table, if there … | |
Hi all, I am new to C#, so please bear with me. What I need to do, is to create a method in one class, that can be used to update the scores of an object in another class. The entire thing is a small program, that creates a VERY … | |
Re: On line 113 in the code above, change the form action to form action="approve.php" Now it is astockoutlet.php, which is the same page as the first form... Works? ![]() | |
I have an ajax call, and am wondering how I can fade in the response. The short code is this, I believe that is what you need to be able to tell what extra code should be added to achieve the fade in effect. PS: It is not made in … | |
Hi all, I have attached a CKEDITOR instance on a textarea in a CMS, and it all works fine on localhost, but after uploading the site to the server, I cant see the CKEDITOR toolbar. The textarea is not turned into an instance and further more, the textarea is not … ![]() | |
I have this function which fades in a main menu when scrolled more than 100px. $(document).ready(function() { $(window).scroll(function () { if ($(this).scrollTop() > 100) { $('#main_nav_fixed').fadeIn(500); } else { $('#main_nav_fixed').fadeOut(500); } }); }); It works fine, but if the user scrolls fast up and down lets say 10 times, and … | |
I was asked to help a friend to rewrite urls for a site he has a client. The link structure looks like this: <a href="http://sitename.dk/index.php?page=wisetrap">WiseTrap</a> // URL: sitename.dk/index.php?page=wisetrap Is it possible to keep the link structure like that, but after the link is clicked make it appear in the url … ![]() | |
Hi all, Im almost there, just need to get the videojs to work in IE9. I can see the player, but the video is not being played, like nothing happens when I press the play btn.. It works just fine in all other browsers, FF, Opera, Chrome, Safari. This is … | |
I need to create a video gallery for a website, and would like to create it using the html5 video tag backed up by videojs. As I havent worked with video uploads before I have some doubts on how to approach it: What file size would you recommend as a … |
The End.