|
please help!
this is the errors
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/content/12/8488612/html/users/1000.php:2) in /home/content/12/8488612/html/users/1000.php on line 3
Warning: Cannot modify header information - headers already sent by (output started at /home/content/12/8488612/html/users/1000.php:2) in /home/content/12/8488612/html/users/1000.php on line 20
modified 6-Jul-12 13:39pm.
|
|
|
|
|
A number of operations can not be performed once the HTML header has been opened; session_start() should be called well before anything else that generates HTML code, such as a simple echo "Hello" .
As a test, comment out session_start() and see what gets emitted, that is likely to tell you where you went wrong.
And why was your message type "General", rather than "Question"?
|
|
|
|
|
Are you including this PHP file inside another file? if so make sure that include statement is the first statement in that file
Niranga De Silva
Software Engineer @ 99X Technology
|
|
|
|
|
Perhaps you have used Unicode for designing your webpage,
beside that "session_start()" must be the first line of your web page . so some times one code has been added to the page for encoding purpose. it's better to use standard PHP editor like "Zend Studio" to see and remove this code before session_start()
|
|
|
|
|
Hi
I am new to linux and was supposed to use Database.
I don't no much about that.
Can anyone please tell me how can I create, insert, update and delete data from a database.
Thanks in advance
-- modified 6-Jul-12 7:16am.
|
|
|
|
|
There is no way we can provide an answer to a question like this. The first thing you need to do is to decide what data you need to keep in your database, and then start thinking about what to put in your tables and how the information may need to be linked. However, if you have no experience of databases you may need to do some studying in advance - some of these links[^] may be useful to help you get started.
|
|
|
|
|
Can anyone find an error in this query ?
try {
$dbh = new PDO(' ….. ');
$stmt = $dbh->prepare('INSERT into customer (name) values (:name)');
$stmt->bindParam(':name', 'lilly');
$stmt->execute();
$dbh = null;
} catch (PDOException $e) {
print "Error!: " . $e->getMessage() . "<br/>";
die();
}
It doesn't display any error and neither does it perform the insert??
Thanks
|
|
|
|
|
Strange, when I run the code I get this error message:
Fatal error: Cannot pass parameter 2 by reference in ...
If you look at the PDOStatement::bindParam() documentation, the second argument is passed by reference, so I guess you can't pass a literal value by reference.
|
|
|
|
|
hi,
How to implement amazon product advertise api to my website search field ?
any one help to me
Thank u
|
|
|
|
|
|
hi,
i have a html data(more than window size) as php variable .
i want to load that data on scrolling down .
any one can help to me....
thank u.
|
|
|
|
|
Why not just output it all and let the browser take care of the scrolling? All browsers do an excellent job of scrolling if they need to do so.
Peter
Software rusts. Simon Stephenson, ca 1994. So does this signature. me, 2012
|
|
|
|
|
Thank u for your reply
total data is loaded at a time not like that for reference www.gobuy.co.uk check that after search.
|
|
|
|
|
Are trying to get some sort of loading like a story line of social sites, where more data is loaded when you scroll down.
If so then you will have to create some sort of paging mechanism in the PHP side, so that jQuery can send ajax calls to load the next section of data. Your PHP site can then return the data based on the page provided by the ajax call.
|
|
|
|
|
just search on google
here is a link[^]
|
|
|
|
|
Hi.
I am trying to import a excel spreadsheet to mysql table but the date field is not importing correctly.
I have changed the format of date in excel to YYYY-MM-DD and now after importing it to the database, I am getting 2012-00-00 in the table instead of 2012-02-23
Any ideas to solve this?
Thanks
|
|
|
|
|
Excel stores dates internally as double precision floating numbers (Microsoft DATE[^] format) and uses the format specification only when displaying dates.
So your import function must convert the DATE format into the MySQL date format.
|
|
|
|
|
you should format with "Y-m-d"
|
|
|
|
|
Hello guys,
I want to be able to send mail in html format like the one below but I get the raw html in my mail.
include_once "Mail.php";
function isMailSent($from, $to, $subject, $body) {
$host = "mail.domain.com";
$username = "email@domain.com";
$password = "password";
$headers = array ('From' => $from,
'To' => $to,
'Subject' => $subject);
$smtp = Mail::factory('smtp',
array ('host' => $host,
'auth' => true,
'username' => $username,
'password' => $password));
try {
$body = '<p><img src="/images/logo.png" /></p>' . $body . '<p>Thank you!</p>';
$mail = $smtp->send($to, $headers, $body);
if (PEAR::isError($mail)) {
return "<p>" . $mail->getMessage() . "</p>";
} else {
return "<p>Message successfully sent!</p>";
}
} catch (Exception $e) {
return $e->getMessage();
}
}
Please help.
|
|
|
|
|
I don't know much about PHP, but you must pass the proper content type in the mail header (adjust the charset and encoding if necessary, e.g. charset us-ascii with encoding 7bit):
$headers['Content-Type'] = "text/html; charset=\"UTF-8\"";
$headers['Content-Transfer-Encoding'] = "8bit";
|
|
|
|
|
Thanks a million.
I will do what you said!
|
|
|
|
|
I'm having trouble connecting to mysql.com or any of its subdomains. The internet connection here is very slow anyway (Having average speed of 4kBps). But I can painfully connect to CP and many other sites (glad CP doesn't use big images, great site using mostly CSS+JS)
I am desperate here! I need to download the MySQL ODBC driver (Win7) somehow.
modified 18-Jun-12 11:14am.
|
|
|
|
|
It doesn't seem to be working for me either.
Have you tried any of the mirrors?
The European mirror seems alive and well: http://gd.tuwien.ac.at/db/mysql/[^] - don't know if it has the driver you want, but it is working.
Ideological Purity is no substitute for being able to stick your thumb down a pipe to stop the water
|
|
|
|
|
|
It was no problem - my internet may not be the fastest around, but I'm glad to say the days of 4Kbps are well and truly behind me!
I remember them though: just downloading a single picture took all damn day...
Ideological Purity is no substitute for being able to stick your thumb down a pipe to stop the water
|
|
|
|