Post All Your Web Development Issues Here (php, Sql, Html, Javascript, Css) - Webmasters (3) - Nairaland
Nairaland Forum › Science/Technology › Webmasters › Post All Your Web Development Issues Here (php, Sql, Html, Javascript, Css) (8911 Views)
| Re: Post All Your Web Development Issues Here (php, Sql, Html, Javascript, Css) by bigv(m): 12:08am On May 01, 2015 |
The fiddle isn't quite straightforward nor explanatory. Thanks tho. GoodMuyis: |
| Re: Post All Your Web Development Issues Here (php, Sql, Html, Javascript, Css) by teeebest(m): 9:06am On May 01, 2015 |
Lastdon02:My wp theme is parabola. Please I need the CSS code to do that |
| Re: Post All Your Web Development Issues Here (php, Sql, Html, Javascript, Css) by FRInteractives(op): 9:39am On May 01, 2015 |
Connecting to a back-end database like Mysql is easy. Prerequisite: Local server eg: Xampp, Wamp, Lamp, Mamp, These local servers includes Apache, Mysql, php and perl(Xampp) If you are on a windows machine I recommend Xampp. And you can connect to your database from dreamweaver from sites. Packaged/shipped with Xampp is a web application that execute mysql statements called Phpmyadmin. For a better understanding in installing Xampp read this post I created https://www.nairaland.com/2017359/how-install-wordpress-local-host Now if you want to connect your php script to a database, for best practises, its best to have a database connection file eg connect.php in your includes folder in your web root directory. A simple database connection file will have the following lines of code: <?php //define database constants define("DB_HOST", "localhost" ; //this is your database hostdefine("DB_NAME", "my-db" ; // your database you want to connect todefine("DB_USER", "root" ; //database userdefine("DB_PASS", "my-password" ; // your database password// now the connection $con = mysql_connect(DB_HOST, DB_USER, DB_PASS); //$con is the connection variable $db = mysql_select_db(DB_NAME, $con) // the database you wish to use //check if connection is successful if(!$con) { die("Error establishing connection" .mysql_error()); } if(!$db) { die("Database Selection failed".mysql_error()); } mysql_close($con); ?> Now this is a depreciated style and will be removed in future here's another way using mysqli <?php <?php //define database constants define("DB_HOST", "localhost" ; //this is your database hostdefine("DB_NAME", "my-db" ; // your database you want to connect todefine("DB_USER", "root" ; //database userdefine("DB_PASS", "my-password" ; // your database password//connection $conn = new mysqli(DB_HOST, DB_USER, DB_PASS); // Check connection if ($conn->connect_error) { die("Connection failed: " . $conn->connect_error); } ?> And another style PDO soleexx: |
| Re: Post All Your Web Development Issues Here (php, Sql, Html, Javascript, Css) by FRInteractives(op): 9:42am On May 01, 2015 |
Now if you want to connect your php script to a database, for best practises, its best to have a database connection file eg connect.php in your includes folder in your web root directory. A simple database connection file will have the following lines of code: <?php //define database constants define("DB_HOST", "localhost" ; //this is your database host define("DB_NAME", "my-db" ; // your database you want to connect to define("DB_USER", "root" ; //database user define("DB_PASS", "my-password" ; // your database password // now the connection $con = mysql_connect(DB_HOST, DB_USER, DB_PASS); //$con is the connection variable $db = mysql_select_db(DB_NAME, $con) // the database you wish to use //check if connection is successful if(!$con) { die("Error establishing connection" .mysql_error()); } if(!$db) { die("Database Selection failed".mysql_error()); } mysql_close($con); ?> Now this is a depreciated style and will be removed in future here's another way using mysqli <?php //define database constants define("DB_HOST", "localhost" ; //this is your database host define("DB_NAME", "my-db" ; // your database you want to connect to define("DB_USER", "root" ; //database user define("DB_PASS", "my-password" ; // your database password //connection $conn = new mysqli(DB_HOST, DB_USER, DB_PASS); // Check connection if ($conn->connect_error) { die("Connection failed: " . $conn->connect_error); } ?> evolg: |
| Re: Post All Your Web Development Issues Here (php, Sql, Html, Javascript, Css) by Lastdon02(m): 10:01am On May 01, 2015 |
teeebest:whats your url? |
| Re: Post All Your Web Development Issues Here (php, Sql, Html, Javascript, Css) by unilag100(m): 10:40am On May 01, 2015 |
Pls hep..How can I browse with Mtn blackberry subscription on an android phone? |
| Re: Post All Your Web Development Issues Here (php, Sql, Html, Javascript, Css) by GoodMuyis(m): 1:55pm On May 01, 2015 |
Bossforeva:Are Serious, what re u trying to DO |
| Re: Post All Your Web Development Issues Here (php, Sql, Html, Javascript, Css) by JackOfAllTrades: 5:23pm On May 01, 2015 |
kentc3:the documentation are on their website, you can contact me I will help you set it up |
| Re: Post All Your Web Development Issues Here (php, Sql, Html, Javascript, Css) by JackOfAllTrades: 5:27pm On May 01, 2015 |
ibietela2:don't try to cram the syntax, know the full meaning if it has and understand what the code is supposed to do |
| Re: Post All Your Web Development Issues Here (php, Sql, Html, Javascript, Css) by kentc3: 8:12am On May 02, 2015 |
Owk....how do i contact you please? JackOfAllTrades: |
| Re: Post All Your Web Development Issues Here (php, Sql, Html, Javascript, Css) by JackOfAllTrades: 8:27am On May 02, 2015 |
kentc3:check my signature |
| Re: Post All Your Web Development Issues Here (php, Sql, Html, Javascript, Css) by Nobody: 9:03am On May 02, 2015 |
GoodMuyis:WICKED |
| Re: Post All Your Web Development Issues Here (php, Sql, Html, Javascript, Css) by teeebest(m): 9:26pm On May 02, 2015 |
Lastdon02:http://benevng.wpdevcloud.com. i want the text area to look like buagroup.com. thanks as always |
| Re: Post All Your Web Development Issues Here (php, Sql, Html, Javascript, Css) by Lastdon02(m): 10:05pm On May 02, 2015 |
teeebest:you mean the place it says "Welcome to our site BUA Group started business over 24 years ago as a Private Limited Liability Company specializing in the importation and marketing of iron & steel, agricultural and industrial chemicals. Since then it has rapidly developed into a fully-fledged, diversified business with a stake in a wide range of business sectors." |
| Re: Post All Your Web Development Issues Here (php, Sql, Html, Javascript, Css) by Antivyruz: 6:49am On May 03, 2015 |
Hello, i keep getting an ERROR at the end of majority of my post at www.vevonews.com i am finding it hard to fix it. kindly help me out. This is what i mean below.(pix)
|
| Re: Post All Your Web Development Issues Here (php, Sql, Html, Javascript, Css) by samierage: 6:52am On May 03, 2015 |
pls I need HTML tag for user to create his/her own group in my wap page and can invite other friends to join the group thanks in advance |
| Re: Post All Your Web Development Issues Here (php, Sql, Html, Javascript, Css) by teeebest(m): 2:53pm On May 03, 2015 |
Lastdon02:Yes sir! |
| Re: Post All Your Web Development Issues Here (php, Sql, Html, Javascript, Css) by Booyakasha(f): 4:44pm On May 03, 2015 |
Goto www.GDevit.com for Tech and Programming related issues. |
| Re: Post All Your Web Development Issues Here (php, Sql, Html, Javascript, Css) by Lastdon02(m): 5:21pm On May 03, 2015 |
teeebest:THAT MEANS YOU WANNA REMOVE THE WHITE BACKGROUND AND MAKE IT TRANSPARENT? IF ITS THAT THEN ITS SIMPLE |
| Re: Post All Your Web Development Issues Here (php, Sql, Html, Javascript, Css) by teeebest(m): 10:18pm On May 03, 2015 |
Lastdon02:Yes that's what I want to do. How can I go about that please? |
| Re: Post All Your Web Development Issues Here (php, Sql, Html, Javascript, Css) by Lastdon02(m): 11:43pm On May 03, 2015 |
teeebest:install firebog addon on your firefox when u are done lemme no |
HTML, Javascript & CSS Code Tester (PHP Script) • GENESIS FRAMEWORK+THEMES, WORDPRESS/WEB DEVELOPMENT VIDEO TRAINING & SOFTWARES • Post All Your Wordpress Issues Here (strictly Wordpress) • 2 • 3 • 4
How Much Can One Make From Vlogging? • Web4africa.net Is A Fraud And They Are Already Scamming Me. • Nigeria Has No Functional Official Web Portal
; //this is your database host