I get this error with session_start:
Warning: session_start(): Cannot send session cookie - headers already sent by (output started at C:\Inetpub Apache\wwwroot\ad\cache\tpl_ca_classic.overall_header.php:7) in C:\Inetpub Apache\wwwroot\ad\test_cartanataltestproximainc.php on line 1
And values...
no, if I use session start I get errors everywhere and also it says in php.net that session_start doesnt need to be called everywhere. Is it is not called session_start will be called automatucally.
:S
Yes I got it.
I always used ASP now I was forced to migrate a web app to PHP.
I got somre problems with this, I have this code:
$_SESSION["test_session"] =1;
But when I got to my sencond page whe session variable value is null...
how can that be?
Tnx!
Tnx but Im having probles:
$_SESSION("totaltest_session")== "0";
$_SESSION("test_session")==1;
$_SESSION("pregunta_session")==1;
Error:
Fatal error: Call to undefined function: () in C:\Inetpub Apache\wwwroot\ad\test_cartanataltestinc.php on line 13
Why is that?
Tnx
Hi!
I made a online test application where I need to work with session variables.
I got this code
session_start();
if (!session_is_registered("test_session"))
{
session_register("totaltest_session");
session_register("test_session");
session_register("pregunta_session")...
Hi!
I got mys site which is running ok at my localhost.
I upload it and when I want to access it will return:
SELECT * FROM horoscopo where dia=09 and mes=12 and ano=2005 order by id asc limit 0,30 query failed.
The database, username and password are ok cause if I change anyone os those I...
ITnx for the reply but I got two columns in the database, one with lowerdate(fecha1) and one with upperdate(fecha2) what I want to do is to select the recorset where the selected date value is greater than fecha1 and smaller than fecha2.
Tnx
Hi!
I'm migrating my site form mssql & asp to mysql & php and I'm having a problem with this sql sintax.
What I do is select a value between 2 dates and show the results but I cannot figure how to do it in mysql.
My mssql sintax is:
$sqlstm="SELECT * FROM vidas_pasadas where...
I did it
strSQL="SELECT tblAuthor.Username, tblAuthor.Author_ID, tblThread.Author_ID,tblThread.Topic_ID, tblThread.Thread_ID, tblThread.Message_date from tblAuthor, tblThread left Outer Join tblTopic on tblTopic.Forum_ID = tblTopic.Forum_ID WHERE " & strDbTable & "Author.Author_ID = " &...
But whi it takes too long to retreive data?
I am working with my Localhost and the database is at my hosting provider and when I execute the site my site begins to download too much from the db before showing data.
Is that normal when you work with a remote db?
Tnx
This is the original:
SELECT top 1 tblAuthor.Username, tblAuthor.Author_ID, tblThread.Author_ID,tblThread.Topic_ID, tblThread.Thread_ID, tblThread.Message_date FROM tblAuthor, tblThread WHERE tblAuthor.Author_ID = tblThread.Author_ID AND tblThread.Topic_ID IN (SELECT top 1tblTopic.Topic_ID...
Honestly I dont know.
How can I translate the MSSQL sintax?
This is a forum sintax and it should display forum title, number of threads, number of topics and las author name but I cant get the author name displayed, it will show the first user on the DB (the admin)
Tnx!
Hi!
I am migrating from MSSQL to MySQL and I'm having trouble converting the SQL strings.
I got thins:
'' strSQL = "SELECT top 1" & strDbTable & "Author.Username, " & strDbTable & "Author.Author_ID, " & strDbTable & "Thread.Topic_ID, " & strDbTable & "Thread.Thread_ID, " & strDbTable &...
Hi!
I uninstalled an application and at the end I manually removed the app directory, que thing is that everytime I reboot my PC an instance of Winsows Installer will startup trying to finish uninstalling the app.
How can I do to prevent windows installer to open?
I tryed msconfig and it doesnt...
Hi!
I changed my PC and now if I have my PC on and I turn the monitor power on it will reset my PC!~
It doesnt happen with the old PC, does anyone knows why its doing that?
Tnx!
Tnx guys, I am not writing it from the query analizer I am creating it thru a visual basic net application. I've tryed other SP and I they worked. Do you think that if I remove the GO it will work?
Tnx!
Hi!
I'm do not program SQL and I need to create a stored procedure from this sql syntax:
varDate = date()
varDay = DatePart("d",varDate)
varMonth = DatePart("m", varDate)
varYear = DatePart("yyyy", varDate)
"SELECT * FROM adefemerides where mes="&varmonth&" and dia=" &varday &" and...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.