-
Replied To a Post in Warning: mysqli_close() expects parameter 1 to be mysqli, null given in
Okay, if the register request is sent to another script you have to redirect the client back to a page that can accept GET requests. Which can be the sign … -
Replied To a Post in Warning: mysqli_close() expects parameter 1 to be mysqli, null given in
> When I remove the extra bracket, I get this "Parse error: syntax error, unexpected end of file". I suggested you to move mysqli_close() inside the [statement](http://php.net/manual/en/control-structures.if.php), not to remove … -
Replied To a Post in Warning: mysqli_close() expects parameter 1 to be mysqli, null given in
At line 26 there is an extra `}`, but it does not raise a syntax error, so if on top you have a condition like: if($_POST) { # open connection … -
Began Watching Warning: mysqli_close() expects parameter 1 to be mysqli, null given in
I get the error "Warning: mysqli_close() expects parameter 1 to be mysqli, null given in" and I can't find a problem. Can anyone help, here is my code. $username = … -
Replied To a Post in printing mysql table with echo works but not with return
From the [documentation:](http://php.net/return) > If called from within a function, the return statement immediately ends execution of the current function, and returns its argument as the value of the function … -
Began Watching printing mysql table with echo works but not with return
My code works with echo but if I use return it wount display the wanted data, but i want to use code with return so the data will display wherever … -
Replied To a Post in help! my keyboard does french È instead of question marks
Hi Julie, if the OS set the azerty layout try to press shift and comma to get the question mark. Anyway you should set the keyboard layout to match the … -
Began Watching help! my keyboard does french È instead of question marks
i just bought a microsoft wireless keyboard and the question mark and coma are both È how do i swap it back to the english version of the keyboard. its … -
Replied To a Post in How do I pass a curl command with multiple strings in either PHP or jquery
Hi, which version of curl are you using? I don't have the `-W` option and I don't find it in the documentation. Have you tried the PHP curl library? http://php.net/manual/en/book.curl.php … -
Began Watching How do I pass a curl command with multiple strings in either PHP or jquery
I have a command which I run on linux terminal like below: curl –W “Authentication: Token r4r4xxxxx” “https://api.com/v1/results?display=true&format=image/jpeg&lang=en” –o image.jpg And this command will authenticate me from the server and … -
Gave Reputation to diafol in Can you review my video on productivity when optimizing symfony application
Herein lies the ROI. You can get bogged down with that pesky over-optimising. This is particularly true of DIY one-man band merchants like myself. You have to learn when good … -
Replied To a Post in Which Parts Of Php Not To Learn ?
**@UI** Hi! in addition to previous comments, if you are learning PHP for work, sooner or later you will handle legacy code, you will be asked to add functionalities, not … -
Began Watching Which Parts Of Php Not To Learn ?
Guys, After getting putoff from php.net to learn php 7 (because it is not beginner friendly) and raoming around youtube for 1.5mnth to learn php and failing to get proper … -
Replied To a Post in php mysql
Hi, what have you done so far? -
Began Watching php mysql
**id Autor Title ** 1 xyz DCN when i click Dcn go to load book pdf url help me -
Began Watching Looking for a particular type of functional programming examples
Hello people. I'm looking for FP examples that are very simple (very few lines, one-liners are even better) and that totally look like sorcery to a traditional imperative programmer. Can … -
Replied To a Post in Redirect with Parameter
Hmm, the session in this case it is not, probably, the best approach: what happens if, in the current session, you open multiple tabs of A.php with different IDs? A.php?id=123 … -
Replied To a Post in Redirect with Parameter
> Whenever I press a button on B.php, the value ID=1 gone. Can you clarify this? Right now it seems the issue is not related to A.php but just to … -
Began Watching Redirect with Parameter
Let's all be examples. I am redirecting from A.php to B.php with a parameter, let's say it ID=1. Therefore, ..../B.php?ID=1 And I wanna hold the value of the ID. Whenever … -
Replied To a Post in php,mysql
Right now, change line 13 to: if(mysqli_num_rows($query_run)>0) There is also another error here: $query_run = mysqli_query($query,$db); The first argument of the function must be the link to the database, the … -
Replied To a Post in php,mysql
Hi, this `mysq_num_rows()` does not exists, you may want to use: http://php.net/mysqli_num_rows A part that, don't forget to use prepared statements, otherwise sooner or later you may receive a visit … -
Began Watching php,mysql
hi im new in php im trying to create a log-in system but i got an error need your help guys THIS IS MY LOGIN PROCESS <?php require 'connect.php'; $employeeno … -
Replied To a Post in What On Earth Is This Outlandish Error ?
You're welcome! Look at lines 179 and 187. In the first case you have to close the PHP tag `?>`, in the second case you have: //Display iFrame.?> Here the … -
Replied To a Post in displaying image after fetching from database
It's line 4: echo '<td>'.<img src='images/blank_big.jpg' height='150px;' width='150px;' />.'</td>'; The way you are using the concatenation operator (dot operator) is not correct, as `<img ...` is a string, so it … -
Began Watching displaying image after fetching from database
hi ive got a html table echoing through php and im having problems displaying image in the table heres what i have so far if($fetch_image['user_image']!='') { echo '<td>'.$fetch_image['user_image'].'</td>'; } else … -
Replied To a Post in What On Earth Is This Outlandish Error ?
Hi, in this case the error message is very descriptive: > PHP Parse error: syntax error, unexpected '"', expecting '-' or identifier (T_STRING) or variable (T_VARIABLE) or number (T_NUM_STRING) in … -
Began Watching What On Earth Is This Outlandish Error ?
Programming Buddies, Here's my latest script. It is a member reg-login script. It registers you and gets you to activate your account confirming your email and then auto logs you … -
Replied To a Post in DaniWeb breaking links in posts
Test: https://http2.akamai.com/demo //Okay, it's not due to HTTP/2 :p -
Began Watching DaniWeb breaking links in posts
OK, so in [this thread](https://www.daniweb.com/hardware-and-software/microsoft-windows/threads/507918/presentation-loads-with-error) I offered advice to visit the Microsoft troubleshooter here: https://support.microsoft.com/en-gb/help/927477/how-to-troubleshoot-a-damaged-presentation-in-powerpoint-2007-and-powerpoint-2010 and DaniWeb broke the link and struck a line through it to say it didn't … -
Began Watching Need to extract data from an external XML file to use selectedf items on we
I have found a source of and aledged xml file (although it is named as solarxml.php, when I download it the data that I want is there, i.e. solarflux, aindex, … -
Began Watching Android security: an analysis
Generally speaking, when it comes to being as secure as possible (and, just as importantly, staying as secure as possible) newer is better. This is certainly the case if we … -
Gave Reputation to Benoit_1 in DHCP Problem causing ip to be 169.X.X.X and not 192.168.X.X
I presume no one will read this so many years after the question was asked, but just in case someone else is looking for an answer: Look at the switch. … -
Replied To a Post in Why Reg Page Php 7 MySqli Code Fails While Login Page Code Works ?
Hello, please share the code otherwise we cannot help. -
Began Watching Why Reg Page Php 7 MySqli Code Fails While Login Page Code Works ?
Hi, I am using php 7 and I do not know why the following 2 different codes for user the user registration page is not working.*The login page php is … -
Replied To a Post in Goodbye DMOZ
It is really sad, I have used a lot and I have been a volunteer editor for few years sometime ago. Is there anything else similar? -
Began Watching Goodbye DMOZ
Looks like Dmoz is shutting its doors for good. Who is going to miss the open source directory project aka Google Directory? Being listed in there used to be awesome … -
Replied To a Post in infor not going into database after adding mysqli_real_escape_string
Remove or comment lines from 13 to 19, i.e. these: $event_type = ""; $event_date = ""; $event_country = ""; $event_postcode = ""; $event_title = ""; $event_description = ""; $event_ltm = … -
Replied To a Post in infor not going into database after adding mysqli_real_escape_string
Okay, a part lines from 13 to 19, which are blanking the variables and I suppose it's just an error here in the paste, at line 21 (the $query) you … -
Replied To a Post in infor not going into database after adding mysqli_real_escape_string
Hi, can you show the insert query? Also if you add error checking do you get any additional information? -
Began Watching infor not going into database after adding mysqli_real_escape_string
hi im attempting to add mysqli_real_escape_string into form to make more secure and after i added it in code below $event_type = $_POST['event_type']; $event_date = $_POST['event_date']; $event_country = $_POST['event_country']; $event_postcode … -
Gave Reputation to Traevel in PHP Notice: Undefined index: last_id in
Using my magical powers I've tried to telepathically deduce the error message you forgot to post and I think if you remove the `'` around `'".$_SESSION['last_id']."'` it might solve your … -
Replied To a Post in PHP Notice: Undefined index: last_id in
Hi Janice, the error is given by this `$_SESSION['last_id']`, because is not set. Before running the query you can make sure the index is set by running: if(TRUE === array_key_exists('last_id', … -
Began Watching PHP Notice: Undefined index: last_id in
hi im struggling with this error see section below if anyone can help be much appreciated ty jan x <?php include("config/db_connect.php"); include("config/ckh_session.php"); // Inserting user Details code if(isset($_POST['submitmeet'])) { $event_title … -
Gave Reputation to Dani in Create random account
I was being sarcastic because I run this forum. As a forum owner, why would I want you to spam me? :) That being said, I recommend you check out … -
Replied To a Post in Ruby in rails, coverting array of hash in simple hash
Hello, maybe you want to use something like this: #!/usr/bin/env ruby h = [{"gate_pass_type_id"=>2, "tag"=>0, "total"=>2000}, {"gate_pass_type_id"=>125, "tag"=>0, "total"=>300}, {"gate_pass_type_id"=>661, "tag"=>0, "total"=>750}, {"gate_pass_type_id"=>661, "tag"=>2, "total"=>100}] n = Hash.new h.each do … -
Began Watching Ruby in rails, coverting array of hash in simple hash
Hi all, This is my array of hash [{"gate_pass_type_id"=>2, "tag"=>0, "total"=>2000}, {"gate_pass_type_id"=>125, "tag"=>0, "total"=>300}, {"gate_pass_type_id"=>661, "tag"=>0, "total"=>750}, {"gate_pass_type_id"=>661, "tag"=>2, "total"=>100}] I want to convert it into [2 => { "0"=> … -
Replied To a Post in New moderator alert!
Congrats! ^_^ -
Began Watching New moderator alert!
I am sure that members of DaniWeb will join me in congratulating [rproffitt](https://www.daniweb.com/members/280178/rproffitt) on his promotion to moderator with immediate effect. While Robert may be a new moderating face to … -
Replied To a Post in Registration form
Hi, > so the validation code is not working properly. can you give details about what does not work properly? -
Gave Reputation to Traevel in Onclick is only working once... Please help
Hi, In JavaScript a single `=` is used to **assign** a value and a double `==` is used to **check** a value. Also the term `then` can be removed entirely. …
The End.