334 Posted Topics

Member Avatar for giovannitao

Personal area? what are they supposed to do in that area after logging in? Just to view their ads? so then what happens to the ads that they have uploaded? it might help us to help you once you answer the questions.

Member Avatar for rotten69
0
112
Member Avatar for rotten69

Hi everyone, I am trying to compile a sencha touch 2 project to build an android app but it doesn't compile fully and successfully. When I run this command, `sencha app build native` targeting android/iOS platform. The error I get is as follows below: [WRN] [ [1000] : Yui Compressor …

Member Avatar for rotten69
0
375
Member Avatar for Helen Toma
Member Avatar for rotten69

Hey folks, I am running into a really good function in JavaScript but I wonder how it is used. I've done a bit of search on how it is used and have seen examples but none of the examples seem to work for me anyway. it throws an error at …

Member Avatar for rotten69
0
228
Member Avatar for rotten69

Hi there, am I doing something wrong with the if-statement? it either doesn't evaluate the conditions I've got in there or throw an error. $('button').click(function(){ var button = $($(this)).text(); console.log(button); // this logs the value of button as night or day depending on the button I click if(button == 'day'){ …

Member Avatar for AleMonteiro
0
329
Member Avatar for doha786

The snippet below should solve the problem you had with accessing the array $list [count($value)] which doesn't make sense to me. If you're trying to add the value of count to the array because your previous line stores the number of elements in an array to the index. The way …

Member Avatar for rotten69
0
157
Member Avatar for hwoarang69

by the sound of it, you need something like <input type="text" name="username" id="login_username" class="login_field" value="<?php if(isset($val = $_POST['username'] ) ) {echo $val; } ?>" /> This is gonna save your users from typing whatever they've typed before if something goes wrong.

Member Avatar for hwoarang69
0
386
Member Avatar for rotten69

I deleted some of the MSI Files and wasn't sure that they had affect on the installed programs. Now, I can't remove any program from the OS and some programs dont display their icons. is there a program that checks for any missing MSI files and download it possibly? I'm …

Member Avatar for JorgeM
0
137
Member Avatar for rotten69

Hey everyone, I have just uploaded my php files onto a free hosting server and tried to access the website. I got this error " mysql_fetch_array() expects a resource in parameter 1" or something like that. By the way, the files did work on my local machine. What is the …

Member Avatar for paulinetaylor85
0
195
Member Avatar for rotten69

Hey everyone, I haven't recently done my research on this yet. I can recall from memory that I did some short research on storing images in a database and also had some questions answered in the forum about it. Additionally, I was told it is not a good practice to …

Member Avatar for diafol
0
164
Member Avatar for rotten69

Hey everyone, I'm having a trouble with the navigation bar when redirecting users to other pages. For example, if a user logs in, then they will be redirected to the main page (mysite/index.php) but the url displays as mysite/login.php which is the pure PHP script that doesn't contain any HTML …

Member Avatar for rotten69
0
229
Member Avatar for asif49

Try changing the atrribute's place. For example, [CODE] <input type="image" src="image.jpg" onclick="func('hello')" /> [/CODE] Is the image showing? Is it in the same directory as your HTML file/files?

Member Avatar for ojemuyiwa
0
3K
Member Avatar for LastMitch

Hmmm, Enable the error reporting function so you will be shown if there are any errors. `error_reporting(E_ALL);` You've got the class name as sandwich and construct as operation (change the name of the function to sandwich). In OOP, you need to have the constructor name corresponding to the class name. …

Member Avatar for LastMitch
0
143
Member Avatar for rotten69

Hi there, I have been trying to fix the problem in the below code for a long time, it did work for me at some point. Then, it suddenly stopped storing user's details in a session. $user = $_POST['username']; $pass = $_POST['password']; $query = "SELECT username, password FROM USERS WHERE …

Member Avatar for diafol
0
211
Member Avatar for rotten69

Hey guys, I don't see anything wrong in the function but mysql_result is complaining about the parameter value passed to it. function question_exists($question_id){ $question_id = (int)$question_id; return ( mysql_result(mysql_query("SELECT COUNT('id') from `posts` WHERE `id`=$question_id"),0) == 0) ? false : true; // if the question doesn't exist (equal to ZERO) then …

Member Avatar for rotten69
0
131
Member Avatar for tapuwa2002
Member Avatar for diafol
0
185
Member Avatar for vyrenmedia

To answer your question, here is an example. I hope the example I'm giving will help you. <?php $name = "Dani"; if($name== "Dani"){ echo $name; => this will output Dani $name .= " Web"; => this will concatenate the string " Web" to the "Dani" } echo $name; => this …

Member Avatar for junior_rosul
0
134
Member Avatar for rotten69

Hi everyone, I'm making my first jQuery mobile app and using a fixed bottom navbar. But the app is acting a little weird. When I tap the background twice, the navbar disappears or moves up a little. how can I fix this problem?

Member Avatar for rotten69
0
128
Member Avatar for rotten69

I'm using jQuery for mobile and making the app show users a dailog box to let them enter their credentials when they want to log into the app. Ok. it redirects them to the home page but the url stays as mysite.com/login.php rather than mysite.com/index.php This removes the menu bar …

Member Avatar for rotten69
0
168
Member Avatar for rotten69

Hey there, I'm just having a tiny problem with this function. the toggle function works fine but what I want to do is to display the date whenever particular buttons are clicked or active. function showDate(element){ if(element == "#selection3" || element == "#selection4"){ document.getElementById("dateinput").style.visibility = "visible"; }else{ document.getElementById("dateinput").style.visibility = "hidden"; …

Member Avatar for rotten69
0
290
Member Avatar for siyajoshi
Member Avatar for rotten69

Hey everyone, I'm having trouble to get this code to work as I wanted. My application is running on the top jQuery for mobile framework. The message I'm getting is this "undefined". I enter the right username and password but don't know what is undefined. <?php include('funcs/connector.php'); $port = new …

Member Avatar for rotten69
0
122
Member Avatar for paidah

Even though it is an easy task, we still need to have a look at your work you've done. I will get you started on that one. Next time, do post your code that you have trouble with. for( int i=0; i<150; i++){ System.out.println("the output is " + i); } …

Member Avatar for JamesCherrill
0
143
Member Avatar for rotten69

hey guys, I don't seem to understand why this code is throwing a type error at me. It is saying the variable is undefined. The error I'm getting is this **TypeError: datasplits is undefined datasplit2s = datasplits.split(":");** var urlphp = 'ajaxgamesperday.php?&start_date=' + startDate + '&end_date=' + endDate; $.ajax({ url: urlphp, …

Member Avatar for rotten69
0
172
Member Avatar for semere mehari
Member Avatar for rotten69
0
73
Member Avatar for rotten69

hi there, I just have a few questions about HTML5 and one of its features that is geolocation. My group members and I are thinking to develop a social-networking IOS application that lets you check-in only if you're using a mobile phone. The core idea is that if you're at …

Member Avatar for chrislim2888
0
284
Member Avatar for rayidi

Have a look at HTML 5 feature for GEOLOCATION... Or use IP Address to track your users in PHP... I hope this helps you a bit..

Member Avatar for chrislim2888
0
349
Member Avatar for rotten69

Hi there, I'm supposed to integrate different sources of data into one database. I am given these types of sources: * .txt * .csv * .html * .xls * access file as well. what attributes should I be looking at to construct a global schema because all of them have …

Member Avatar for debasisdas
0
159
Member Avatar for rotten69

Hello everyone, I'm just wondering if there is another of calling functions in a different php file without making the app run strangley. So what I have got are a few forms without specifying their action. <?php 1- checking for the fields 2- if they are not empty and so …

Member Avatar for adam.adamski.96155
0
208
Member Avatar for shhh

Apparently, you don't have a function called session_is_registered.In the case that it is defined in another file in the same directory, then add this line in the top of the page include("YourFileName.php"); I hope this helps.

Member Avatar for rotten69
0
335
Member Avatar for Boby Smith

OK. Since the code isn't posted to see how things are structured, I can give a hint how you can achieve this. I'm assuming you've set up your database tables and the script to retrieve the data from the tables. Store the data retrieved from the database in an associate …

Member Avatar for Bachu
0
104
Member Avatar for rotten69

Hey everyone, I'm just wondering how the read more feature is achieved in PHP. It is like facebook where it displays a couple of lines then if you're interested in reading more about the status or article click 'read more link' which expands the box. Cheers,

Member Avatar for JorgeM
0
148
Member Avatar for rotten69

Hi everyone, When I purchased my hard drive, its size was 1TB. Iformatted it a few times and I don't know why and how it has lost 70GB. Is there a way that I can get it back up to its original size? if yes, Will I be able to …

Member Avatar for technoknol
0
2K
Member Avatar for rotten69

Hey everyone, I'm using sessions in my application which retrieves the questions and answers asked by users. The tricky part here is how I can know how to allow users that they can edit and delete their own posts. As far as it is concerned, I have got this idea …

Member Avatar for broj1
0
178
Member Avatar for priya667

Like simplypixie said, You won't be able to run PHP code within HTML files (e.g index.html) so the files have to be with the extension of .php (e.g index.php). The reason being is that you're telling the browser to interpert PHP code within HTML which doesn't make sense to the …

Member Avatar for diafol
0
2K
Member Avatar for rotten69

Hi everyone, I'm sure there are people who are using highCharts framework. I'm having a trouble passing the values to jquery code from PHP json. Your help is so appreciated. This is my php section <?php header('Cache-Control: no-cache, must-revalidate'); header('Expires: Mon, 01 Jan 2013 00:00:00 GMT'); // The JSON standard …

Member Avatar for rotten69
2
417
Member Avatar for rotten69

Hey everyone, I was doing a search on good tutorials on how to use the mail function. I thought it would be as easy as what PHP api tells me how to use it. I stored the value of mail() in a variable if the variable is true then I …

Member Avatar for rotten69
0
245
Member Avatar for rotten69

Hi everyone, Has anyone had this issue that I'm having ATM? It is about getting the website to function properly using jQuery for mobile for UI. OK. When I added jQuery for mobile in the files, the behaviour of my websites is changing. It basically makes the website not function …

Member Avatar for rotten69
0
131
Member Avatar for rotten69

Hi everybody, I'm wondering where I went wrong. The idea is I'm trying to get data from the database and display in this format Question 1: Answer: Answer: Answer: Answer: Question 2: Answer: Question 3: No answers etc.. foreach($posts as $post){ $id = (int)$post['id']; $comments = get_comments($id); //getting the answers …

Member Avatar for rotten69
0
355
Member Avatar for punitjain.87

No you can't edit PDF files using a text editor like notepad++. Microsoft office word makes pdf files but I think it doesn't read/edit them. My suggestion for you is to download adobe acrobat x pro to edit your pdf files. You don't need to purchase it if you don't …

Member Avatar for megan1988
0
1K
Member Avatar for JameB

I think for restaurant you'd want static pages and won't be processing orders. so it should cost much. Again, it is dependent on the requirements.For example, how much graphic design you want done and how much coding you want done.

Member Avatar for juliagarner
0
182
Member Avatar for rotten69

Hi everyone, It is just a really serious concern about a feature. Everytime I post a thread, I'm asked to share it on social media networks. It is really irritating. My message to the Daniweb management is that if you want to keep this feature then let users "us" to …

Member Avatar for Reverend Jim
0
312
Member Avatar for rotten69

Hey everyone, I'm learning how to use cakePHP framework. I'm just wondering that how one gets so familiar with a bunch of API's quickly. Do people memorise them at all? I ain't going to because I don't see the point in memorising some things that I even won't need to …

Member Avatar for iamthwee
0
172
Member Avatar for felgall

Well, thanks for sharing this snippet. Heheh.. I will have a look at it later and see how useful it is.

Member Avatar for Troy III
0
363
Member Avatar for green_ning

Ok. You're asking about two completely different programming languages. A few things to know about them are if you master your java skills, then you can: 1-make computer apps and software that run on any platform like windows, Linux and Mac as long as you have the JRE(java run environment) …

Member Avatar for green_ning
0
272
Member Avatar for on93

Let us know what we can help you with. are you askin us for an industry project or a fun project to work on during a holiday?

Member Avatar for rotten69
0
84
Member Avatar for alvin.decker
Member Avatar for javaprog200

@rubberman, since you're open about your experiences in life, I want to ask you a question. How did you become an engineer without having a tertiary degree? Because there're things that we learn from life but we dont get them taught at uni and vice-versa. I guess Uni is a …

Member Avatar for rotten69
0
177
Member Avatar for rotten69

Hi everyone, I just found something interesting in my code but I ain't sure why JavaScript. var input= 0; // But in my case, the input variable is getting the value from a field in a form if(!Number(input)){ document.write('it is not a ZERO'); } This is something similar to my …

Member Avatar for rotten69
0
148
Member Avatar for deovratb

What are the things that you're struggling with? By the way, the title of the thread is NOT relevant to the body!!!!! Why is that?

Member Avatar for bettybarnes
0
50

The End.