Posts
 
Reputation
Joined
Last Seen
Ranked #1K
Strength to Increase Rep
+7
Strength to Decrease Rep
-1
80% Quality Score
Upvotes Received
22
Posts with Upvotes
21
Upvoting Members
14
Downvotes Received
5
Posts with Downvotes
5
Downvoting Members
4
5 Commented Posts
~92.4K People Reached
Favorite Tags

181 Posted Topics

Member Avatar for pwolf

**One of these is in regards to embedable scripts/ web apps/ widgets** What do you mean by this? You want to allow users to save their own html/javascript on your site? Upload flash content? **is it possible to store many sqlite databases in a mysql database?** Well ths is interesting... …

Member Avatar for pwolf
0
537
Member Avatar for rahul.pragma

The link http://thelightroomclothing.com/log/test.php now works. If you found the solution the best thing to do is post the solution here and mark this thread as "Solved". Thanks!

Member Avatar for hag++
0
798
Member Avatar for shavezphp

While an HTML5 solution is progressive it won't work for older browsers (specifically IE8 and under). You may want to consider a fallback to that, such as the html5media library which will provide video tag support for older browsers.

Member Avatar for hag++
0
135
Member Avatar for happygeek

> > There's no safety zones on php, it's a given. Boy I hate it when people blame the tools instead of the developers. Sites built on **ANY** language can contain massive security holes if web security best practices are not followed. Blaming PHP is analagous to a bad carpenter …

Member Avatar for Gaetane
4
617
Member Avatar for shelexelex

While the OP didn't say whether his app was using sessions or not I would definitely reccomend storing the names in session or in the cookie. If neither option is available then you would have to do some kind of workaround such as what Dani suggested.

Member Avatar for Gaetane
0
352
Member Avatar for arifkutty

> > The solution to your problem? Don't refresh. :-/ Not true. I would reccomend simply doing a redirect to the regular cart URL (without params) after you have updated the cart quantities. I put an example below. Since I don't know your URL's I improvised :) if (isset($_GET['add'])) $_SESSION['cart_'.$_GET['add']]+='1'; …

Member Avatar for arifkutty
0
1K
Member Avatar for jacob21

Hmm well I would probably reccomend displaying the PDF in some kind of PDF viewer in the browser. This way you can initiate bi-directional communication about the state of the PDF's being viewed. Letting the user download the PDF and view it locally won't work obviously because you can't control …

Member Avatar for diafol
0
144
Member Avatar for brandon66

Do a right click > view source on the select element after the select2 is run on it... It changes absolutely everything and removes the select element (along with the class declarations) entirely. I commented out the select2 and it does work fine as is because the select element is …

Member Avatar for hag++
0
585
Member Avatar for SakuraCindy

I don't see why not. You haven't given us a ton of information to work with but with the much improved support for classes in PHP 5.5x it shouldn't be a hard port at all.

Member Avatar for SakuraCindy
0
221
Member Avatar for YakuzaJevin
Member Avatar for kseguy

Ok well first I would change your onreadystatechange function a little. he way it is will cause the "else" block to execute very often. I would reccomend first checking that the readyState == 4, if it's not then just return. The readyState will become 4 when the request is finished …

Member Avatar for hag++
0
2K
Member Avatar for iwanna4get

I have no idea what you are trying to achieve with the `copyFile()` function being used to populate the href on the anchor tag. The `copyFile()` function does not return a value so you are not concatenating anything. On top of that, everytime the while loop iterates you are immediatly …

Member Avatar for hag++
0
168
Member Avatar for nikolaos

I believe the lock item has to be an object as well so if you wanted to put a lock on the counter you would have to use the Integer type instead of the primitive "int".

Member Avatar for nikolaos
0
344
Member Avatar for segunoloye

It doesn't look like you've included the correct script(s) yet or have any code related to SecurImage on your form processing page. Can you update the code and repost?

Member Avatar for segunoloye
0
665
Member Avatar for Clanstrom

> It just shows you, how one can use the prepare() method, and run statements with it, but it never shows, what/how the prepare method is created, what is inside the prepare method, or what is inside the PDO() class for that matter. I want to know, what is the …

Member Avatar for diafol
0
464
Member Avatar for praba_web

Pricing a job is highly dependent on a few major factors like the complexity of the project, the skill/experience of the development organization, and current market rates. I can't give you an exact number but this article is a good read on the subject. http://goodcode.io/blog/pricing-fixed-vs-agile/

Member Avatar for hag++
0
286
Member Avatar for SUNDARESAN.R

using `position: fixed` with `top: 0; left: 0` should place the image at the top left of the screen regardless of the viewport size. The issue you are going to run into with using `position: fixed` is that is does not work well on mobile devices at all. If you …

Member Avatar for SUNDARESAN.R
0
176
Member Avatar for mutago

The htaccess file is used to limit/grant access to files in the **current working directory** **and below** only. You are already taking a step in the right direction by disabling risky functions such as symlink. To further protect against unauthorized file access in PHP you also want to make sure …

Member Avatar for hag++
0
340
Member Avatar for mutago

The problem is here: when i click on link CONNECT TEST1 of test1.php from web_index.php it says The requested URL /test1.php was not found on this server. In a directory sense you are **not** in the myweb_application directory. When you go to http://example.com and the index.php file is called, it …

Member Avatar for hag++
0
291
Member Avatar for Indians

Ok well it sounds like you already have the server side/ajax setup so all you have to do is attach an onChange listener to the select element. var select = document.getElementById('select_id'); select.onChange = function() { // Get the selected value var value = this.options[this.selectedIndex].value; // Process change event };

Member Avatar for hag++
0
3K
Member Avatar for mutago

Have you tried using 2 Files directives? One to restrict access to all *.php files and then one to allow access to only one? <Files ~ ".php$"> Order allow,deny Deny from all </Files> <Files "pass.php"> Order allow,deny Allow from all </Files>

Member Avatar for LastMitch
0
299
Member Avatar for iisark

if (!defined('CAKE_CORE_INCLUDE_PATH')) { define('CAKE_CORE_INCLUDE_PATH', DS.'C:'.DS.'xampp'.DS.'htdocs'.DS.'mysite'.DS.'cakecore'); } You have a leading 'DS' in the define statement. Try removing that.

Member Avatar for hag++
0
1K
Member Avatar for yaragalla_mural

What you need to do is have the server return a link to the image. Something like "http://mysite.com/images/my_image.jpeg". Then take that link and apply it to the "src" tag of an image element. designershiv's answer above would do it if you were using jQuery but it doesn't look like you …

Member Avatar for yaragalla_mural
0
287
Member Avatar for jazz.viper

Ok well a couple things here. One, don't do this ever: `$sql="SELECT branch_name,branch_address,branch_contact,branch_nostaffs,branch_furniture FROM branch_details WHERE branch_id = '" . $name ."'"; ` That's wide open to SQL injection. As far as why your search isn't working I'll need more info. If you run the query directly against the database …

Member Avatar for hag++
1
11K
Member Avatar for sania khan

This question is far too vague to truly answer. This could be a question about AJAX, submitting data then accessing it on any other pages within the same domain (cookies/local storage) or CORS (sending data via AJAX to other domains). We need a better question here.

Member Avatar for hag++
0
215
Member Avatar for giovannitao_1

Can you please post the code pertaining to this functionality and be specific about which part(s) you are stuck on?

Member Avatar for hag++
0
206
Member Avatar for dlmagers

Thank you for the nicely indented post. I am confused as to where you are stuck. Can you point out the exact line numbers and reason why you are stuck?

Member Avatar for hag++
0
389
Member Avatar for Indians

Well in order to do that update you are going to need to know which record ID is currently in context. There are a couple of ways to do this but the easiest way for you would be to put a hidden input field in the form that contains the …

Member Avatar for hag++
0
1K
Member Avatar for patk570

Also, Im not sure if you posted your production code in here or not but this needs to be changed: `$sql="SELECT * FROM fgusers3 WHERE id = '".$q."'";` Thats open to SQL injection. Again, not sure if this is just sample code but make sure that doesn't make it into …

Member Avatar for diafol
0
348
Member Avatar for hikingwithu2

Yep, that sounds about right. Something like `<a href="/blog.php?id=12345">View Blog</a>`

Member Avatar for hag++
0
247
Member Avatar for robinotje

Hey robinotje, check out this msdn article. Read the top portion then scroll all the way to the bottom and check out the C++ code snippet. [url]http://msdn.microsoft.com/en-us/library/aa328747(VS.71).aspx[/url] *EDIT: Keep in mind though, using mscorlib requires the use of .NET so you have to have all windows updates installed for the …

Member Avatar for Ancient Dragon
0
15K
Member Avatar for subratabanerjee

Well for one it seems like you are catching an OleDbException and showing a MessageBox with the Source property in it. Calling the Source property alone doesn't really tell you much about why the exception is being thrown. Try putting the Message property in the message box instead and let …

Member Avatar for jnbradl
-1
1K
Member Avatar for morthea

What is the sample data you are working with? What are you posting to the page?

Member Avatar for morthea
0
115
Member Avatar for birkenfeldo

[QUOTE=azywebcoder;1778029]you have to be carefull while using a variable inside a query string [CODE]$news = $db->query( "SELECT * FROM news WHERE id = ".$id."" );[/CODE] and [CODE]$res = $db->query( "SELECT * FROM news WHERE id =".$id."" );[/CODE][/QUOTE] No that's not correct. If you use double quotes you do not need …

Member Avatar for hag++
0
135
Member Avatar for hallianonline

Without the form code and a better explanation of what your problem is we can't help you. Also, use code tags and indent the code.

Member Avatar for veedeoo
0
102
Member Avatar for trektrak

From what I could gather, I think you basically need a system where users are able to check out books (like a library system). If that's the case you really only need one table as far as recording which books a user currently has checked out. For example the BOOKS_IN_USE …

Member Avatar for vaultdweller123
0
125
Member Avatar for jacksantho

or you could just use the builtin $_GET array. in your example it would be: [CODE=php]$_GET['stuid'];[/CODE]

Member Avatar for vaultdweller123
0
100
Member Avatar for Jfunch

Check the manual for the bind_param method. The first arg needs to be a format string specifying what type(s) of parameters you are passing. For example, if both username and password are strings you would use: [CODE=php]$stmt->bind_param("ss", $username, $password); [/CODE]

Member Avatar for hag++
0
142
Member Avatar for rich2710

This is my personal opinion but I've always considered XML config files for PHP to be a little.... weird. This is more of a .NET way to do a config file. Why not just use a "keyword"="value" style config? Or you could even use a config.php script to hold values …

Member Avatar for diafol
1
220
Member Avatar for klemme

Why not just use sessions and define your own session handlers? When the session is destroyed (say.. after an hour of inactivity?) you can also remove all items from the cart. Take a look at this link: [URL="http://www.php.net/manual/en/function.session-set-save-handler.php"]http://www.php.net/manual/en/function.session-set-save-handler.php[/URL]

Member Avatar for hag++
0
162
Member Avatar for amansingh

The way your query is written now it assumes that there could be multiple prices for a given Airline / Season combo. So if your data looks like this: Airline Season Price ------- ------ ----- Airline1 Summer 50 Airline1 Summer 65 Airline1 Summer 40 Airline1 Winter 55 Airline1 Winter 105 …

Member Avatar for amansingh
0
158
Member Avatar for HasNor

ardav is saying that without code we can't help you very much. Usually you get the "Webpage Expired" message when data has already been submitted to a form and you try to hit the "Back" button on your browser. This will normally throw an error / warning message because it …

Member Avatar for HasNor
0
112
Member Avatar for paulhook

[CODE=php]header( "LOCATION:, $adredirect" );[/CODE] What's that comma doing after the Location: header?

Member Avatar for paulhook
0
160
Member Avatar for jcomputing

I believe the information you need is here: [url]http://stackoverflow.com/questions/112190/php-ini-smtp-how-do-you-pass-username-password[/url] Check out the second post (marked as the answer)

Member Avatar for vaultdweller123
0
106
Member Avatar for cheelo007

I know this has been said before but I need to make sure you changed it. This line is incorrect: [CODE=php]$data = mysql_query("SELECT ID FROM users WHERE username = '{$this->_username}' AND password = '{$this->_passmd5}'"); [/CODE] Since the string is surrounded in double quotes you should not have curly brackets around …

Member Avatar for hag++
0
358
Member Avatar for adityamadhira

When the form is submitted using the $_POST array should get you the value of the selected option. Using your example you could use [CODE=php]$_POST['dname'][/CODE] which will return the value for whatever option is selected. Since you are setting the department ID as the value, that is what you will …

Member Avatar for cigoL..:)
0
303
Member Avatar for rubai

This: [url]http://www.amazon.com/MySQL-Dynamic-Sites-Fourth-ebook/dp/B005GXM63U/ref=sr_1_2?ie=UTF8&qid=1328306153&sr=8-2[/url] Fantastic read.

Member Avatar for cigoL..:)
0
312
Member Avatar for showman13

This is going to be setup in your Apache config (I believe). Not exactly sure where it is though sorry :-/

Member Avatar for pritaeas
0
133
Member Avatar for nova37

[QUOTE=darkc99;1750634]hey when you will post the solution for me :) still waiting hits :: just copy above code run it its will display data if you see the source code its xml data which is returned from servers so you have to just parse return xml data ($data) and assign …

Member Avatar for nova37
0
232
Member Avatar for issaru07

I see 2 potentials points of failure in your code. The first thing is if the users email or the product ID returns no results (because the the email or product ID specified in the URL didn't exist in the database) then the condition in the while() loop will not …

Member Avatar for issaru07
0
158

The End.