-
Salve,
questo script:<?php session_start(); require('config.php'); include('header.php'); ?> <?php if(isset($_SESSION['login']) and isset($_SESSION['lvl'])) { if($_SESSION['lvl'] == 1) { mysql_select_db("cms",$connection); $query=("SELECT * FROM intro") or die ("Query error: " . mysql_error()); $result=mysql_fetch_array($query); print ' <form action="introposter.php" method="post"> <center> <br /> <b>Introduction:</b> <br /> <TEXTAREA NAME="intro" COLS=100 ROWS=25> ' . $fetch['content'] .' </TEXTAREA> </center> <br /> <input type="submit" value="Submit"> </form> '; } else { print 'You do not have sufficient privileges to view this page.'; } } else { print 'Please login.'; } ?> <?php include('footer.php'); ?>mi da questo errore:
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in C:\xampp\htdocs\nfs\intro.php on line 15
Qualcuno sa aiutarmi?:x
-
-
Ciao! Sembra che tu sia interessato a questa conversazione, ma non hai ancora un account.
Stanco di dover scorrere gli stessi post a ogni visita? Quando registri un account, tornerai sempre esattamente dove eri rimasto e potrai scegliere di essere avvisato delle nuove risposte (tramite email o notifica push). Potrai anche salvare segnalibri e votare i post per mostrare il tuo apprezzamento agli altri membri della comunità.
Con il tuo contributo, questo post potrebbe essere ancora migliore 💗
Registrati Accedi

