Getting links to work the same on development and production

Suggestion:

I suppose that you have a backend interface that use custom fields to do this.

Don’t use permalinks in this fields, instead save the post_id of the page that you want to link in the custom field and use get_permalink() in your code

Example:
Custom field name: link_to_page

In your code, use, for example

echo get_permalink(get_post_meta($post->post_id,'link_to_page',true))

In the backend, you can use custom meta boxes. See this article for reference on how to implemente custom meta boxes

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)