Jump to content

Csharp

Members
  • Posts

    37
  • Joined

  • Last visited

About Csharp

  • Birthday 12/02/1990

Profile Information

  • Gender
    Male
  • Location
    Munich, Germany

Recent Profile Visitors

2,705 profile views

Csharp's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. First, you should never use a column to store 2 types of data. Otherwise you'll quickly stop understanding what you're doing yourself. > How to I allow the ID number to be a duplicate, but not the ID number? Like this, this makes no sense. A user id should always be unique, that's what an ID is good for. Now, you should use two different fields for the auto numeric ID and the Phone number. This way you can make both UNIQUE (depending on the database vendor) and can manage users with their ID rather than using an absurd field with silly data.
  2. Maybe sharing the problematic code would actually help troubleshooting this. It's kinda hard to know what you're doing wrong if we don't know what you're doing in the first place.
  3. I wanna give you the same advice Google gives you. Don't build your website for the search engines, build it for the users. Search engines are built towards helping users finding what they want, and if that's your website - they'll find it. If you're gonna start a website thinking how to SEO it, you're definitely doing it wrong and doomed not to rank. Watch this video. Specially the 2 minute mark is interesting to you. If you just wanna blog you can try any of the popular platforms like Blogger, Wordpress, Tumblr or Medium. Even a simple Facebook page would do the job.
  4. You need to write and read it to a file / Database or any other persistent saving mechanism. There's no global variable for that. But you can achieve something similar with classes. Hope this helped.
  5. What do you collect province and city for if they do not have tables in the DB? What does a users city / country have to do with his login data?
  6. Well, this makes the problem pretty straightforward. Either the $curly object is not defined or it has no function called footer. What class is curly? Even though it's not recommended practice, could you try to var_dump $curly?
  7. This is usually the kind of stuff that happens when you send something offshore. It works badly and usually the people responsible for it don't feel responsible after doing it. Let me explain your issues here (since there is always 2 with this kind of bugs): The code is somewhere generating an URL that is broken (like mac_gyver said - he's response is totally valid) The code does not correctly detect the broken URLs and redirect them. A well written application would have noticed and issued a corrected canonical URL or a 301 redirect when somebody accesses the page with such an obviously incorrect URI. You should use some kind of system that filters unused parameters out anyway in order to avoid to get duplicate content issues EVERYWHERE.
  8. I hear people swear it helps SEO. But you should be more concerned about your user, first thing would be getting all the other stuff right before focusing on pretty URL.
  9. Ok. I would try the following... Add an echo to the first line and see if it prints. If it does, you just keep moving it down the script until it stops appearing. I would also use error_reporting(E_ALL); - looks a bit cleaner in my opinion You can also use the developer tools on your browser to check if the server is returning a 500 error See if one of those gives you a hint what line is failing / which error you're actually having.
  10. Why do you use require_once('/home/*REMOVED*/public_html/TZ/v3/includes/db.php'); Instead of require_once('TZ/v3/includes/db.php'); I assume your script is inside public_html. Would make your life easier... Does your header file contain something?
  11. It could also have to do with your PHP vesion. Older versions require you to instance the object and later use it. See this code here: <?php class Test { public function test() { return 'a'; } } echo (new Test())->test(); If you copy it into this tool you will see that versions below PHP 5.4 give a PARSE ERROR just like yours. You would need to use <?php $object = new Test(); echo $object->test(); Hope this helped.
  12. I know this isn't the reply you were looking for. But considering the little experience you have with Javascript and PHP it's almost impossible to guide you alright. If you're usign jQuery, the most simple way would be to replace the html with the AJAX response. You can read more here: http://api.jquery.com/jquery.ajax/ http://api.jquery.com/html/ Hope it helps you, at least a little.
  13. You probably have got some point of the script that converts them into < Could you post a bigger bit of script of what you're doing? And what the DB contains?
  14. Personally I'd rather stick with a left-aligned tree structure rather than this. Having content center aligned makes it slower to read and to understand.
  15. The point is that you are probably getting an headers already sent error. Try putting the PHP code always above the HTML and tell us if it worked better. And remember that header location does not end the execution, you need to do something like this die(header('location: x')); //Yeah, that's not really clean but does the job.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.