Parse error: syntax error, unexpected T_STRING in app/design/frontend/base/default/template/catalog/product/new.phtml on line 37 [closed]

This is caused by the third param of your Mage::helper(‘core/string’)->truncate() call, where the ending string delimiter seems to be missing. You get the unexpected T_STRING error, because the interpreter reaches the next string (‘short’), while knowing that the previous string end wasn’t found yet. Replace this line <h3 class=”product-name”><a href=”https://stackoverflow.com/questions/10328245/<?php echo $_product->getProductUrl() ?>” title=”<?php echo … Read more

program to delete certain text which is predefined in another file from a file in c++

Show some research effort when you post a question here. #include <iostream> #include <unordered_set> #include <fstream> int main() { std::unordered_set<std::string> mySet; std::string word; std::ifstream file1(“myFile1.txt”); if(file1.is_open()) { while(file1 >> word) mySet.emplace(word); file1.close(); } std::ifstream file2(“myFile2.txt”); if(file2.is_open()) { while(file2 >> word) { auto look = mySet.find(word); if(look != mySet.cend()) mySet.erase(look); } file2.close(); } std::ofstream outputFile(“Out.txt”); if(outputFile.is_open()) … Read more

Multiple array json parsing under a object in android [closed]

Use from this link and in doInBackground method you must have these code: if (jsonStr != null) { try { JSONObject jsonObj = new JSONObject(jsonStr); JSONObject data = jsonObj.getJSONObject(“data”); // Getting JSON Array node JSONArray ambulance = jsonObj.getJSONArray(“ambulance”); // looping through All ambulance for (int i = 0; i < ambulance.length(); i++) { JSONObject c … Read more

I keep getting these kind of errors in terms of HttpUrlConnection and BackGroundTask in android

Have you add <uses-permission android:name=”android.permission.INTERNET” /> into AndroidManifest.xml ? You can try code here send to server with method post. @Override protected Void doInBackground(Void… params) { try { HttpClient httpClient = new DefaultHttpClient(); HttpPost httpPost = new HttpPost(“https://192.168.2.95/LAfinal/api/login_student.php”); // ADD YOUR DATA List<NameValuePair> nameValuePairs = new ArrayList<>(); nameValuePairs.add(new BasicNameValuePair(“id”, _activity.LOGINED_USER_ID)); Log.v(“HTTP”, “Response__activity.LOGINED_USER_ID: ” + String.valueOf(_activity.LOGINED_USER_ID)); … Read more