Member Avatar
I have this code ... My pain is that when i query the database where the username = $username, the query returns nothing but when i use the text for username i get results. Do session variables work inside functions? What can i be possibly be doing wrong?
by Amaina in Web Development ()
Member Avatar
Okay so I'm writing a code for a game and the way its currently programmed is the main menu is contained within a large function that references another function, and so on. Not too complicated. But (as you'll see with the code below) I have all the essential variables set …
by Nether_1 in Game Development ()
Member Avatar
I need to read from a txt file and then pass that array into another function which prints the data in a neat organised manner depending which type pf book it is... So if its audiobook then the book is listed under audiobook, if ebook then under ebook etc... I …
by simmyk in Software Development ()
Member Avatar
Im using the youtube api to search for videos. The information gets displayed perfectly on the page similiar to the youtube page layout. I have a function that when each div is clicked it will create an iframe fixed to the top of the page playing the video that was …
by J._1 in Web Development ()
Member Avatar
Function stored in database is not executing. I have following code for output ... page_title & page_content are database column page_content column have following data ... slider function ... Output: ... Output Expected:Hey! You have Slider
by hrushi9 in Web Development ()
Member Avatar
I want to create a page like ... With Expand and Collapse all link Along with functionality of Individual Slide Toggle Feature I already worked like ... But in this i have to create separate function for each toggle question Thanks in advance
by garyrichard in Web Development ()
Member Avatar
Sir I have following codes to create and insert data ... The codes are not working. Please help me to sort out. Thanks
by tqmd1 in Web Development ()
Member Avatar
Hey everyone, I decided to do a lot of echos to make a letter for different selections based off the user. Everything works well except that when the user selects one of the options, two different letters are shown on the page and it's only for one of the options. …
by TheFearful in Web Development ()
Member Avatar
Hi all, I've been trying to create a friendly time function for a while, it's purpose should be quite obiovus from the code below. Currently, it outputs "expired" for everything. I am so utterly confused from visualising the code and trying to figure out where the times lie in relation …
by James_43 15 in Web Development ()
Member Avatar
First - so I don't get in any trouble - I've posted a similar question on other forums but have not gotten any responses so branching out in my quest for help as well as changing the question a little. Previously I was trying to find out why calling LoadUserProfile(...) …
by Shaitan00 -1 in Software Development ()
Member Avatar
I'm having trouble solving this porblem. Write only the “snippet” of C++ code for a function definition, printColumn, which prints to the console the values in a column specified by the user in the function call. printColumn has two arguments, the 2D array and a integer column number, listed in …
by poloblue64 in Software Development ()
Member Avatar
I'm having trouble implementing this function definition, any help will be appreciated. Write only the “snippet” of C++ code for a function definition, printColumn, which prints to the console the values in a column specified by the user in the function call. printColumn has two arguments, the 2D array and …
by poloblue64 in Software Development ()
Member Avatar
i did a class for the timer precision using the timeSetEvent(). of course i can have more than 7 instances from the Timer class(with 200ms or something so small). is these a limitation or what? ... after 7 instances(maybe less) the timerid give me NULL and the GetLastError() give me: …
by cambalinho 14 in Programming ()
Member Avatar
<? $conn = mysql_connect("localhost", "your_username","your_password") or die(mysql_error()); mysql_select_db('your_database', $conn) or die(mysql_error()); ?> this is the code i have on database.php, when i run register page i get a erro.Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'your_username'@'localhost' (using password: YES) in /home/a4595523/public_html/database.php on line 2 Access denied for user 'your_username'@'localhost' (using …
by Espanhol in Web Development ()
Member Avatar
Hi. I am new to the forum and I had a question. I have looked around and haven't really been able to find exactly what I am looking for. I am looking for the code in C++ to read in a random single line with spaces from a file. This …
by kylcrow in Software Development ()
Member Avatar
Hi, I cant check combo value below. Where is the mistake? Thanks <script Language="JavaScript"> function validateR(){ var selectedCombobox=(form2.selectCombo.value); if (selectedCombobox=='All') { alert("Please select something"); return false; } return true; } </script> <select name="selectCombo"> <option value="All">All</option> <option value="Other">Other</option> </select>
by veledrom 32 in Web Development ()
Member Avatar
I have main PHP file, and dozen of less files, something like modules, they work this way (imaginary file): ... That ... and ... recur a lot in my code. It looks kinda nasty, is there no way to make this action more direct? As in (imaginary code): ... ? …
by RikTelner 20 in Web Development ()
Member Avatar
I am trying to plot the picewise function below: ... I am getting this error: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all(). I do not know how can I solve this problem?
by ALosh99 in Programming ()
Member Avatar
Hello, I'm trying to plot this function with using this values: ... I'm trying to defind r like what i know but this dose not work, I'm getting this error: only length-1 arrays can be converted to Python scalars. may you please help me in this point? Thank you
by ALosh99 in Programming ()
Member Avatar
Hi this is giri i need ur help that is i am trying to select two drop down option in html and i want compare to options if those options are equal than it as two redirect to respective page ,will u please provide with a code . thank you
by giri.b in Web Development ()
Member Avatar
Please I need someone to help me write a function for x^3-w^k/q
by Oyeh in Programming ()
Member Avatar
I wan to call oracle database function I tried this but i am getting error ... ...
by anamo in Software Development ()
Member Avatar
How to make below function to return true if success, otherwise false. I have make return on it but the result is 'undefined' when i call it to other javascript on the same page like ... **. Thank you for helping. ...
by blocker -3 in Web Development ()
Member Avatar
Show only duplicate values from array without built in function $arr = array(3,5,2,5,3,9); I want to show only common elements i.e 3,5 as output.
by rajendra87 in Web Development ()
Member Avatar
I am trying to define a function in c++, I wrote it in main function. I am getting an error : a function-definition is not allowed here before ‘{’ token}I have defined it as following : ... I dont know what dose this means. Any sugestion
by ALosh99 in Programming ()
Member Avatar
it says the following: Write a function that converts the time to 24hr format. Examples >>> time24hr('12:34am') '0034hr' >>> time24hr('12:15pm') '1215hr' so i wrote the following: def time24hr(tstr): a = tstr.split(':') am = {'12':'00','1':'01','2':'02','3':'03','4':'04','5':'05','6':'06', '7':'07','8':'08','9':'09','10':'10','11':'11'} pm = {'12':'12','1':'13','2':'14','3':'15','4':'16','5':'17','6':'18', '7':'19','8':'20','9':'21','10':'22','11':'23'} if 'am' in tstr: return am[a[0]] + a[1][:2] + 'hr' elif …
by pwolf 14 in Software Development ()
Member Avatar
Hey people I have just recently purchased an Advent ERT2250 Laptop and the function (fn) key seems to be constantly on. This means i have to hold the fn key down so i am able to use some of the keys on the keyboard properly, if i dont hold the …
by thewhitezombie in Hardware ()
Member Avatar
Can anyone please look at code and tel what is issue in ... Computer::show(); which is a base class member is not being called here.Compute::show() is define in below code. M using cfree boorland 5 compiler. orignal code is below ...
by me vicky in Programming ()
Member Avatar
Hi, I am having issues with the following code: ... Basically this script shows a notification if CSS contains HTTP content. Every now and again when the script returns "undefined" the script stops and goes no futher. However, what I don't understand is I have conditions in place for this …
by darren2005 in Web Development ()
Member Avatar
The console says arr1 is not a function! ... This type of error occurs many times and I don't definitely understand what is the problem. I know that there as methods that change arrays as splice, and some methods dont change arrays but make new arrays on the basis of …
by kouty in Software Development ()