21-03-2005, 16:57
|
|
|
חבר מתאריך: 01.11.04
הודעות: 109
|
|
לא יודע למה אני לא יכול לערוך את ההודעה הקודמת שוב, בקיצור
הסתדרתי!
להלן הקוד:
קוד PHP:
<?php class DataBase{ function connect($user,$password,$db) { mysql_connect("localhost",$user,$password); mysql_select_db($db); } function row($query){ $q = mysql_query($query); $a = mysql_fetch_array($q); return $a; } } $DB = new DataBase(); include "config.php"; $DB->connect($cname,$cpassword,$db); $array = $DB->row("SELECT * FROM guides"); echo $array["title"]; ?>
תודה רבה לכולם!
_____________________________________
Your signature did not follow Fresh's signatures policy, therefore it was automatically erased. Please see the E-Mail which has been sent to you, to learn how to fix this.
|