of     1   

noobkid
#63319394Thursday, February 23, 2012 2:10 PM GMT

So.. I just made a login form for my site.. But.. how do I create new rows to the table inside the database?
noobkid
#63319783Thursday, February 23, 2012 2:32 PM GMT

Bump
NoahWillCode
#63321010Thursday, February 23, 2012 3:37 PM GMT

Open PHPMyAdmin. Go to Google's video sharing website for more details.
tweetytime
#63321087Thursday, February 23, 2012 3:42 PM GMT

Wow ive been learning PHP and was aiming to make my own website to... Its Pretty complex... You gota have a database / server and have it refrenced and the program that i can make it on is at school and the school blocks server creations so im in a dead lock... But if i could help i would.
NoahWillCode
#63321883Thursday, February 23, 2012 4:23 PM GMT

Tweety, you can even do that on a home server.
noobkid
#63322292Thursday, February 23, 2012 4:42 PM GMT

I know how to do it manually, I wan't to do it via PHP
NoahWillCode
#63322696Thursday, February 23, 2012 4:57 PM GMT

CREATE TABLE tableName And then the values...
noobkid
#63322940Thursday, February 23, 2012 5:05 PM GMT

I just wan't to add values!
NoahWillCode
#63323043Thursday, February 23, 2012 5:08 PM GMT

CREATE TABLE example ( id INT, data VARCHAR(100) );
noobkid
#63323432Thursday, February 23, 2012 5:24 PM GMT

Can I put that just between < ? php ? >?
NoahWillCode
#63323784Thursday, February 23, 2012 5:40 PM GMT

Like this: < ? p h p $dbc = mysqli_connect(connection parameters here); $query = "Stuff I Showed Earlier"; $request = mysqli_query($dbc,$query); ? >
noobkid
#63324258Thursday, February 23, 2012 6:00 PM GMT

Can I connect it separately, like this; mysql_connect("$host", "$username", "$p45.sw0_rd")
NoahWillCode
#63363385Friday, February 24, 2012 1:55 PM GMT

That's how the connection works. But, before you get too involved in PHP, ALWAYS put this in all functions starting with mysql: mysqli REMEMBER THE 'i', it adds extra security.
noobkid
#63363586Friday, February 24, 2012 2:08 PM GMT

What kind of extra security?
vlekje513
#63363861Friday, February 24, 2012 2:25 PM GMT

o.O I dont know where you talking about after the second chat :O
NoahWillCode
#63392889Saturday, February 25, 2012 1:47 AM GMT

Well, hackers could access your database and server far easier if you don't have the 'i'
moustachauve
#63394127Saturday, February 25, 2012 2:09 AM GMT

@bballer13sn mysqli is not safer than mysql, it is only a less powerfull version of mysql
Text91
#63395119Saturday, February 25, 2012 2:29 AM GMT

@moustachauve MySQLi is not worse than MySQL, I don't know where you learned that. MySQLi = MySQL Improved.
moustachauve
#63395229Saturday, February 25, 2012 2:31 AM GMT

Oh, I thing i mixed two things, i don't know what is worse and less secure than Mysql then... can't recall the right thing
builderman1171
#63396613Saturday, February 25, 2012 2:56 AM GMT

Lucky for you, I just created a PHP blog posting system. To add values to a column, while creating a new ROW, use this: mysql_query("INSERT INTO table_name (coloumn_name,coloumn_name) VALUES ('$variable_name','$variable_name')"); This will add the variable_name's to the coorisponding coloumn_name. Please not that if you are using certain character's such as "'"'s you might need to use mysql_real_escape_string() function when imputting to your database. I would also recremend the download of MySQL Workbench (Latest Version). if you need any more PHP/JS/JQuery/HTML/MySQL questions just ask me. Search a program named StivaBLOG, I created a PHP/HTML/CSS/MySQL blog system JUST like it. Probably even better!
NoahWillCode
#63536237Monday, February 27, 2012 5:34 PM GMT

@mousta: Incorrect. The 'i' in mysqli means 'improved.' It is both more secure and will glitch less often.

    of     1