mysqli

Password in md5 decrypted to English (PHP MYSQL) [duplicate]

≯℡__Kan透↙ 提交于 2020-01-06 19:44:39
问题 This question already has answers here : Is it possible to decrypt MD5 hashes? (24 answers) Closed 2 years ago . I have password stored in database and its showing on browser as md5 because its saved there as md5 below is the code am using $result=$link->query("select * from adminpanel"); echo "<tr><th>User Name</th><th>Password</th></tr>"; // loop through results of database query, displaying them in the table while($row =mysqli_fetch_array($result,MYSQLI_ASSOC)) { // foreach( $result as

MySQL select column string with LIKE or REGEX based on sub-string with delimiters

假如想象 提交于 2020-01-06 19:36:00
问题 I have to compare a column value with a user input numbers. The string in the column is in the format 8|5|12|7| Now, I need to compare a user input values 2 , 5 , 3 with this column value When I use LIKE operator as '%2|%' I got the output by matching with column value |12| How do I match the string by using Regular Expression or any other way? 回答1: If I understand the question correct, then to make sure that you get 2|.. or ..|2|.. or |2 , you need to add or clauses where col like '%|2|%' or

How do I get php-mysql for php 5.4.23 while it's conflicting with php-common 5.3.28?

社会主义新天地 提交于 2020-01-06 18:12:12
问题 Php-mysql package for php 5.4.23 is conflicting Debuging line by line into the framework I now have found that the constructor at 1 level goes to initialize database() and finally it tries connection with mysqli_connect but I now see that my php5.4.23 generates undefined mysqli_connect()..wow! Now I'm trying to install php-mysql for php 5.4.23 but it gives ~>sudo yum -y php54 php-mysql Error: php54-common conflicts with php-common-5.3.28-1.2.amzn1.x86_64 You could try using --skip-broken to

HTML & PHPMySQL , Insert many datas into Table from textarea

我是研究僧i 提交于 2020-01-06 17:27:31
问题 Hi I'm trying to insert datas from one textbox (Text Area) but datas should be terminated by lines FIELDS TERMINATED BY '\n' My HTML is <form method="get" id="testformid" action="upload-datas.php"> <input type="submit" /> </form> <textarea form ="testformid" name="taname" id="taid" cols="35" wrap="soft"></textarea> Now if I write in this textare datas like 1 22 333 How can I make my upload-datas.php to terminate datas which it gets from the form on top? P.s this is something like CVS file but

How to echo each row from mySQLi query using PHP?

穿精又带淫゛_ 提交于 2020-01-06 15:51:23
问题 The following query returns all rows from the campaign table that have the user_id of 1: SELECT * FROM campaign WHERE user_id=1 In the case of testing this is two results. How would I be able to echo a set column from each of the rows. For example, I want to echo the campaign_name from each of the results. I have tried various methods however, I have had no success. My end goal would be something like this: <?php foreach($queryRow as $row) { ?> <li> <a> <div> <p><?php echo($row['campaign_name

Can Someone hello explain this class for a php threaded comments system?

蓝咒 提交于 2020-01-06 15:32:29
问题 I am trying to implement a threaded comment system using php, and i found something already written, but i can not exactly see how to use it, i am not familiar at all with classes, so i was wondering if someone could help explain how i would use the code. the code below is from the website http://www.jongales.com/blog/2009/01/27/php-class-for-threaded-comments/ the code for the classes is as follows: class Threaded_comments { public $parents = array(); public $children = array(); /** * @param

PHP MySQLi Singleton for Ajax-Requests end in to many processes

好久不见. 提交于 2020-01-06 13:53:00
问题 I have a PHP application which uses AJAX to get information - in the back, it uses a PHP MySQLi singleton. The AJAX-requests are send every 0.5 second and they read some stuff out of the database and deliver it as a JSON String back to website. When I open the website several times (in different tabs), I then get an error because PHP, or rather apache, could not "fork another process". My server has enough RAM, but the problem is taht the process-limit of 130 processes was reached. cat /proc

Running multiple queries in loop, and building multidimensional array

心已入冬 提交于 2020-01-06 09:03:34
问题 I'm building a stream of data based on users a user is following. While I have a working prototype, the code seems unnecessarily ugly with multiple loops with further queries nested in them. I was wondering if I could get any advice on simplifying this, possible handling more within the sql query itself? On with some code: (I've trimmed this down a little and removed some of the rows retrieved). $init = $conn->prepare("SELECT followerid FROM following WHERE userid=?"); $init->bind_param("s",

Running multiple queries in loop, and building multidimensional array

依然范特西╮ 提交于 2020-01-06 09:03:30
问题 I'm building a stream of data based on users a user is following. While I have a working prototype, the code seems unnecessarily ugly with multiple loops with further queries nested in them. I was wondering if I could get any advice on simplifying this, possible handling more within the sql query itself? On with some code: (I've trimmed this down a little and removed some of the rows retrieved). $init = $conn->prepare("SELECT followerid FROM following WHERE userid=?"); $init->bind_param("s",

data not filtering in ajax codeigniter

ぃ、小莉子 提交于 2020-01-06 08:44:10
问题 I want to filter data by dropdown but it giving me all data.... this is my model with ajax function public function ajax() { $query = "SELECT * from info_user Where user_status ='1'"; if(!empty($size)){ $query .= " and city in('".$size."')"; } if(!empty($sprice) && !empty($eprice)){ $query .= " and charge_per_hour >='".$sprice."' and charge_per_hour <='".$eprice."'"; } $result = $this->db->query($query); return $result->result(); } And this is my controller public function ajax() { $size =