Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Fundamental MySQL Load-up: Sorry, I'm just not getting this yet.

Status
Not open for further replies.

Beado

Programmer
Jul 15, 2002
2
IL
I've just dumped a Grand on Macromedia STUDIO MX, and I'm totally stumped by the relationship between PHP/MySQL/ and what part my software plays in relation to the Apache1.2.3 server...//ie//

" Welcome to phpMyAdmin 2.2.3

MySQL 3.23.47-debug-log running on localhost:10187 as root@localhost
MySQL

Create new database [Documentation]
ENTER: (LARGE EMPTY BOX HERE) "

PUH-lease tell me where to go with the line the host provided as follows...

/home/(my_user_name)/something.com/.database/mysql/mysql.sock

and what to do with this:

<?php
$db = @mysql_connect(&quot;/home/(my_user_name)/something.com/.database/mysql/mysql.sock&quot;, &quot;root&quot;, &quot;password&quot;);
?>

I really am working at this and
I PROMISE I'LL LINK TO YOU!!! Dude? Buddy?



 
try this then :
<?php
$db = mysql_connect(&quot;localhost&quot;, &quot;root&quot;, &quot;password&quot;);
$err_no=mysql_errno();

if ($err_no > 0 ){

echo &quot;<h2> Error:</h1> &quot; . mysql_errno() . &quot;: &quot; . mysql_error() . &quot;<br>\n&quot;;

exit;

}else{
echo &quot;connect completed succesfully&quot;;
}
?> ______________________________________________________________________
There's no present like the time, they say. - Henry's Cat.
 
Thank you! I'll try that. Uh, WHERE?[bigcheeks]

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top