17-04-2007, 15:17
|
|
|
חבר מתאריך: 15.04.06
הודעות: 377
|
|
או קיי, עכשיו שני החבילות עובדות כראוי.
ה dwebpro עם וה wamp יחדיו או לבד, כל אחת מהחבילות עובדות עכשיו בניפרד ואפילו יחדיו בעת הרצת שני שרתים מאותה os.
ה localhost פתר את הבעיה ועכשיו זה עובד עכשיו ישנה בעיה עם פונקציה אחרת, אבל יש בעיה עם השורה הזאת בקוד:
קוד:
$query = mysql_qeury ("SELECT * FROM users");
זאת הסיבה:
קוד:
Fatal error: Call to undefined function mysql_qeury()
in E:\DWebPro\deploy\www\canadachat\forum-sample_sample.php on line 45
ה syntax חוקי, מה הבעיה בהגדרה של הפונקציה עצמה?
תמונה של הפלט:
קוד:
<body>
<!--top layer & general div-->
<div id="general">
<div id="general_title"><br />
censored</div>
<!--top titles bar-->
<div id="title_id">
<br />
<button class="button_design" tabindex="2" onclick=location="http://localhost/canadachat/html-sample.html">home</button>
<button class="button_design" tabindex="2">chat</button>
<button class="button_design" tabindex="3">forum</button>
<button class="button_design" tabindex="4">team</button>
<button class="button_design" tabindex="5">user</button>
<button class="button_design" tabindex="6">guestbook</button>
</div>
<!--side bar under the titles bar, left side-->
<div id="canadacssbar">
<br />
<a onclick=location="censored">our old site</a>
<br />
<FORM method=GET action=http://www.google.com/custom TARGET=_blank >
<INPUT TYPE=text name=q maxlength=255 value="" class="googlebar">
<br /><br />
<INPUT type=submit name=btnG VALUE="Google Search" size="8">
</FORM>
</div>
<br /> <br /> <br /> <br /> <br /> <br />
<!--index div layer-->
<div id="inside_div">
<br />
<?php
mysql_connect ('localhost','root','censored');
mysql_select_db('ccr');
$counter=0;
$query = mysql_qeury ("SELECT * FROM users");
while ($row = mysql_fetch_array($query))
{
$users = $row['nickname'];
$age = $row['age'];
echo "user: $users are $age years old";
}
mysql_close();
?>
</div>
</div>
</body>
</html>
_____________________________________
חתימתכם הוסרה כיוון שלא עמדה בחוקי האתר. לפרטים נוספים לחצו כאן. תוכלו לקבל עזרה להתאמת החתימה לחוקים בפורום חתימות וצלמיות.
|