Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

GalaxyTramp

Members
  • Joined

  • Last visited

Everything posted by GalaxyTramp

  1. Hi Use a tool like pagespeed to check where the problem is with the page loading times. https://developers.google.com/speed/pagespeed/
  2. There are plenty of free options out there based on PHP. Just Google PHP free chat. I have used LiveAdmin before when a client had a very limited budget, it was a while ago though. http://www.liveadmin.net
  3. I for one would not recommend this. You will end up with all your pages named index.html albeit in different directories. This seems like a formula for disaster when working on them because you may find you have multiple pages open, in your case with Dreamweaver, and mistakes may and probably will happen, thinking you are modding a particular page only to find it is not the page you thought it was.
  4. Quote from Eric Meyers "this is a starting point, not a self-contained black box of no-touchiness." So it is OK to strip out the elements that are not relevant to your usage.
  5. Check out this Net Tuts article it may help you better understand the use of PDO statements. http://net.tutsplus.com/tutorials/php/why-you-should-be-using-phps-pdo-for-database-access/ bind_result is not a valid Data Object for PDO.
  6. Hi Chris Always good to have an "old hand at the web design" contributing to the forums. Have fun.
  7. Hi just check if the _POST value is equal to the answer. Something like this: if($_POST['field'] == 'Love'): // Process form else: // Error endif;
  8. http://www.adobe.com/devnet/edge-code/articles/code-editing-with-edge-code.html
  9. As Gadgetgirl has said use simplexml, assuming you are running PHP of course. Then just loop through each element of the xml. Without more info about the data being returned a more specific answer is difficult to offer. More here.... http://php.net/manual/en/book.simplexml.php Your link just throws a 404 by the way.
  10. Best just find yourself somebody to do your book keeping. Worked for me in the past and far cheaper than a full blown accountant usually.
  11. GalaxyTramp replied to emac's topic in Frontend
    Hi So what you have is a landing page with an image on it that links to your index page. Search engines are listing your index page because it actually contains some content and is considered to be more important than a page with just an image, that only links to the page containing the content anyway. Why do you need users to go to the landing page, does it contain some important information within the image? Is it really necessary?
  12. Hi all I have the following code which I use to insert/update data, from a $_POST array in this case, into a MySQL database. I have been using this for quite some time now on various projects but it is fairly time consuming to code each time the variables change. I figure it would be much better to be able to insert the values directly from the array rather than having to input the bind values over and over again, especially when the array contains a large amount of variables. I have tried all sorts to make this work and have now decided to start again from scratch with a little input from you guys. Hope you can help. <?php if (isset($_POST['Update'])): foreach($_POST as $key => $value): $key = clean_var($key); $value = clean_var($value); ${$key} = $value; endforeach; //ADD OR UPDATE DATA TO SETTINGS TABLE try { $r1 = ("INSERT INTO `settings`(`id`, `count2`, `count4`, `offset`, `max_books`) VALUES (:id, :count2, :count4, :offset, :max_books) ON DUPLICATE KEY UPDATE `id` = :id, `count2` = :count2, `count4` = :count4, `offset` = :offset, `max_books` = :max_books"); $q1 = $dbh->prepare($r1); $q1->bindvalue(":id", $id); $q1->bindvalue(":table_count2", $count2); $q1->bindvalue(":table_count4", $count4); $q1->bindvalue(":offset", $offset); $q1->bindvalue(":max_booking", $max_books); $q1->execute(); } catch (PDOException $e) { print "Error Inserting settings!: " . $e->getMessage() . "<br/>"; die(); } endif; ?> I got this far without success, am I on the right track? $array = $_POST; $insert_string = array_keys($array); $key_string = implode($insert_string,', '); $value_string = implode($insert_string,', :'); try { $r1= ("INSERT INTO `settings` (" . $key_string . ") VALUES (" . $value_string . ")"); $q1 = $dbh->prepare($r1); $q1->execute(array_values($_POST)); } catch (PDOException $e) {
  13. I just password protect the directory using .htaccess and disallow in robots.txt.
  14. I use a password protected area of my site as a "proofing bin" to show clients additions etc. 4li4s be aware that search engine bots will index these test sites unless you prevent access.
  15. Latest Chrome on Win7 no problems here ???
  16. Sorry but if they are clicking through to the third party site you obviously do not have content that they would like to, or need to view. The fix would be to encourage them not to go straight through to the third party site by adding content relevant to their needs.
  17. Yes it can be done. All you are doing is varying the design, the dynamics would remain pretty much the same for each website just change the variables to suit the product range for each particular site You mention "my client" and then go on to say "my customers" are they one and the same .
  18. Can you not simply restore the site from your backups? "our files", "his host", "our shared hosting"????? You answer your own question really in the last paragraph. If you don't want to fall out with the client then may I suggest that negotiation is the best way forward.
  19. Does the new site have a database backend? If so your designer would need to create the DB on the host which cannot be done using FTP. Just a thought!
  20. Sorry but I have to agree with Dan it looks out of date and very amateurish, not the sort of image you really want to be portraying. The coding is devoid of divs, the whole thing is built using tables, and that font is not the easiest to read. My advice would also be to get a professional job done.
  21. Just Pro CPanel hosting. £50 a year, free setup, 10gb disk space, 150gb bandwidth a month. Up to 6 sites. Meets my needs and then some. Check it out
  22. I would recommend TSOHost. I have used them for years and they are excellent. Support is amazing too should you ever need it.
  23. The way you have this structured would result in top.php being rendered twice!! Why not just take all the includes out of the config file and then include config.php in top.php Add the other files into content.php require_once("body/top.php"); require_once("body/topbanner.php"); require_once("body/leftmenu.php"); CONTENT HERE require_once("body/bottom.php");
  24. Hi Use a database to store the content then simply include a link to query the database in each language.
  25. I am using Firefox 17.0.1 on Windows and it looks fine to me.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.