Problems with queries not executing
Posted by: bjmag94 (58.178.200.---)
Date: October 13, 2017 04:03AM

Hi I am trying to get my site live (which I already have) but there is a lot of queries that aren't making entries to the database, but before I transfered from a VPS they were working find, I will provide one example..
Not sure whether it is because of the mysql_real_escape_string or not?
I am slowly getting there with converting my code to mysqli, there is just do much to go through..

Here is the code, it's not making the entries into the 'member_mail' table, is anyone able to tell me what is going on here? And how can I fix it?
Thank you

Code snippet: []

Options: ReplyQuote
Re: Problems with queries not executing
Posted by: RiggsFolly (Moderator)
Date: October 13, 2017 10:27AM


Sorry but this forum is for php coding issues.

I would suggest that you start by looking at your error logs `\wamp\log\....`

If you are using PHP7 the problem is obvious because the `mysql_` api does not exist in PHP7, but you do not give us any useful information to go on.

For future reference, we need this information at the start of any question so we know a little about your environment READ (and answer) BEFORE YOU ASK A QUESTION

(Windows 7 Pro 32bit) (Wampserver 3.0.6 32bit)
<Apache 2.4.23/2.2.31> <PHP 7.1.2/7.0.16/5.6.28/5.5.38/5.4.45/5.3.29> <MySQL 5.7.10/5.6.17/5.5.28>
<MariaDB 10.1.21> <phpMyAdmin4.6.5.2> <MySQL Workbench>

Read The Manuals Apache -- MySQL -- PHP -- phpMyAdmin -- WAMPServer alternate Repo
-?-?-?- Backup your MySQL databases regularly Here is How dont regret it later! Yes even when developing -?-?-?-

Options: ReplyQuote

Sorry, only registered users may post in this forum.