Accueil > Forum > > > > aider moi je debute
aider moi je debute
dimanche 11 mai 2008 à 17:23:52 |
aider moi je debute

ericavia
|
voilas je suis heberger chez 1and1 j ai deposer la base de donner de mon script mais des que je lexecute il me repond : MySQL a répondu: #1064 - You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'DEFAULT CHARSET=latin1 AUTO_INCREMENT=9' at line 11
voici la partie ou se trouve l erreur mais je ne trouve pas :
requête SQL:
CREATETABLE`adv`(`adv_id`bigint(20)NOTNULLAUTO_INCREMENT, `adv_name`varchar(255)NOTNULLdefault'', `adv_text`textNOTNULL, `adv_status`enum('Active','Inactive')NOTNULLdefault'Active', PRIMARYKEY(`adv_id`) )ENGINE=MYISAMDEFAULTCHARSET=latin1AUTO_INCREMENT=9
-- -- Dumping data for table `adv` -- INSERT INTO `adv` VALUES (8, 'resolution_based_right_add', 'This is my right side ads', 'Active'); INSERT INTO `adv` VALUES (4, 'video_right_single', '<DIV style="display: block; width: 80px; height:60px; padding:5px; border: 1px solid #DDDDDD; text-align:left; background: #FFFFFF"><font size=1 color=#999999>VIDEO RIGHT SINGLE</font><BR>ADS</DIV><BR>', 'Inactive'); INSERT INTO `adv` VALUES (5, 'home_top_single', 'Home Top Single Ads', 'Active'); INSERT INTO `adv` VALUES (7, 'resolution_based_left_add', 'This is my left side ads', 'Active'); INSERT INTO `adv` VALUES (2, 'foot_top_banner', '<TABLE BGCOLOR=#000000 WIDTH=100% ALIGN=center border=0>\r\n<TR>\r\n <TD align=center >\r\n <font color=#ff0000>\r\n Foot Top Advertise\r\n </font>\r\n </TD>\r\n</TR>\r\n</TABLE>', 'Active'); INSERT INTO `adv` VALUES (6, 'foot_bottom_banner', '<i>This is footer bottom banner</i>', 'Active'); INSERT INTO `adv` VALUES (3, 'home_right_box', '<DIV style="display: block; width: 176px; height:100px; padding:5px; border: 1px solid #DDDDDD; text-align:left;"><font size=1 color=#999999>HOME RIGHT BOX</font><BR>Advertisement Here<BR><BR><font size=1 color=#BBBBBB>Edit / Enable / Disable from Admin Panel</font></DIV>', 'Active'); INSERT INTO `adv` VALUES (1, 'home_top_banner', '<center><div style="display: block; width: 468px; height:60px; padding:5px; border: 1px solid #DDDDDD; text-align:left;"><font size=1 color=#999999>HOME TOP BANNER</font><br />Advertisement Here<br /><font size=1 color=#BBBBBB>Edit / Enable / Disable from Admin Panel</font></div></center><br />', 'Active'); -- --------------------------------------------------------
de l aide je n en dort plus
|
|
lundi 12 mai 2008 à 06:46:37 |
Re : aider moi je debute

ericavia
|
Réponse acceptée !
desoler j ai trouver en fait je rentrer ma base de donner en sql 4 or il fallait que je la met en sql5 c est chose faite c bon par contre voici un nouveau souci :
" Fatal error: Call to undefined function: adonewconnection() in /homepages/25/d146395061/htdocs/include/config.php on line 77" je suis aller sur le script "config.php" a la ligne 77mais je ne voie rien de speciale voici le bout du script : session_start(); $config = array(); // =============== CONFIGURATION =================================================================== // Your Website Name $config['site_name'] = "montageonline"; $config['BASE_DIR'] = 'http://www.defouliore.be/'; $config['BASE_URL'] = 'http://www.defouliore.be/'; $config['tmpimgpath'] = 'http://www.defouliore.be/tmp'; $config['tmpimgpath2'] = 'http://www.defouliore.be/tmp'; $config['ffmpeg'] = '/usr/bin/ffmpeg'; $config['mplayer'] = '/usr/bin/mplayer'; $config['mencoder'] = '/usr/bin/mencoder'; $config['metainject'] = '/usr/bin/flvtool2'; $config['phppath'] = '/usr/local/bin/php'; // Guest users (unregistered) daily limit (duration in seconds) $config['guest_limite'] = 65535; // Videos have to be approved by admin before made public (1 = yes / 0 = no) $config['approve'] = 0; // Delete original uploaded videos (and temp files) after successful conversion (1 = yes / 0 = no) $config['del_original_video'] = 0; // User profile photo (avatar) width (pixels). Original uploaded images are redimensioned $config['photowidth'] = "150"; // Video Bitrate (kbit/sec)- Increase/Decrease quality/filesize of the converted video $config['vbitrate'] = 800; // Audio Sample Rate (Hz) - Recommended to leave it to this value $config['sbitrate'] = 22050; // Resize/Scale Converted Video (yes = 1 / no = 0) $config['vresize'] = 0; //Resized Video Width $config['vresize_x'] = 320; //Resized Video Height $config['vresize_y'] = 240; //Captcha (Signup Image Verification) ON=1/OFF=0 $config['captcha'] = 1; //Member Download Videos ON=1/OFF=0 $config['downloads'] = 1; // =============== DO NOT EDIT UNDER THIS LINE ===================================================== $config['CONF_FILE'] = $config[BASE_DIR] . '/include/conf.ini'; $config['IMG_DIR'] = $config[BASE_DIR] . '/images'; $config['IMG_URL'] = $config[BASE_URL] . '/images'; $config['PHO_DIR'] = $config[BASE_DIR] . '/photo'; $config['PHO_URL'] = $config[BASE_URL] . '/photo'; $config['VDO_DIR'] = $config[BASE_DIR] . '/video'; $config['VDO_URL'] = $config[BASE_URL] . '/video'; $config['ADO_DIR'] = $config[BASE_DIR] . '/audio'; $config['ADO_URL'] = $config[BASE_URL] . '/audio'; $config['FLVDO_DIR'] = $config[BASE_DIR] . '/flvideo'; $config['FLVDO_URL'] = $config[BASE_URL] . '/flvideo'; $config['TMB_DIR'] = $config[BASE_DIR] . '/thumb'; $config['TMB_URL'] = $config[BASE_URL] . '/thumb'; $config['baseurl'] = $config['BASE_URL']; $config['basedir'] = $config['BASE_DIR']; $config['vdodir'] = $config['VDO_DIR']; $config['vdourl'] = $config['VDO_URL']; $config['audiodir'] = $config['ADO_DIR']; $config['audiourl'] = $config['ADO_URL']; $config['flvdodir'] = $config['FLVDO_DIR']; $config['flvdourl'] = $config['FLVDO_URL']; $config['photodir'] = $config['PHO_DIR']; $config['photourl'] = $config['PHO_URL']; $config['imgurl'] = $config['IMG_URL']; $config['imgpath'] = $config['IMG_DIR']; $config['tmbdir'] = $config['TMB_DIR']; $config['tmburl'] = $config['TMB_URL']; require_once ($config[BASE_DIR] . '/smarty/libs/Smarty.class.php'); require_once ($config[BASE_DIR] . '/classes/mysmarty.class.php'); require_once ($config[BASE_DIR] . '/classes/SConfig.php'); require_once ($config[BASE_DIR] . '/classes/SError.php'); require_once ($config[BASE_DIR] . '/include/adodb/adodb.inc.php'); require_once ($config[BASE_DIR] . '/include/phpmailer/class.phpmailer.php'); require_once ($config[BASE_DIR] . '/classes/SEmail.php'); require_once ($config[BASE_DIR] . '/include/dbconfig.php'); $conn =&ADONewConnection($DBTYPE); $conn->PConnect($DBHOST, $DBUSER, $DBPASSWORD, $DBNAME); $sql = "SELECT * from sconfig"; $rsc = $conn->Execute($sql); if ($rsc)
merci pour votre aide
|
|
lundi 12 mai 2008 à 06:49:03 |
Re : aider moi je debute

ericavia
|
" Fatal error: Call to undefined function: adonewconnection() in /homepages/25/d146395061/htdocs/include/config.php on line 77" je suis aller sur le script "config.php" a la ligne 77mais je ne voie rien de speciale voici le bout du script : session_start(); $config = array(); // =============== CONFIGURATION =================================================================== // Your Website Name $config['site_name'] = "montageonline"; $config['BASE_DIR'] = 'http://www.defouliore.be/'; $config['BASE_URL'] = 'http://www.defouliore.be/'; $config['tmpimgpath'] = 'http://www.defouliore.be/tmp'; $config['tmpimgpath2'] = 'http://www.defouliore.be/tmp'; $config['ffmpeg'] = '/usr/bin/ffmpeg'; $config['mplayer'] = '/usr/bin/mplayer'; $config['mencoder'] = '/usr/bin/mencoder'; $config['metainject'] = '/usr/bin/flvtool2'; $config['phppath'] = '/usr/local/bin/php'; // Guest users (unregistered) daily limit (duration in seconds) $config['guest_limite'] = 65535; // Videos have to be approved by admin before made public (1 = yes / 0 = no) $config['approve'] = 0; // Delete original uploaded videos (and temp files) after successful conversion (1 = yes / 0 = no) $config['del_original_video'] = 0; // User profile photo (avatar) width (pixels). Original uploaded images are redimensioned $config['photowidth'] = "150"; // Video Bitrate (kbit/sec)- Increase/Decrease quality/filesize of the converted video $config['vbitrate'] = 800; // Audio Sample Rate (Hz) - Recommended to leave it to this value $config['sbitrate'] = 22050; // Resize/Scale Converted Video (yes = 1 / no = 0) $config['vresize'] = 0; //Resized Video Width $config['vresize_x'] = 320; //Resized Video Height $config['vresize_y'] = 240; //Captcha (Signup Image Verification) ON=1/OFF=0 $config['captcha'] = 1; //Member Download Videos ON=1/OFF=0 $config['downloads'] = 1; // =============== DO NOT EDIT UNDER THIS LINE ===================================================== $config['CONF_FILE'] = $config[BASE_DIR] . '/include/conf.ini'; $config['IMG_DIR'] = $config[BASE_DIR] . '/images'; $config['IMG_URL'] = $config[BASE_URL] . '/images'; $config['PHO_DIR'] = $config[BASE_DIR] . '/photo'; $config['PHO_URL'] = $config[BASE_URL] . '/photo'; $config['VDO_DIR'] = $config[BASE_DIR] . '/video'; $config['VDO_URL'] = $config[BASE_URL] . '/video'; $config['ADO_DIR'] = $config[BASE_DIR] . '/audio'; $config['ADO_URL'] = $config[BASE_URL] . '/audio'; $config['FLVDO_DIR'] = $config[BASE_DIR] . '/flvideo'; $config['FLVDO_URL'] = $config[BASE_URL] . '/flvideo'; $config['TMB_DIR'] = $config[BASE_DIR] . '/thumb'; $config['TMB_URL'] = $config[BASE_URL] . '/thumb'; $config['baseurl'] = $config['BASE_URL']; $config['basedir'] = $config['BASE_DIR']; $config['vdodir'] = $config['VDO_DIR']; $config['vdourl'] = $config['VDO_URL']; $config['audiodir'] = $config['ADO_DIR']; $config['audiourl'] = $config['ADO_URL']; $config['flvdodir'] = $config['FLVDO_DIR']; $config['flvdourl'] = $config['FLVDO_URL']; $config['photodir'] = $config['PHO_DIR']; $config['photourl'] = $config['PHO_URL']; $config['imgurl'] = $config['IMG_URL']; $config['imgpath'] = $config['IMG_DIR']; $config['tmbdir'] = $config['TMB_DIR']; $config['tmburl'] = $config['TMB_URL']; require_once ($config[BASE_DIR] . '/smarty/libs/Smarty.class.php'); require_once ($config[BASE_DIR] . '/classes/mysmarty.class.php'); require_once ($config[BASE_DIR] . '/classes/SConfig.php'); require_once ($config[BASE_DIR] . '/classes/SError.php'); require_once ($config[BASE_DIR] . '/include/adodb/adodb.inc.php'); require_once ($config[BASE_DIR] . '/include/phpmailer/class.phpmailer.php'); require_once ($config[BASE_DIR] . '/classes/SEmail.php'); require_once ($config[BASE_DIR] . '/include/dbconfig.php'); $conn =&ADONewConnection($DBTYPE); $conn->PConnect($DBHOST, $DBUSER, $DBPASSWORD, $DBNAME); $sql = "SELECT * from sconfig"; $rsc = $conn->Execute($sql); if ($rsc)
desoler voici la ligne 77 en rouge
|
|
Cette discussion est classée dans : insert, active, into, values, adv
Répondre à ce message
Sujets en rapport avec ce message
PB de requette Insert Into [ par Psyko ]
Voici le bout de code de ma page :DB.execute("Insert Into dreamcast (Titre, Region, Support, Interface, Prog, Nbr, Tps, Tracks, Taille, Fichiers, Doss
retour id-auto lors d' INSERT INTO [ par bnedust ]
bonjour,j'effectue un ordre INSERT INTO dans une page web.la clé primaire de la table concernée est du type numéro-auto (Acces2000).j'aurai voulu récu
plusieurs milliers de requêtes INSERT [ par kiminox ]
Slt,Je dois faire une requête contenant plusieurs milliers d'instruction INSERT dans une bas SQL.Ex: voici ma chaine SQLinsert into table (champ1,cham
la syntaxe de insert [ par fredw ]
FredwBonjour,J'ai un soucis avec une commande insertvoila l'exemple typeLADATE = Cstr(now())%>cle = 12SQL = "INSERT INTO RECETTE ([reprimr,[redate]])
URGENT !!!!! pb insert into [ par bibi81 ]
voici mon code : strsql="INSERT INTO annonces (num_annonce,nom,adresse_mail,titre,categorie,annonce)"strsql=strsql & " VALUES ('" & nume & "','" & nom
Récupérer l'ID après un INSERT INTO [ par audile ]
Bonjour,Est-ce qu'une fonction en ASP.NET permet de récupérer l'identifiant de l'enregistrement qu'on vient d'insérer avec un INSERT INTO ?Merci d'ava
count avec (+) [ par hudson ]
Merci pour l'aideLe but du select: c'est de sortir le nombre d'enfant par parent , s'il n'y a pas d'enfant au parent le count doit etre 0.les tablescr
PB sur Insert Into [ par croco83 ]
Salut, je suis débutante en asp et je rencontre un pb lorsque je veux executer une requete insert into dans une table. Je ne sais pas comment faire po
inserer dans une table qui est nomme d'une forme web [ par derek_2005 ]
Salut, J'essais de faire un "insert into" dans une table generer par code asp, qui vient dune Form.J'ai reussi a creer la table en utilisant Dim tName
Comment faire des transaction imbriquées en ASP [ par shaft107 ]
Bonjour à tous Je souhaite faire 5 insertions dans ma base de données mais vu qu'il s'agit de tables différentes comment faire des transactions en eff
Livres en rapport
|
Derniers Blogs
IMAGINE CUP 2012, MAKE A SIGN EN FINALEIMAGINE CUP 2012, MAKE A SIGN EN FINALE par junarnoalg
Voilà qui est fait, la nouvelle est officielle ! L'équipe belge "Make a Sign" va au pays des kangourous défendre son projet dans la catégorie Software Design. http://www.imaginecup.com/CompetitionsContent/Competition/WorldwideFinalists.aspx V...
Cliquez pour lire la suite de l'article par junarnoalg KINECT 1.5 IS OUT !KINECT 1.5 IS OUT ! par Vko
La version 1.5 du Kinect For Microsoft vient tout juste de sortir ! Plein de nouveautés: Tracking de squelette en Near Mode Détection en position assise Détection faciale avec un SDK dédié Documentation et des guideline (enfin) Un out...
Cliquez pour lire la suite de l'article par Vko LES ACTUALITéS DE LA SEMAINE SUR C2I.FR (14 MAI - 20 MAI) LES ACTUALITéS DE LA SEMAINE SUR C2I.FR (14 MAI - 20 MAI) par richardc
Mise à jour des Web API du 14 Mai
Réservez dès maintenant votre journée du 20 juin pour le Windows Azure Dev Camp 2012 à Paris
Mise à jour de Team Foundation Service
MechCommander 2 sur Windows 8
Entity Framework 5 Release Candidate e...
Cliquez pour lire la suite de l'article par richardc REACTIVE EXTENSIONS : CONSOMMER DES SERVICES AVEC RX PARTIE 3, LES PIèGES à éVITERREACTIVE EXTENSIONS : CONSOMMER DES SERVICES AVEC RX PARTIE 3, LES PIèGES à éVITER par Groc
Une mauvaise utilisation de rx lors de l'écriture d'une couche d'accès à des services peut conduire à des cas embarassants avec des erreurs mal gérées, des appels qui ne partent lorsqu'ils le devraient, et même des résultats incorrects . le tout nuis...
Cliquez pour lire la suite de l'article par Groc SHAREPOINT BLOG SITE, PROBLèME D'ARCHIVESSHAREPOINT BLOG SITE, PROBLèME D'ARCHIVES par junarnoalg
Dernièrement, nous avons migré le site
myTIC
vers un nouveau serveur SharePoint 2010. Dans les contenus que nous vouloins récupérer, nous avions un certain nombre de blogs.
Nous avons utilisé les commandes Power...
Cliquez pour lire la suite de l'article par junarnoalg
Logiciels
sDEVIS-FACTURES vlPRO (8.1.0.3)SDEVIS-FACTURES VLPRO (8.1.0.3)sDEVIS-FACTURES vlPRO a été mis au point pour les particuliers, créateurs, entrepreneurs, artisa... Cliquez pour télécharger sDEVIS-FACTURES vlPRO 974 Application Server (12.2.4.6)974 APPLICATION SERVER (12.2.4.6)Développez de puissantes applications dans un environnement de 'cloud computing', clusterisé, séc... Cliquez pour télécharger 974 Application Server vPicture (1.4.2.1)VPICTURE (1.4.2.1)Avec vPicture, hébergez vos images facilement et rapidement.
vPicture est un utilitaire simple, ... Cliquez pour télécharger vPicture Easy-Planning (2.2.1.6)EASY-PLANNING (2.2.1.6)Easy-Planning permet de créer des plannings sous la représentation de diagrammes et est adapté au... Cliquez pour télécharger Easy-Planning COM-BACKUP (2.0)COM-BACKUP (2.0)
COM-BACKUP est un logiciel de sauvegarde qui permet de planifier les sauvegardes de vos dossiers ...
Cliquez pour télécharger COM-BACKUP
|