PHP Nubsauce Posted June 8, 2008 Share Posted June 8, 2008 This is what I have - if (mysql_query($sql)) { } else { ?> <p class="text">Error: <?php echo(mysql_error()); ?></p> <?php } } else { ?> <p class="text">Error: You have not selected a document to upload.</p> <?php } } ?> this is what I get, even though the items are uploading correctly - Error: You have not selected a document to upload. Can anybody help? I'm new to this =p Thanks, Nubsauce. Quote Link to comment Share on other sites More sharing options...
MiCR0 Posted June 8, 2008 Share Posted June 8, 2008 <?php if (!mysql_query($sql)) { echo '<p class="text">Error:' . mysql_error()."</p>"; } ?> should be enough Quote Link to comment Share on other sites More sharing options...
PHP Nubsauce Posted June 8, 2008 Author Share Posted June 8, 2008 Micro, You rock bro. Works minty. Thank you so much. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.