66 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for mitchell.schols

So, i'm working on a layout that has to be in xhtml.. i changed the extension from html > xhtml and i got this prompt.. "This page contains the following errors: error on line 15 at column 8: Opening and ending tag mismatch: link line 0 and head Below is …

Member Avatar for Pradosh_1
0
18K
Member Avatar for nathan.pavlovsky

Is it poor convention to create a c++ file only to store various functions, and then include it into the main.cpp? This would be done so that the functions could be used in different programs as well.

Member Avatar for nathan.pavlovsky
0
454
Member Avatar for James singizi

**i have some code to redirect a user to a page if their login details are correct. part of the code is as below but it never redirects to the specified page. help me sort this out** if($pass==$dbpass){ //safely redirect user to the home page and start a new session …

Member Avatar for jresponse
0
225
Member Avatar for hanspeare_1

Hi there, i have recieved this notice Warning: Header may not contain more than a single header, new line detected in C:\xampp\htdocs\a\Student_Edit_Handler.php on line 53 and these are my codes. Kindly help me to fix this. <?php session_start(); $session_id = $_SESSION['user_id']; if($session_id == null){ header("location:Student_Edit.php"); die(); } include 'Connect.php'; $flag …

0
214
Member Avatar for abaddon2031

I have a python code that reads several csv files and writes teh data to a single file but every time it loops back around to the next file it prints the headers again. Is there a way to stop this I can post my code if it is nessisary.

Member Avatar for abaddon2031
0
280
Member Avatar for ravi_14

cout is defined in std namespace and we also include iostream to use cout...i am confused ,please clarify this.where 1)cout is defined 2)where it is declared. and if we are including iostream ,then what is the need of STD::COUT regards,

Member Avatar for vmanes
0
526
Member Avatar for Elixir42

I have read tutorials using my google-fu on how to set up Pre-Compiled Headers, and now I wanted to clear up a few questions: If all the 'to be pre-compiled' headers go in one file - "stdafx.h" then how do you say you only want 1 of those files in …

Member Avatar for Ancient Dragon
0
203
Member Avatar for Lucaci Andrew

I kinda like the idea behind the static/fixed header, but I was wondering if there's any chance to actually extend it, and add the user information to it, like this: ![cc7912a9152d4af5365953c22bf1c3ef](/attachments/large/3/cc7912a9152d4af5365953c22bf1c3ef.png "cc7912a9152d4af5365953c22bf1c3ef")

Member Avatar for Dani
0
581
Member Avatar for Builder_1

what are the differences of string and cstring header files and how does the pre defined function of strcmp which is called string comparison works???? i know it gives 0 if string 1 = string 2 gives +ive and -ive if str1 is greater or less but it calculates that …

Member Avatar for Builder_1
0
7K
Member Avatar for infatuate

Hey guys I'm having trouble declaring a header file so I can use multiple modules. I have files named main.c foo.h and in main.c I have a <#include foo.h> but it says that it can't find the foo.h file. Why?

Member Avatar for Ancient Dragon
0
255
Member Avatar for Olagsfark

Please i got a problem linking my .cpp files together in my c++ project. I dnt knw how to specify the file path for #include . Please any help?

Member Avatar for phorce
0
215
Member Avatar for eburlea

Hi! I have a Zend project and I would like to implement a login form in the header of the site in such a way, that if a user is not logged in, he can use the site, but the form is always there, no matter what pages he access. …

Member Avatar for eburlea
0
583
Member Avatar for pham.vanmanh.50

My site is [seoitc.com](http://www.seoitc.com), we are using joomla for this site, but have 1 problem when i try auto redirect to anypage that show error: Warning: Cannot modify header information - headers already sent by (). I tried change redirect to use js but cant use same status(302,303...) same as …

Member Avatar for diafol
0
1K
Member Avatar for RockJake28

I have tons of files in this project as I am programming an ARM board. Making a tilt snake game where the snake is controlled by an accelerometer. I am using a timer interupt (handled by timer0.c) to toggle a boolean variable `extern bool toMakeFood;` stored in "includes.h" that tells …

Member Avatar for deceptikon
0
297
Member Avatar for PriteshP23

I want to display table by default in ascendind order with dynamically changing header. Here is my code. It is displaying the rows unordered. It should be in ascending at first look and then can change by column. $order = (isset($_GET['sortCostCode']) && strcasecmp($_GET['sortCostCode'], 'desc') == 0) ? 'DESC' : 'ASC'; …

Member Avatar for PriteshP23
0
244
Member Avatar for PriteshP23

How to sort by column header dynamically in the table ? Table should be sorted by all column. <?php $order = (isset($_POST['sortCostCode']) && strcasecmp($_POST['sortCostCode'], 'desc') == 0) ? 'DESC' : 'ASC'; $query = 'SELECT * FROM `Humeur_log` ORDER BY `Humeur_log`.`logid` DESC LIMIT 0 , 30' . $order; $result = mysql_query($query); …

Member Avatar for PriteshP23
0
2K
Member Avatar for AdriftUniform

Hi, I am trying to get a php variable into a header, I have managed it in another file but it not having it this time and I do not know why. Here is my php code [code=php] <?php header("Location: photo.php?albumid=".urlencode($albumid)); include_once 'title.php'; $result = mysql_query("SELECT id FROM user WHERE …

Member Avatar for LastMitch
0
661
Member Avatar for xxhaissamxx

hi i'm new to php and i have problem with header i try to redirect to home page but when i use header nothing happend i tried it in anther page and work but i don't know why it don't work here <?php session_start(); ?> <?php ob_start();?> <form action="index.php" method="POST"> …

Member Avatar for xxhaissamxx
0
151
Member Avatar for joshl_1995

Hello, I want to combine all my database table in to one line so i can put it all in the url e.g. Name | Times __________________________ test1 | 1 __________________________ test2 | 2 __________________________ This is how i want it to look in the url (Result.php?loggedin=true&links=test1-1_newline_test2-2)(_newline_ means that will …

Member Avatar for jstfsklh211
0
279
Member Avatar for viktor.jiracek.5

Hello all, I am having problems with this code. Whenever I attempt to test the login system with a valid username and password, it says this: You have successfully logged in! Warning: Cannot modify header information - headers already sent by (output started at /Applications/XAMPP/xamppfiles/htdocs/ucairwebsite/facultykadrmas/kadrmaspages/login_1/login_LDDB.php:1) in /Applications/XAMPP/xamppfiles/htdocs/ucairwebsite/facultykadrmas/kadrmaspages/login_1/login_LDDB.php on line 213 …

Member Avatar for puneet bassi
0
271
Member Avatar for Quicxic

Hello, I have a problem with a header I'm trying to make. In Main.cpp, I have this function to store the combinations of the elements of vector S: [CODE=c++]template <class T> vector<vector<T> > combinations(vector<T> S, ll k) { vector<vector<ll> > combs = ncombinations(S.size(), k); vector<vector<T> > setcomb(combs.size(), vector<T>()); for(unsigned int …

Member Avatar for Quicxic
0
198
Member Avatar for nyancat

Hello, I want to add another receiver to this contact form, he has to be bcc, and not shown as receiver but still receiving the message from the contact form: [code] <?php if(isset($_POST['submit'])) { error_reporting(E_NOTICE); function valid_email($str) { return ( ! preg_match("/^([a-z0-9\+_\-]+)(\.[a-z0-9\+_\-]+)*@([a-z0-9\-]+\.)+[a-z]{2,6}$/ix", $str)) ? FALSE : TRUE; } if($_POST['name']!='' && …

Member Avatar for pritaeas
0
146
Member Avatar for DJSAN10

Any file's primary header contains some things which are common to all operating system like entry point function, time stamp etc and then other things. What is the purpose of keeping this time stamp in the header. Thanks

Member Avatar for DJSAN10
0
445
Member Avatar for jbutardo

Hi, I have this code that will import the excel sheet to the datatable then inserts it in the database, but I have this problem. I have set the HDR to yes so that the first row will be considered as its header, but the problem now is that if …

Member Avatar for jbutardo
0
938
Member Avatar for psandip

Hello everybody, While reading C++, I have been looking into iostream header file to understand a bit more about header file organization. I am not able to understand much of the code in there. For example the header starts with #ifndef _GLIBCXX_IOSTREAM. Does this check whether _GLIBCXX_IOSTREAM has been defined …

Member Avatar for Fbody
0
398
Member Avatar for phfilly

Just something small and I'm not sure how to do it. What I want to do when the user cannot be found in my DB then it should: 1. Print out -I wanted to use a pop-up to inform the user that he has entered incorrect log in details. Which …

Member Avatar for phfilly
0
249
Member Avatar for cgull

Hello, I know this question was answered many times, and I looked at the answers but still can't find a solution. I have an index file that includes a contact form. The contact form action is itself, and if the form succeeds it should redirect to index.php?content=thankyou Althought the form …

Member Avatar for cgull
0
192
Member Avatar for James19142

i made a header file with my function declarations and the cpp file with the definitions. While making the definitions in the .cpp file i included the header and from the highlighted text the definitions seemed to match declarations in the header. In the header the the declarations were able …

Member Avatar for James19142
0
850
Member Avatar for Triarius

Can somebody please tell me what am I doing wrong? I have created a so called "game" and I have decided to add some random events. That's where I got this nasty error which I do not know how to dispose of. [CODE] #ifndef FUNC_H #define FUNC_H #include <iostream> #include …

Member Avatar for Narue
0
222
Member Avatar for Epicurus

I've created a new class called BulletList2(linked list) using the built in dialog(File>New Class) which created a header file called bulletlist.h (in project folder>include) and a source file called bulletlist2.cpp(in project folder > src). header file [CODE=c++]#ifndef BULLETLIST2_H #define BULLETLIST2_H class BulletList2 { [...] } #endif // BULLETLIST2_H [/CODE] In …

Member Avatar for Epicurus
0
3K

The End.