phppup Posted March 28, 2019 Share Posted March 28, 2019 A silly question, since simply fixing the error would likely take less time, but my curiosity won't stop nagging me. I have several php pages that ALL use the INCLUDE file connection.php which has the following scripting $conn = mysqli_connect(...etc, etc,etc,); Everything works fine EXCEPT for a few pages which were written using $DBCONN instead of $conn Can I somehow alter the value of $DBCONN so it is equal to $conn And interpreted correctly without having to change the mistaken variable in the pages that use $DBCONN ? I tried a quick $DBCONN = $conn; but there was no effect, so I thought I'd ask. Link to comment Share on other sites More sharing options...
requinix Posted March 28, 2019 Share Posted March 28, 2019 $DBCONN = $conn = mysqli_connect(...etc, etc,etc,); $DBCONN=$conn should have worked. Did you put it after the $conn= line? Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.