Ask a Question related to Dreamweaver AppDev, Design and Development.
-
dummmmmbo #1
connecting mysql
im having trouble viewing any results from my db,
ive recently switched to a mac and have it all running locally, i have no
trouble accessing the db through terminal command line and can see dbs and
tables and run the queries from here also can see db from phpmyadmin and run
queries from there but i just cant access any db from a php script ... i dont
get any error messages just nothing and my tables wont show up in dreamweaver
which says the path to the server is wrong but the normal php scripts run which
dont involve mysql what is going on ! heres a clip of code
<?php
$host="localhost";
$username="root";
$pass="jlkj99";
$database="hayesdec";
$tablename="login";
$connection=mysql_connect($host,$username,$pass);
if(!$connection({
echo"no con";
}
$result=mysql_select_db($database)
if($result({
echo"pppppp";
}
$query="SELECT * from" .$tablename";
$result= mysql_query($query);
if(!$result({
echo"no result";
}
while ($row=mysql_fetch_array($result))
{
echo row["username"];
echo row["password"];
}
?>
thanks chris
dummmmmbo Guest
-
problem connecting from cf 6.0 to mysql 5
Hey guys, Heres my problem I can't connect to mysql after i upgraded to v5 it says: Connection verification failed for data source: eval... -
Connecting to MySql
I have installed MySql on a Windows 98 workstation. I start the service with the command: mysqld I can connect to the database and see tables,... -
Connecting to MySQL 5.0, How?
Hi, I run everything on my local machine that is WIN XP SP2 with IIS, Coldfusion MX7.0 I just installed MySQL5.0, the service is running and can... -
Connecting with MySQL
How I do to connect the ColdFusion with MySQL? I read http://www.macromedia.com/cfusion/knowledgebase/index.cfm?id=6ef0253 page, but it doesn't works... -
Connecting to MySQL 4.1
OK I am trying to create a DSN for a MySQL db. I have followed this tech note:- ... -
gareth #2
Re: connecting mysql
Try my MySQL database connection guide at:
[url]http://www.dreamweavermxsupport.com/index.php?type=article&pid=60&sid=61[/url]
--
Gareth - TMM Dreamweaver
[url]http://www.dreamweavermxsupport.com/[/url]
[url]http://www.garethdp.com/[/url]
PHP Login Suite V2 - 34 Server Behaviors to build a complete Login system.
[url]http://www.phploginsuite.co.uk/[/url]
Co-Author: Dreamweaver MX: Instant Troubleshooter - Apress
Co-Author: Practical Intranet Development - Apress
Co-Author: Dreamweaver MX: Advanced PHP Web Development - Apress
Co-Author: Dreamweaver MX: PHP Web Development - Wrox
gareth Guest



Reply With Quote

