-
Replied To a Post in PHP data to javascript/html
generally, the way this works -- the you write your connection + query in PHP, gather your data, and use PHP to format the output. This can be its very … -
Began Watching error" syntax error in FROM clause" help needed
i am failing to link v.b 6.1 program and database. it keeps posting the error "syntax error in FROM clause". how do i make it work because its the forth … -
Replied To a Post in error" syntax error in FROM clause" help needed
your sql query has an error in it. Nothing to do with your VB script, unless the intention is to write a handler for an SQL error - in which … -
Began Watching Hash & Salt db connection settings (password)?
Hi all! I'm asking this after reading so many articles on the internet about hashing & salting, and the entire theme of securing database connection settings. I'm making an application … -
Replied To a Post in Hash & Salt db connection settings (password)?
Based on your use case, I do not think that a hash is sufficient for your needs. A hash is one-way, and then you do a comparison lookup against the … -
Began Watching Professional paid pentesters?
I don't trust my code. I really don't. I always have a feeling that something is wrong with it. Every variable looks like an enemy. Every loop, unfinished condition. Every … -
Replied To a Post in Professional paid pentesters?
They are out there. More likely, you will find companies that make automated pen-testing tools, which they license for use on your system. Their job is to update their tools … -
Began Watching password encryption type
which kind of password encryption is this mqqemZ0= -
Began Watching Compare problem
Hi I am new to MySQL and not too shure how can I update row form another table while cheking if logged in user is same: `Telefonist='".$_SESSION["UserName"]." And also I … -
Replied To a Post in .prop diabled true checkbox
I think he is being asked, as a UI/UX point of view, to do something that is programatically a strange concept. Requests like this come around once in a while. … -
Began Watching About which security layers should I be worried about while programming?
When you need to create a login page using PHP and MySQL, the safety of this login page relies on - Your PHP scripting abilities - How well and securely … -
Replied To a Post in About which security layers should I be worried about while programming?
All the best security flaws are implemented with the best of intentions. Tomorrow, your C# stack could blow up because a major vulnerability in .NET surfaces. Likewise, the years and … -
Replied To a Post in .prop diabled true checkbox
there is an "onsubmit" property of a form, as I mentioned above. I don't write in jQuery, but Im sure they have a method for removing attributes. If not, iterate … -
Replied To a Post in .prop diabled true checkbox
this `$( "input[type='checkbox']" ).prop({ disabled: false});` will not work. You will have to remove the property entirely to get rid of the "disabled" marker. for reference... https://jsfiddle.net/pudhLdbt/ you will notice, … -
Replied To a Post in Store procedure result Mysql
You can do that in two ways -- in PHP you will know it's empty because your result set will be empty. That's probably the simplest and most straight forward … -
Began Watching Store procedure result Mysql
I have created a sp little bit confuse about it. how to count result set if data availabe then show it and if not then retun ResultStatus is zero. did … -
Replied To a Post in Store procedure result Mysql
ehhh... First, Im not sure why you are wrapping a select in a transaction. May just be my not following your logic, or maybe me being naive, but Im pretty … -
Began Watching PHP Filter
Hello, I was wondering if any one help me ouut guide me or let me know how do i filter records using php like it is done in property listings … -
Replied To a Post in PHP Filter
From the looks of it.. your function find_all_products() makes a database call, then you churn through the results as needed. This is just terribly inefficient. You do not seem to … -
Began Watching .prop diabled true checkbox
Im using this function to disable check boxes after selection $( "input[type='checkbox']" ).prop({ disabled: true}); the problem is that when the form is submited the data of the checkboxes select … -
Replied To a Post in .prop diabled true checkbox
likely the jquery is setting the "disabled" flag, which according to the HTML specs tells the browser to remove the input in regards to submitting a form. Any "disabled" input … -
Replied To a Post in stored procedure problem
Glad it all worked out for you. So it was the no SQL after all -
Replied To a Post in stored procedure problem
I don't use phpmyadmin, So maybe someone who does may be able to help with debugging... The query looks fine, so all I can go on is assuming that it … -
Replied To a Post in stored procedure problem
may sound silly, but can you try without the () surrounding your select? insert into `product_attribute` (`product_id`, `attribute_id`, `language_id`, `text`) SELECT a.`product_id` ,b.`attr_id` ,b.`lang_id` ,b.`attr_value` FROM `product` a ,`batch_attr_detail` b … -
Began Watching stored procedure problem
I am trying to insert a set of attribute rows into a table based on the range of a unique key (product_id) and three passed variables. This is on a … -
Replied To a Post in stored procedure problem
It would really help to see the whole declaration, so we can see the incoming variables. At first glance, it looks like you're doing something funny with your vars by … -
Began Watching "What do you enjoy/like about programming?
Do you enjoy programming? If yes, why? Is it your passion? maybe on the salary? and etc. or you just simply enjoy it I wanna hear it from you guys, … -
Replied To a Post in "What do you enjoy/like about programming?
Part science, part art. It's a way to challenge ourselves to solve new (to us) problems, and give us a puzzle to not only solve, but improve upon when everything … -
Began Watching If array is empty hide this box
Hi, I have this situation while ($row = $stmt->fetch(PDO::FETCH_ASSOC)){ $images[] = [ 'image' => $row['image'] ]; } function image_html($image) { return '<img src="' . $image['image'] . '" class="img-responsive" />'; } … -
Replied To a Post in If array is empty hide this box
I *think* what priteas is trying to get across to you is that you need to change your thinking. Consider it this way: "only display the box when there are … -
Replied To a Post in payment gateway
A payment gateway is for credit cards and debit card. -
Began Watching payment gateway
Hello, I am trying to create ecommerce website which includes payment gateway. My ecommerce site is coded in PHP. Any clue how to incorporate payment gateway with my ecommerce site? … -
Replied To a Post in payment gateway
Whatever system you use to process payment (either a payment gateway directly, or a service like paypal) will likely have a copy/paste or include PHP script for simple transactions that … -
Began Watching mysql procedure call with out parameter not working in PHP
Hi, I have created a test procedure (for the sake of example to get this working) called test_proc like below - DELIMITER $$ CREATE DEFINER=`tloken`@`%` PROCEDURE `test_proc`(In user_id varchar(100), OUT … -
Replied To a Post in mysql procedure call with out parameter not working in PHP
That... looks very unfamilliar to me in terms of creating and running procedures... try this instead: delimiter // drop procedure if exists GetEvents// create procedure GetEvents(IN iVal1 int, IN iVal2 … -
Began Watching PHP sessions
Please recommand me a good book or website where i can learn PHP Session. Actually a website will be more better thanks guys. Peace -
Replied To a Post in PHP sessions
You're on it. What would you like to know about them? (Of course, I assume you checked out http://php.net/manual/en/book.session.php) -
Began Watching [javascript]A question about getting value from node
<table class="filetable" id="filetable"> <thead> <tr> <th width="25%">名称</th> <th width="6%">大小</th> <th width="10%">类型</th> <th width="19%">修改日期</th> <th width="40%"></th> </tr> </thead> <tbody id="FileList" runat="server"> <tr> <td><img src="images/f01.png" />Adobe Dreamweaver CS5简体中文绿色</td> <td>2013/10/14 17:38</td> <td>文件夹</td> <td … -
Replied To a Post in [javascript]A question about getting value from node
While I don't agree with your use of an anonymous function to attach an anonymous function to a node to alert the value (... yup, that sounds right), it seems … -
Began Watching Image insert into table using php/mysql
I have a question about inserting images into a product page. I have 5 images (saved as longblobs in my products table) and would like to put them in my … -
Replied To a Post in Image insert into table using php/mysql
heh... I think diafol was trying to say why not store the images on a web server, and only store the paths (ex: http://mysite.com/images/myimage.jpg) to the images on that web … -
Began Watching Script that can listen and send messages at the same time.
Hi, I don't know if there is some name for this but what I want to create a script in php which runs in the background and capable of sending … -
Replied To a Post in Script that can listen and send messages at the same time.
you, sir, are building a proxy (at least, that's what it sounds like to me). Feel free to read about that: http://en.wikipedia.org/wiki/Proxy_server There are many PHP proxy scripts you can … -
Began Watching Transitioning to OOP in PHP
Hi all, I've been working with PHP, using procedural methods, for several years now, and have begun to explore the object-oriented side of it. While it didn't take me long … -
Replied To a Post in Transitioning to OOP in PHP
for sure, this is broken: public function get_validator(){ return $this->response_code; return $this->response_msg; } once you return out of a method, you're done. It does not continue to process. Other than … -
Replied To a Post in Update Statement not working
If you press the F12 key, and go to the "network" tab (in pretty much any browser", you will be able to do a network trace. IE may require you … -
Replied To a Post in Update Statement not working
I dunno... hit F12 and do a network trace, and see what you are posting and where. I don't see anything else wrong with what you have... especially seeing that … -
Replied To a Post in Update Statement not working
echo '<input type = "submit" value = "Top Up">'; should be echo '<input type = "submit" name="submit" value = "1">'; What are you getting now with the var_dump? -
Replied To a Post in Update Statement not working
yes -
Replied To a Post in Update Statement not working
Yeah, you don't even have a new balance in there... Leads me to believe that you need to fix the action on your form and target the page directly.
The End.