Error in php project Programming Web Development by ajay@7838 …;div class='albumDetail'> <a href='find_holiday.php?goto=Leh Ladakh'><img class='img-responsive imghover' src='upload…]' width='220' height='150' > <span class='albumtitle'>Leh Ladakh</span> </a> </div>… i have no idea what is wrong...hijack this log Hardware and Software Information Security by Gilbert5083 … - SSODL: OtpeegYpOn - {40CC9181-EA66-3B2B-CB88-5DD269FC4B92} - E:\WINDOWS\system32\leh.dll (file missing) O23 - Service: AOL Connectivity Service (AOL ACS… why i got error when try to insert this functions.php"); ? Programming Web Development by samsons17 … pages WHERE subject_id = {$subject_id}"); if (!$page_set) { die ("x leh connect!!!! : " . mysql_error()); } return $page_set; } ?> [/CODE] help please.. Thank… the TableConfimation function cannot be detected why? Programming Software Development by victoria.lim.773124 … Yong" <<endl; cout<<" : Wong Leh Ping" <<endl; cout<<"Course… Re: recursive function void reverse() Programming Software Development by dusktreader … [H] llo [eH] |__ v lol [eH] lo [leH] |__ v ol [leH] o | v o [lleH] [/icode] This can be done… Re: Help me coding tis.. i dunno how to start.... Programming Software Development by denniskhor then largest and smallest value and also average value leh?? Re: who can help me in java? Programming Software Development by williamku87 [QUOTE=jwenting;540036]MissingCodeTagError, redo from start.[/QUOTE] what ur meant? i don know leh.. Re: RABIES! Community Center Geeks' Lounge by GrimJack … to human activity. The French word rabies is le rage (leh rahg); obvious where the name comes from. Re: RABIES! Community Center Geeks' Lounge by vaultdweller123 … to human activity. The French word rabies is le rage (leh rahg); obvious where the name comes from.[/QUOTE] at last… Re: Error in php project Programming Web Development by rproffitt Line 7 conforms to neither method documented at https://www.php.net/manual/en/mysqli-result.fetch-array.php Time to read that page and pick a style. Re: Error in php project Programming Web Development by Dani I'm not sure what you mean, rproffitt? It looks like he's looping through each row in the result set generated from query $q, and saving the row in an array $r for the iteration of the loop. That's what I do as well. Re: Error in php project Programming Web Development by rproffitt Line 7's call can have an object oriented or procedural style. While it looks like he's doing that, the line does not look valid to me. This is why I supplied a link to the documentation. Re: Error in php project Programming Web Development by alan.davies I'm assuming mysqli query is returning false, hence the boolean msg. Re: Error in php project Programming Web Development by rproffitt OK, here's the example for the object oriented method. $query = "SELECT Name, CountryCode FROM City ORDER by ID LIMIT 3"; $result = $mysqli->query($query); /* numeric array */ $row = $result->fetch_array(MYSQLI_NUM); Line 7 in the OP's source is incorrect in my view as the $q is well, unexpected. … Re: Error in php project Programming Web Development by alan.davies While I like the oop method, I can't see anything wrong with the procedural code other than I'd enclose the whole thing in a conditional. As in `if($q =....) ` Re: Error in php project Programming Web Development by rproffitt Then again if line 6 fails so will 7. OP needs to test for that. Re: Error in php project Programming Web Development by alan.davies >Then again if line 6 fails so will 7. OP needs to test for that. That was my point. I believe Line 6 is returning 'false'. From the manual on `mysqli_query`: >Returns FALSE on failure. For successful SELECT, SHOW, DESCRIBE or EXPLAIN queries mysqli_query() will return a mysqli_result object. For other successful queries mysqli_query() … Re: i have no idea what is wrong...hijack this log Hardware and Software Information Security by gerbil Wow.... a great collection of malware. Are you serious that Adaware did not remove some of this??? Ri-ight... Don't try a Repair with all this bad gear, you will face certain disappointment. In fact, a reinstall is called for.... but it is fixable without that if you wish to try - I look on it as an exercise for me... A reinstall will destroy … Re: why i got error when try to insert this functions.php"); ? Programming Web Development by SikoSoft Haha.. I just found this kinda funny cause I saw this issue by someone else earlier today. I posted the cause and solution here: [url]http://www.daniweb.com/forums/thread286818.html[/url] Simply put, you have white space (the new lines outside of the closing and opening PHP tags) which is causing output data to be sent. This breaks headers, so … Re: why i got error when try to insert this functions.php"); ? Programming Web Development by samsons17 yeah..but if you look carefully onto my codes,theres no such things like white spaces or what.. it is just when i inserted the functions.php code,the browser came out with error.. I really appreciate if you could just go through my codes and figure out whats wrong.. Thank You... Re: why i got error when try to insert this functions.php"); ? Programming Web Development by samsons17 huh..i dont know where is wrong,but suddenly just know when i was playing with the codes,my problem is fixed.. my head is really upside down right now..huh.. Re: why i got error when try to insert this functions.php"); ? Programming Web Development by SikoSoft Howdy. First off, glad you got it fixed. And I think you are mistaken with what whitespace refers to .. it doesn't just mean spaces, but also carriage returns, tabs and new lines. For example, here was some code which I referred to: [CODE]?> <?php[/CODE] .. from create_subjects.php The new line after the closing PHP tag is white space … Re: why i got error when try to insert this functions.php"); ? Programming Web Development by samsons17 so if it is like that.. i only allow to write that code in this way each time i want to close and want to begin the new PHP tag : [CODE] ?><?php [/CODE] instead of [CODE] ?> <?php [/CODE] is that what you are trying to say? Re: why i got error when try to insert this functions.php"); ? Programming Web Development by SikoSoft Exactly... It sounds stupid - I know.. But what actually goes on there is that by having the closing and opening PHP tags on new lines, this is sending HTML output to the browser (a new line character), and a new line character is the same as spacing or anythiing else and will break the header() function. If you plan to write code like that, you … Re: why i got error when try to insert this functions.php"); ? Programming Web Development by almostbob why close open php at all? it just adds execution time, doesnt make the code easier to read, no care has been taken with clean code Re: why i got error when try to insert this functions.php"); ? Programming Web Development by YuriyHorobey It is quite enough to put a new line (or space) before 1st <?php to get this error or add a newline after last ?> The prob is -- that is quite invisible (especially new line after last ?>) Most likelly you have fixed the issue by letting your IDE to format the code -- most of IDEs remove those new lines UPD: should any of your functions … Re: why i got error when try to insert this functions.php"); ? Programming Web Development by tyutmonster Anybody can help me with this code? My varification cannot sent a mail to email :( pls help me <? include('config.php'); // table name $tbl_name=temp_members_db; // Random confirmation code $confirm_code=md5(uniqid(rand())); // values sent from form $name=$_POST['name']; $email=$_POST['email']; $country=$_POST['country']; // … Re: the TableConfimation function cannot be detected why? Programming Software Development by victoria.lim.773124 can tell me what the problem with my code? Re: the TableConfimation function cannot be detected why? Programming Software Development by victoria.lim.773124 why cannot be shown when the program run?