Everything posted by GalaxyTramp
-
Problem regarding the speed of the website
Hi Use a tool like pagespeed to check where the problem is with the page loading times. https://developers.google.com/speed/pagespeed/
-
Live chat options?
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
-
Need some information on naming web pages
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.
- Question About CSS Resets
-
prepared statement errors with bind_result
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.
-
New member but old hand at the web design!
Hi Chris Always good to have an "old hand at the web design" contributing to the forums. Have fun.
-
Adding an anti-spam question to PHP form
Hi just check if the _POST value is equal to the answer. Something like this: if($_POST['field'] == 'Love'): // Process form else: // Error endif;
-
How to write down edge code in css ?
http://www.adobe.com/devnet/edge-code/articles/code-editing-with-edge-code.html
-
Parsing XML Response
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.
- Full time and freelance - tax advice?
-
re direct html
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?
-
Optimise PDO Statement
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) {
-
Testing area for a live website.
I just password protect the directory using .htaccess and disallow in robots.txt.
-
Testing area for a live website.
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.
-
Strange line on Website in Chrome -- What is it?
Latest Chrome on Win7 no problems here ???
-
Google bounce rate
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.
-
1 backend main site and many front end e-commerce sites
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 .
-
Slight Problem With Client/Host
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.
-
Help with uploading new website!
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!
-
Would really appreciate some feedback on my photography website
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.
-
Need a good reliable web host
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
-
Need a good reliable web host
I would recommend TSOHost. I have used them for years and they are excellent. Support is amazing too should you ever need it.
-
question php config file and location placing
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");
- Website with two different languages
-
Why is this happening in Firefox?
I am using Firefox 17.0.1 on Windows and it looks fine to me.