-
Replied To a Post in Codigniter Dynamic category view
Just give arguments to the `ads()` controller, for example: public function ads($cat, $add_name) { $data['cat'] = $cat; $data['add_name'] = $add_name; $this->load->view('ads', $data); } In this case the url would look … -
Gave Reputation to jkon in Php vs Node
I respect any programming language , technique or environment (I am not sure how to state it in a way that node.js folks would accept it) . About node.js , … -
Replied To a Post in AI - Artificial Intelligence
Hi, small addition: look at **R** language, which is used to find patterns into data structures: * https://www.r-project.org/ To know how this is applied search for **machine learning** topics. Some … -
Stopped Watching AI - Artificial Intelligence
Hello everybody im thinking about how AI works and actualy im really confuzed and scared at the same time, so me as low programmer i know how the computers work, … -
Began Watching AI - Artificial Intelligence
Hello everybody im thinking about how AI works and actualy im really confuzed and scared at the same time, so me as low programmer i know how the computers work, … -
Replied To a Post in In my code is there any possibility for attacking SQL Injection?
No, from SQL injection you're safe with prepared statements, but you are exposed to an XSS attack, here: echo "<div class='alert alert-success' role='alert'>Well done! You successfully created user: <b>".$_POST['username']."</b></div>"; echo … -
Replied To a Post in Mounting a MYI, MYD and FRM Files
Hi, best solution would be to get data through **mysqldump** and then push the backup into the server. By the way, if there were InnoDB tables then you also need … -
Replied To a Post in results not displaying .. plz help me
Hi, you should give us more details: * what looks like the input? * are you using utf8 or another encoding? * do you get the expected input? * do … -
Replied To a Post in Fatal error: Call to a member function count() on a non-object in
Hm, lol, ok, it was so similar I made a mistake :D So, your `Hash::make()` method should look like this: public static function make($string, $salt=''){ return hash('sha256', $string.$salt); } With … -
Replied To a Post in Fatal error: Call to a member function count() on a non-object in
If you're using [**Illuminate Hasher**](http://laravel.com/api/5.1/Illuminate/Contracts/Hashing/Hasher.html) then it should look like: if(Hash::check($password, $this->data()->password)) rather than your previous IF statement, because the hasher will generate a different result each time, so you … -
Replied To a Post in Issue deleting data via PHP/MySQL
Good for you, did you understood what caused the issue? -
Replied To a Post in Fatal error: Call to a member function count() on a non-object in
No error? Sure it's `Hash::make()` and not `Hash::check()`? -
Stopped Watching Can software cracker reveal original variable content?
If I wrote a program which would `Console.WriteLine()` a base64 code, like an easter egg ("a hidden secret" in gaming jargon) or something, for example string EasterEgg = "dGhlYmlnc2VjcmV0"; Console.WriteLine(b64d(EasterEgg)); … -
Replied To a Post in Fatal error: Call to a member function count() on a non-object in
Hi! It happens because: $data = $this->_db->get('users', array($field, '=', $user)); is not returning the object. It could be because the query failed or for something else, sure `_db` it's a … -
Began Watching Can software cracker reveal original variable content?
If I wrote a program which would `Console.WriteLine()` a base64 code, like an easter egg ("a hidden secret" in gaming jargon) or something, for example string EasterEgg = "dGhlYmlnc2VjcmV0"; Console.WriteLine(b64d(EasterEgg)); … -
Replied To a Post in Issue deleting data via PHP/MySQL
At this point I would check the contents of the **$error** variable, if any, and set few `die()` to check which IF statement is working and which fails. I'm supposing … -
Replied To a Post in Issue deleting data via PHP/MySQL
I think I've understood where is the issue (finally :D): **$_GET['album']** is set but it does not return any value. At line `28` of [your last code version](https://www.daniweb.com/programming/web-development/threads/501741/issue-deleting-data-via-phpmysql#post2193960) you had: … -
Replied To a Post in Issue deleting data via PHP/MySQL
Set: echo "<pre>"; var_dump($_GET); echo "</pre>"; in top of the script, then press the delete button and paste results here. -
Replied To a Post in Issue deleting data via PHP/MySQL
Ok, then `$_GET['delete']` will be set **but** it will be empty, by consequence the IF statement will fail. Try to change this line: $delete = array_key_exists('delete', $_GET) ? trim($_GET['delete']) : … -
Replied To a Post in Issue deleting data via PHP/MySQL
Replace code from line `2` to `24` with: $error = FALSE; // check if index key exists and trim, else set it to NULL $delete = array_key_exists('delete', $_GET) ? trim($_GET['delete']) … -
Stopped Watching Fastest Way to Find Prime
Hello everyone, I am posting this more generically in the software development section to see what might be available and to increase a possible success rate. But enough of that … -
Replied To a Post in Issue deleting data via PHP/MySQL
Let's try. The error you are reporting: > MySQL said: Documentation > 1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL … -
Began Watching Fastest Way to Find Prime
Hello everyone, I am posting this more generically in the software development section to see what might be available and to increase a possible success rate. But enough of that … -
Replied To a Post in bad HTML
Hi, in which context? -
Replied To a Post in SMTP mail error
Are you using an application password? Read here: * https://support.google.com/accounts/answer/185833?hl=en -
Began Watching Convert GPS Hardware Protocol Output to Google Maps API
Good day to all, Can anyone please assist a beginner in determining the best way to convert or parse the information generated by a secure GPS device? Am creating a … -
Replied To a Post in Adding data to a row without replacing existing data
Yes, you can by using `concat_ws()` MySQL function, for example: UPDATE table1 SET color = concat_ws(',', color, 'green') WHERE id = XX; But it leads to other problems, for more … -
Replied To a Post in Access denied for mysqli/mariaDB from php
Hi, you are submitting a single string to the PDO constructor: $connection = new PDO("mysql:host=$host; dbname=$db_name, $db_user, $password"); instead they should be three: dsn, username, password. Or four if [appending … -
Replied To a Post in I need help with PHP/MySQL modify password issue
You could do: $passwd = crypt($_POST["newpassword"]); # prepare query $query = sprintf( "UPDATE admin SET hash = '%s' WHERE admin_id = %u", mysql_real_escape_string($passwd), (int)$_SESSION['admin_id'] ); # perform query $result = … -
Replied To a Post in I need help with PHP/MySQL modify password issue
> Warning: mysql_query() expects at most 2 parameters, 3 given in admin\modify-password.php on line 40 It happens because this function does not support prepared statements, and it only accepts two … -
Replied To a Post in how to fetch only image in php while loop
Is it stored as HTML with an `<img>` tag? If affirmative then you could use a regular expression to extract the image link. For example: $content = ' <p>Title</p> <div><img … -
Gave Reputation to diafol in Array Struture
$data = ['email'=>'blah@gmail.com','firstname'=>'Alun', 'surname'=>'Llewelyn', 'location'=>'Abertawe']; $status = 1; $array = []; $merge = []; $array['status'] = $status; $array['MERGE0'] = $data['email']; unset($data['email']); $reData = array_values($data); for($i=0;$i<count($reData);$i++) $merge['MERGE' . ($i+1)] = $reData[$i]; … -
Replied To a Post in what is the tech stack of houzz.com
This should give you some information: http://stackshare.io/etsy/etsy -
Replied To a Post in How To display data from databse using radio buttons in php
A downvote will not lead help, at least from me. I asked you to share what have you done or do I have to write your code without knowing what … -
Replied To a Post in How To display data from databse using radio buttons in php
What have you done? -
Replied To a Post in Adding Array Values
> they can be notoriously slow so true, hope it's going to change with PHP7: https://nikic.github.io/2014/12/22/PHPs-new-hashtable-implementation.html -
Replied To a Post in Adding Array Values
An alternative: $t = call_user_func_array('array_merge_recursive', $r); where `$r` is diafol's example array and it will return: Array ( [sub_total] => Array ( [0] => 1000 [1] => 120 ) [total_tax] … -
Replied To a Post in unable to create short codes
As I see it, this is replacing only the last shortcode. If the goal is to replace all the `[shortcode ...]` blocks with `Shortcode displayed`, then [`preg_replace()`](http://php.net/preg-replace) should work fine: … -
Replied To a Post in unable to create short codes
On line 3 you're looping index 1 of the **$matches** array: foreach($matches[1] as $match) So, due to the structure of this array, **$match** will be a string. Try this to … -
Replied To a Post in Displaying Data From A Drop Down List php
**@ganeshvasanth** please open your own thread and share what you have done, so we can understand where is the problem. -
Replied To a Post in Codeigniter shopping cart class
It's deprecated: * https://codeigniter.com/user_guide/libraries/cart.html So it's better to not adopt it, unless you want to update that code on your own. The point is this: **PHP 5.6** is going to … -
Replied To a Post in MYSQL ON DUPLICATE KEY UPDATE failing for unique index
It happens because you're using NULL values, for the series *it's not a bug, it's a feature:* * https://bugs.mysql.com/bug.php?id=8173 -
Replied To a Post in help putting date of birth in new system
> Fatal error: Call to undefined function Age() in /home/jktempla/public_html/signup.php on line 55 Hi, it's the same type of error you got in your previous thread: * https://www.daniweb.com/programming/threads/501605/fatal-error-call-to-undefined-function-getuser-in-homematurecopublic_ -
Replied To a Post in video not uploading
Looking at the script, it shouldn't work at all with videos as it seems to be forged to allow only images. In addition, your script file size limit is 500000, … -
Replied To a Post in Fatal error: Call to undefined function getuser() in /home/matureco/public_
It means that you have not included the named function in the current script, if you grouped some common functions then you have to include such collection. Again, please refrain … -
Replied To a Post in cant get logo image to show in a sub folder file
Can you open the logo link directly from the browser address bar? For example: http://website.tld/images/logo/logo.png What is the value of `SITE_FAVICON`? -
Replied To a Post in video not uploading
> "Request Timeout. Server timeout waiting for the HTTP request from the client." I'm not much confident with WAMP setups, but this seems to be [error 408](https://httpstatuses.com/408). I would test … -
Replied To a Post in video not uploading
Apache can load a module to control the upload/download bandwith, this is not a default setting, so you should check with your hosting if there are any limits. You can … -
Replied To a Post in My apologies
> In the previous century (the owls could still speak sometimes :o) ) we used to keep some sort of diary where we noted every day on which part of … -
Gave Reputation to ddanbe in rainfall program c#
You could introduce a method to input an integer. Like this: /// <summary> /// Read an integer from the console /// </summary> /// <param name="prompt">descriptive message</param> /// <returns>an integer</returns> public …
The End.