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. Link to comment https://forums.phpfreaks.com/topic/109214-solved-if-ya-got-time-plz-help-error-message-not-working-correctly/ 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 Link to comment https://forums.phpfreaks.com/topic/109214-solved-if-ya-got-time-plz-help-error-message-not-working-correctly/#findComment-560257 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. Link to comment https://forums.phpfreaks.com/topic/109214-solved-if-ya-got-time-plz-help-error-message-not-working-correctly/#findComment-560260 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.