This is a discussion on "Why displaying nothing?" within the PHP Forum section. This forum, and the thread "Why displaying nothing? are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
Why displaying nothing?
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
|||
|
|||
|
Why displaying nothing?
Hi
I have copied the codes from the book "Build your own Database driven Website" from sitepoint, not sure those codes display nothing while calling it on the browser http://localhost:8888/gallery/index.php? Any inputs and helps will be much appreciated!!
|
|
|
|
#2
|
||||
|
||||
|
Re: Why displaying nothing?
So you have PHP and MySQL configured to work on your computer?
If you aren't getting anything then you probably have a fatal PHP error. Try taking away the error suppression ( the @ symbol) before @mysql_connect and @mysql_select_db and check you PHP error log to see what errors you are getting. I've had a look at the code and can't see any blatent errors.
Last Blog Entry: The wannabe juggler's quest (Oct 27th, 2007)
|
|
#3
|
|||
|
|||
|
Re: Why displaying nothing?
try commenting out parts of the code which could be causing the problem
|
|
#4
|
|||
|
|||
|
Re: Why displaying nothing?
also, its probably just me, but for an 'or' condition I use || and for an 'and' condition I use &&, but you probably can do it the way you do.
|
|
#5
|
||||
|
||||
|
Re: Why displaying nothing?
I had this before
you need to cinfigure you php.ini if you want i'll send you mine
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
|
|
#6
|
|||
|
|||
|
Re: Why displaying nothing?
I appreciated all you guys comments!!!
|
|
#7
|
||||
|
||||
|
Re: Why displaying nothing?
Did you want it?
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
|
|
#8
|
|||
|
|||
|
Re: Why displaying nothing?
|
|
#9
|
||||
|
||||
|
Re: Why displaying nothing?
here you go
you need to rename it obviously
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
|
|
#10
|
|||
|
|||
|
Re: Why displaying nothing?
Can I use yours to swap mine php.ini?
|
|
#11
|
||||
|
||||
|
Re: Why displaying nothing?
yeah that was point
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
|
|
#12
|
|||
|
|||
|
Re: Why displaying nothing?
I saw the maximum upload filesize and post maximum filesize : 2M and 8M in your php.ini, but when I upload 1.1MB mp3, I got this error:
Database error storing file: Got a packet bigger than 'max_allowed_packet' bytes |
|
#13
|
||||
|
||||
|
Re: Why displaying nothing?
i think you need twice as much for each download or something
change them to something like 30M and see what happenes
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
|
|
#14
|
|||
|
|||
|
Re: Why displaying nothing?
I have increased them and restarted the apache, mysql. Still got the same problem.
Database error storing file: Got a packet bigger than 'max_allowed_packet' bytes |
|
#15
|
||||
|
||||
|
Re: Why displaying nothing?
database error?
are you trying to store a file in a database or something :S
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
|
|
#16
|
|||
|
|||
|
Re: Why displaying nothing?
Yes. I wanted to insert records to store in the database.
|
|
#17
|
||||
|
||||
|
Re: Why displaying nothing?
you can insert strings and integers but not files.
At least not that i know of
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
|
|
#18
|
|||
|
|||
|
Re: Why displaying nothing?
I have inserted records of the small file size without any problems in database, but the file size beyond 2MB.
|
![]() |
| Thread Tools | |