Print Page | Close Window

query mysql problem

Printed From: Web Wiz Forums
Category: Web Wiz Web App Support Forums
Forum Name: Web Wiz Rich Text Editor (RTE)
Forum Description: Support forum for the Web Wiz Rich Text Editor (RTE).
URL: https://forums.webwiz.net/forum_posts.asp?TID=24213
Printed Date: 29 March 2026 at 7:41am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: query mysql problem
Posted By: foxy
Subject: query mysql problem
Date Posted: 18 August 2007 at 11:41am
Hi,
 
i'm a total noob in asp, but because i wanted to use the RTE I need a couple of lines for it. The only thing i 'm looking for is the script to connect with a db and query it.
Is there someone who can translate this script form php to asp? it would help me a lot. thx
 

@ $db = mysql_pconnect('localhost', 'username' , 'password');

if (!$db)

{

echo 'Error: Can not connect.';

exit;

}

mysql_select_db('dbname');

$query = 'select * from table '

."where id='$id' ";

$result = mysql_query($query);

$row = mysql_fetch_array($result);

echo'The ID is: '.$row[id].'';



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net