NONAME_2 Posted November 21, 2012 Share Posted November 21, 2012 hi all, i have some tables that users can insert-into-, update-on-,etc-..- them. but if users select from those table,it doesnot show what has modified till i drop and re-build it, so i should restore data with load data; then it works fine. -but when i use for example:MySqlQueryBrowser, with same query that's correct and fine-. i eye for db connection way. but this code on the other server is good. tnx a lot! Quote Link to comment https://forums.phpfreaks.com/topic/270982-magic-if-table-dropsit-solves-results-are-different-between-mysqlquerybrowser-and-my-output-code/ Share on other sites More sharing options...
Muddy_Funster Posted November 21, 2012 Share Posted November 21, 2012 Sorry. What's your point caller? Quote Link to comment https://forums.phpfreaks.com/topic/270982-magic-if-table-dropsit-solves-results-are-different-between-mysqlquerybrowser-and-my-output-code/#findComment-1394068 Share on other sites More sharing options...
NONAME_2 Posted November 27, 2012 Author Share Posted November 27, 2012 tnx for your attention. point caller: $mysql = pdodb::getInstance(); sample: $stmt = $mysql->Prepare(CreateSelect()); Quote Link to comment https://forums.phpfreaks.com/topic/270982-magic-if-table-dropsit-solves-results-are-different-between-mysqlquerybrowser-and-my-output-code/#findComment-1395441 Share on other sites More sharing options...
Muddy_Funster Posted November 27, 2012 Share Posted November 27, 2012 that really doesn't help us much. take your time and break it down fully : what exactly are you trying to achieve? what is happening that should not happen? what is not happening what should happen? what code do you have that is relevent to this problem (post it up inside code tags)? what tables - if any - are you using and what is the structure of them? Once you have all that up then we will be able to help you properly. without it it's just guesswork and assumption - neither of which make for very good coding. Quote Link to comment https://forums.phpfreaks.com/topic/270982-magic-if-table-dropsit-solves-results-are-different-between-mysqlquerybrowser-and-my-output-code/#findComment-1395469 Share on other sites More sharing options...
NONAME_2 Posted November 27, 2012 Author Share Posted November 27, 2012 ok. i will post it. tnx. Quote Link to comment https://forums.phpfreaks.com/topic/270982-magic-if-table-dropsit-solves-results-are-different-between-mysqlquerybrowser-and-my-output-code/#findComment-1395490 Share on other sites More sharing options...
NONAME_2 Posted December 24, 2012 Author Share Posted December 24, 2012 Hi, i upload my files here. main file:test/report/StatisticallyReport.php. by the way, it seem it is not relevanted so much to my code; so these codes works on my virtual machine fine! my db stracture was sent. i'm biginner ,but i guess there is a problem in cache or permission db like this link or this one and etc...-DB- tnx a lot(^!^) Quote Link to comment https://forums.phpfreaks.com/topic/270982-magic-if-table-dropsit-solves-results-are-different-between-mysqlquerybrowser-and-my-output-code/#findComment-1401109 Share on other sites More sharing options...
Muddy_Funster Posted December 27, 2012 Share Posted December 27, 2012 I don't download random zip files from anywhere. and you still haven't given any in deapth info about the problem. Quote Link to comment https://forums.phpfreaks.com/topic/270982-magic-if-table-dropsit-solves-results-are-different-between-mysqlquerybrowser-and-my-output-code/#findComment-1401549 Share on other sites More sharing options...
NONAME_2 Posted December 29, 2012 Author Share Posted December 29, 2012 (edited) Hi Muddy_Funster, sorry about link, i hope this works for you: http://rooyeshco.ir/adine/test.zip in line 96 and 102{test/report/StatisticallyReport.php}, i use two simple query to get value of rooms was delivered. but my results are different from phpMyAdmin or MySqlBrowser results until i drop and re-built my table(here is => eskan). there is some Insert and Update Codes in other .php file like below: if(isset($_POST["Delivery"])){ $RecID = $_POST["Delivery"]; $mysql->Prepare("SELECT delivery From $t6 WHERE RecID=? and delivery=1"); $res = $mysql->ExecuteStatement(array($RecID)); if($res->rowCount() == 0){ $TodayDate = date("Y/m/d"); $mysql->Prepare("UPDATE $t6 SET delivery=1, DateIn=? WHERE RecID=?"); $res = $mysql->ExecuteStatement(array($TodayDate,$RecID)); $Message = "<font color='green' size=4>Delivered</font>"; $mysql->audit("A Delivery to StudentNum " . $RecID); } else $Message = "<font color='#ff0000'>Already has been Delivered;</font>"; } i'm not persisting on my code, because of Fine works on the other machines and now same problems on the other tables;tnx. Edited December 29, 2012 by NONAME_2 Quote Link to comment https://forums.phpfreaks.com/topic/270982-magic-if-table-dropsit-solves-results-are-different-between-mysqlquerybrowser-and-my-output-code/#findComment-1401966 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.