close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Hi! I shall work with Dreamweaver Creative Cloud CS6. May I work with "generate streamline generate Mysqli?" Best

Thread began 8/27/2015 5:52 am by anonymous | Last modified 8/27/2015 12:17 pm by Ray Borduin | 319 views | 1 replies |

anonymous

Hi! I shall work with Dreamweaver Creative Cloud CS6. May I work with "generate streamline generate Mysqli?" Best

I have several page to convert. Your system help me to gain time. For example:
<?php if(!isset($_GET['VARtheme'])) $_GET['VARtheme']=1;//init de VARtheme si non déclaré ?>
<?php require_once('../Connections/ConnexionBoutiquemx.php'); ?>
<?php
// le caractère ' (sous le 4) provoque une erreur de syntaxe (??) dans la base MySql
//<meta http-equiv="Content-Type"... doit-être réactivé dans le serveur 1984 - pour les charactère accentués Français
mysql_select_db($database_ConnexionBoutiquemx, $ConnexionBoutiquemx);
$query_rsTheme = "SELECT * FROM aperorubriques ORDER BY theme ASC";
$rsTheme = mysql_query($query_rsTheme, $ConnexionBoutiquemx) or die(mysql_error());
$row_rsTheme = mysql_fetch_assoc($rsTheme);
$totalRows_rsTheme = mysql_num_rows($rsTheme);
// La variable ci-dessous contenait "Mehari" que j'ai supprimé. ça ser à rien!
$coltitre_rsCatalogue = "";
if (isset($_GET['VARtitre'])) {
$coltitre_rsCatalogue = (get_magic_quotes_gpc()) ? $_GET['VARtitre'] : addslashes($_GET['VARtitre']);
}
$coltheme_rsCatalogue = "1";
if (isset($_GET['VARtheme'])) {
$coltheme_rsCatalogue = (get_magic_quotes_gpc()) ? $_GET['VARtheme'] : addslashes($_GET['VARtheme']);
}
mysql_select_db($database_ConnexionBoutiquemx, $ConnexionBoutiquemx);
$query_rsCatalogue = sprintf("SELECT aperorubriques.theme, apero.reference, apero.titre, apero.auteur, apero.prix,apero.photo FROM aperorubriques, apero WHERE apero.rubriqueID=%s AND dispo='OUI' AND aperorubriques.ID=apero.rubriqueID AND apero.titre LIKE '%%%s%%'", $coltheme_rsCatalogue,$coltitre_rsCatalogue);
$rsCatalogue = mysql_query($query_rsCatalogue, $ConnexionBoutiquemx) or die(mysql_error());
$row_rsCatalogue = mysql_fetch_assoc($rsCatalogue);
$totalRows_rsCatalogue = mysql_num_rows($rsCatalogue);
?>
<?php require_once('../Connections/ConnexionBoutiquemx.php');
mysql_select_db($database_ConnexionBoutiquemx, $ConnexionBoutiquemx);
$query ="SELECT twitter, facebook from xy WHERE flag=9";
$re = mysql_query($query) or die(mysql_error());
$do = mysql_fetch_assoc($re);
$facebook = "$do[facebook]";
$twitter = "$do[twitter]";
?>
become:
<?php if(!isset($_GET['VARtheme'])) $_GET['VARtheme']=1;//init de VARtheme si non déclaré ?>
<?php require_once('../Connections/ConnexionBoutiquemx.php'); ?>
<?php
//<meta http-equiv="Content-Type"... doit-être réactivé dans le serveur 1984 - pour les charactère accentués Français
$query_rsTheme = "SELECT * FROM aperorubriques ORDER BY theme ASC";
$rsTheme = mysqli_query($link,$query_rsTheme); //paramètre $link
$row_rsTheme = mysqli_fetch_assoc($rsTheme);
$totalRows_rsTheme = mysqli_num_rows($rsTheme);
$coltitre_rsCatalogue = "";
if (isset($_GET['VARtitre'])) {
$coltitre_rsCatalogue = (get_magic_quotes_gpc()) ? $_GET['VARtitre'] : addslashes($_GET['VARtitre']);
}
$coltheme_rsCatalogue = "1";
if (isset($_GET['VARtheme'])) {
$coltheme_rsCatalogue = (get_magic_quotes_gpc()) ? $_GET['VARtheme'] : addslashes($_GET['VARtheme']);
}
$query_rsCatalogue = sprintf("SELECT aperorubriques.theme, apero.reference, apero.titre, apero.auteur, apero.prix,apero.photo FROM aperorubriques, apero WHERE apero.rubriqueID=%s AND dispo='OUI' AND aperorubriques.ID=apero.rubriqueID AND apero.titre LIKE '%%%s%%'", $coltheme_rsCatalogue,$coltitre_rsCatalogue);
$rsCatalogue = mysqli_query($link,$query_rsCatalogue);
$row_rsCatalogue = mysqli_fetch_assoc($rsCatalogue);
$totalRows_rsCatalogue = mysqli_num_rows($rsCatalogue);
?>
<?php require_once('../Connections/ConnexionBoutiquemx.php');
$query ="SELECT twitter, facebook from xy WHERE flag=9";
$re = mysqli_query($link,$query);
$do = mysqli_fetch_assoc($re);
$facebook = "$do[facebook]";
$twitter = "$do[twitter]";
?>
and ... it works well.
But I have to do it during several hours, with mouse and keybord.
Is yor system okay to do that quickly?
Best

Sign in to reply to this post

Ray BorduinWebAssist

Yes, it should be much quicker to use our extensions to generate the MySQLi code for you.

Sign in to reply to this post
Did this help? Tips are appreciated...

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...