PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
mysql_function(): WARNING: This extension is deprecated as of PHP 5.5.0, and will be removed in the future. Instead, the MySQLi or PDO_MySQLextension should be used. See also MySQL: choosing an API guide and related FAQ for more information.
I would use MichaelR's if I were doing it. I just gave you the quick fix. I would assume that you may want to specify the height as well, and with the array you have access to all the info to use/echo without having to change your list() arguments. I can only remember once or twice a long time ago when I've used list().
mysql_function(): WARNING: This extension is deprecated as of PHP 5.5.0, and will be removed in the future. Instead, the MySQLi or PDO_MySQLextension should be used. See also MySQL: choosing an API guide and related FAQ for more information.
Strange...it still doesn't seem to be working. If I enter the width manually, it works fine. I will lay out the whole code of what I'm attempting to accomplish and maybe one of you can spot something I cannot:
I echo to make sure I'm getting the correct width. Should that not set the width? As I stated earlier if I set the width (ie "width: 179px;") it will work fine. With the PHP its inheriting the the width instead of inserting 179px. I display the width at the bottom just to be sure I'm getting the correct width. I'm confused why this is not working. Any ideas?
When you check to see that your php code outputs the correct value, does it output eg "179px" or just "179"? If the latter, then you need to add "px;" to the width attribute.
Thank you so much cpetercarter! That was it. Me = I kept attempting to concatenate the variable with .px instead of leaving it outside the variable. Lets not say how long I worked on this simple problem