Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
0% Quality Score
Upvotes Received
0
Posts with Upvotes
0
Upvoting Members
0
Downvotes Received
1
Posts with Downvotes
1
Downvoting Members
1
0 Endorsements
~5K People Reached
About Me

I am neither especially clever nor especially gifted. I am only very, very curious.

Favorite Forums
Favorite Tags

5 Posted Topics

Member Avatar for New-Reign

After looking around most of last night and all of this morning, I find myself here. I am looking to include a database connection within another class. From what I've read creating a connection within a class is bad? Can someone help me out or even point me in the …

Member Avatar for pritaeas
0
158
Member Avatar for New-Reign

I am writing some code that will have several functions. I need the functions to have my database connection, is there a way that I can include the connection variable in all functions? Thanks

Member Avatar for pritaeas
0
139
Member Avatar for tolap21

You check to see if the submit button is used before running the form. `$submit = $_POST[submit]` and then if(isset($submit)) { /* Code to run */ }

Member Avatar for Webville312
0
188
Member Avatar for New-Reign

I am currently working on a hotel booking system. There are 4 rooms types, 3 have 5 rooms and 1 has 10 rooms. I have everything working apart from the ability to check which are booked or not. The SQL I used to create the tables is listed below; CREATE …

Member Avatar for New-Reign
0
4K
Member Avatar for New-Reign

[CODE]<html> <head> <script> "use strict"; function hexidecimal() { var num = document.getElementsByName('number')[0].value; var hex = num.toString(16); alert(hex); alert(num.toString(2)); } </script> </head> <body> <form id="form"> <input type="text" name="number" /> <input type="button" value="Hex" onClick="hexidecimal();" /> </form> </body> </html>[/CODE] Above is the current code I have, I expect it to output the contents …

Member Avatar for New-Reign
0
89

The End.