Bravo List

Bravo List (http://www.bvlist.com/index.php)
-   TBDev (http://www.bvlist.com/forumdisplay.php?f=20)
-   -   Error msg (http://www.bvlist.com/showthread.php?t=10669)

kOni 1st January 2016 23:25

Error msg
 
Hello and happy new year!

stderr("Error", "Access denied");

I want insted this error msg to display an image.

DND 2nd January 2016 00:38

img src ? :coffee:
or make a variable that will have img src and trigger the variable from there instead of Access Denied..

kOni 2nd January 2016 00:50

Quote:

Originally Posted by DND (Post 48150)
img src ? :coffee:
or make a variable that will have img src and trigger the variable from there instead of Access Denied..


Image i think... that will fit in all resolution screens.

Chez 2nd January 2016 21:49

You can do something like this:

PHP Code:

$errorimage "<img src='pic/error.png' width='80%'>";

stderr("Error""$errorimage"); 

or

PHP Code:

stderr("Error""<img src='pic/error.png' width='80%'>"); 

and you can play with height and width values as you wish.

DND 2nd January 2016 21:52

and what did i said was... !?

Chez 2nd January 2016 21:55

Quote:

Originally Posted by DND (Post 48153)
and what did i said was... !?

I just showed him what you said above

DND 2nd January 2016 23:34

you shouldn't.. he needs to learn. not to receive everything on a silver plate.

kOni 3rd January 2016 00:14

Quote:

Originally Posted by Chez (Post 48152)
You can do something like this:

PHP Code:

$errorimage "<img src='pic/error.png' width='80%'>";

stderr("Error""$errorimage"); 

or

PHP Code:

stderr("Error""<img src='pic/error.png' width='80%'>"); 

and you can play with height and width values as you wish.


Thanks Chez but allready did this and i have this result...
http://i.imgur.com/wEExha2.png

i want only the img in full screen with out the error msg.

DND 4th January 2016 14:54

check the stderr function.. doh!

kOni 4th January 2016 23:40

Quote:

Originally Posted by DND (Post 48162)
check the stderr function.. doh!

I want the img src only for one php file, i don't want to change the stderr function because that will change all error msg to img src error msg, right?


All times are GMT +2. The time now is 13:38.

Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.