Digital Workshop

Welcome to the Digital Workshop Message Boards
It is currently December 22nd, 2024, 11:33 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 12 posts ] 
Author Message
 Post subject: Web Database opus Tutorials full of mistakes please help
PostPosted: February 18th, 2016, 10:39 am 
Offline

Joined: May 12th, 2015, 2:04 pm
Posts: 47
Opus: Opus 9.5
OS: Win 8
System: Intel Core i7 3.6Ghz
Good Day,

Please help me, this is my last hurdle before success (Thanks to Mackavi - wish I had his knowledge and understanding)

Opus Tutorials is more a headache then help...
Tutorial 1 of Opus Web Databasing -- they left out a bracket
Tutorial 2 they insert a random n and
Tutorial 3 they left ' ' out of the $storedpassword=$resultRow[ :evil: userpassword :evil: ];

Maybe they do it deliberate maybe not, but for a beginner like me that paid for this software I think that is a bit cruel, it took me 4 days to find the mistakes haha

Enywayz on the last tutorial I modified a bit to display the details in the database of Just the User that is trying to Login

My code:

Code:
<?php

$user = $_POST['user'];
$pass = $_POST['pass'];


$DBhost = "localhost";
$DBuser = "___";
$DBpass = "___";
$DBName = "qxeacpqg_myDB";

$connect = mysql_connect($DBhost,$DBuser,$DBpass);
$db = mysql_select_db($DBName,$connect);
$query = "SELECT * FROM clients_1 WHERE Name='$user'";
$result = mysql_query($query, $connect);

$row = mysql_fetch_array($result);
$data = "&var1=".$row['Name']."&var2=".$row['Surname']."&var3=".$row['Country']."&var4=".$row['Address'];
echo $data;

?>


But with no luck...yet again.

Whenever I changed $user ($query = "SELECT * FROM clients_1 WHERE Name='$user'";) to a user in my database eg. 'John'
it works fine. It looks like the variable ($user = $_POST['user'];) do not hold the information as expected.

Or Am I completely of the path.

Herewith the Login and PHP Hyperlink: http://www.cbt44.com/login.htm and http://www.cbt44.com/insert_3.php


For this message Matra has been thanked by : mackavi


Top
 Profile  
 
 Post subject: Re: Web Database opus Tutorials full of mistakes please help
PostPosted: February 19th, 2016, 11:56 am 
Offline
Godlike
Godlike
User avatar

Joined: March 21st, 2007, 10:44 am
Posts: 3188
Location: UK
Opus: Evolution
Your submit button appears to have a Post Web Data action followed by a Launch Web Page to the same script used in the previous action.

Basically, you send the data but then change to the PHP page.

You're supposed to send the data and then wait until it comes back and then use it. There is no reason to load the insert_3.php, it does the hard work on the server not your browser.

As for Robin's Tutorial, as with all posts, it was designed to answer questions at the time of posting, not 11 years later.

</mack>

_________________
When you have explored all avenues of possibilities, what ever remains, how ever improbable, must be the answer.

Interactive Solutions for Business & Education
Learn Anywhere. Learn Anytime.

www.interaktiv.co.uk
+44 (0) 1395 548057


Top
 Profile Visit website  
 
 Post subject: Re: Web Database opus Tutorials full of mistakes please help
PostPosted: February 19th, 2016, 12:43 pm 
Offline

Joined: May 12th, 2015, 2:04 pm
Posts: 47
Opus: Opus 9.5
OS: Win 8
System: Intel Core i7 3.6Ghz
Hi Mackavi thank you for replying,

Is interaktiv your company and what service do you offer?

As per my post:

Yes I know, but couldn't find support from Opus (send them a couple of emails) so I just took a change on old posts, because I need it working by today, but it looks like I need a miracle now.

Back to my dilemma,

I forgot I had to launch action in, I was just checking if the variable where sending correctly. I had it without the Launch, and nothing worked.

I changed the button back to "Go to Page" --> account.htm, but nothing displays ( and I am putting the correct database user and password in )

It seems like the variables user and pass is empty?? because if I change the variables to something like "John" and "password123" (not variables but String) my code works fine.

It looks like the problem is with sending the variables from Opus to insert_3.php.

Please help me sir, I am well under pressure because of this.


For this message Matra has been thanked by : mackavi


Top
 Profile  
 
 Post subject: Re: Web Database opus Tutorials full of mistakes please help
PostPosted: February 19th, 2016, 1:43 pm 
Offline
Godlike
Godlike
User avatar

Joined: March 21st, 2007, 10:44 am
Posts: 3188
Location: UK
Opus: Evolution
Yes, Interaktiv is my company. We offer full support for development of e-learning and application development including Opus Pro / HTML.

You are right, the post is not sending anything to the script.

It should look like this:

http://sandbox.interaktiv.co.uk/1/post.jpg

With your URL of course, but the label and variable columns should match what you are using in Opus and the PHP script.

</mack>

_________________
When you have explored all avenues of possibilities, what ever remains, how ever improbable, must be the answer.

Interactive Solutions for Business & Education
Learn Anywhere. Learn Anytime.

www.interaktiv.co.uk
+44 (0) 1395 548057


Top
 Profile Visit website  
 
 Post subject: Re: Web Database opus Tutorials full of mistakes please help
PostPosted: February 19th, 2016, 1:49 pm 
Offline

Joined: May 12th, 2015, 2:04 pm
Posts: 47
Opus: Opus 9.5
OS: Win 8
System: Intel Core i7 3.6Ghz
It does match:

I can't attach n screenshot it won't let me or I am too dumb but it basicly looks like this:

String | Variable
user | user
pass | pass


For this message Matra has been thanked by : mackavi


Top
 Profile  
 
 Post subject: Re: Web Database opus Tutorials full of mistakes please help
PostPosted: February 19th, 2016, 2:08 pm 
Offline

Joined: May 12th, 2015, 2:04 pm
Posts: 47
Opus: Opus 9.5
OS: Win 8
System: Intel Core i7 3.6Ghz
Herewith link:

http://www.cbt44.com/pic1.htm

I changed the String | Variable to
name | user
password | pass

and the php too:

<?php

$user = $_POST['name'];
$pass = $_POST['password'];


$DBhost = "localhost";
$DBuser = "___";
$DBpass = "___";
$DBName = "qxeacpqg_myDB";

$connect = mysql_connect($DBhost,$DBuser,$DBpass);
$db = mysql_select_db($DBName,$connect);
$query = "SELECT * FROM clients_1 WHERE Name='$user'";
$result = mysql_query($query, $connect);

$row = mysql_fetch_array($result);
$data = "&var1=".$row['Name']."&var2=".$row['Surname']."&var3=".$row['Country']."&var4=".$row['Address'];
echo $data;

?>

but no luck


For this message Matra has been thanked by : mackavi


Top
 Profile  
 
 Post subject: Re: Web Database opus Tutorials full of mistakes please help
PostPosted: February 19th, 2016, 2:21 pm 
Offline
Godlike
Godlike
User avatar

Joined: March 21st, 2007, 10:44 am
Posts: 3188
Location: UK
Opus: Evolution
Is console throwing any errors?

If you haven't used a console - watch this: https://www.youtube.com/watch?v=B-L_aGl ... q&index=13

</mack>

_________________
When you have explored all avenues of possibilities, what ever remains, how ever improbable, must be the answer.

Interactive Solutions for Business & Education
Learn Anywhere. Learn Anytime.

www.interaktiv.co.uk
+44 (0) 1395 548057


Top
 Profile Visit website  
 
 Post subject: Re: Web Database opus Tutorials full of mistakes please help
PostPosted: February 19th, 2016, 2:58 pm 
Offline
Godlike
Godlike
User avatar

Joined: March 21st, 2007, 10:44 am
Posts: 3188
Location: UK
Opus: Evolution
Forget above, I can test that and it's clear.

</mack>

_________________
When you have explored all avenues of possibilities, what ever remains, how ever improbable, must be the answer.

Interactive Solutions for Business & Education
Learn Anywhere. Learn Anytime.

www.interaktiv.co.uk
+44 (0) 1395 548057


Top
 Profile Visit website  
 
 Post subject: Re: Web Database opus Tutorials full of mistakes please help
PostPosted: February 19th, 2016, 3:12 pm 
Offline

Joined: May 12th, 2015, 2:04 pm
Posts: 47
Opus: Opus 9.5
OS: Win 8
System: Intel Core i7 3.6Ghz
Okay dit the youtube video, got the console and got this via the console:

&var1=t&var2=t&var3=t&var4=null

This is exactly what I need, but when I go to http://www.cbt44.com/account.htm on the address bar, nothing displays, it is suppose to display.
t t t null

Does it matter if my variables in opus is set to page and not publication


For this message Matra has been thanked by : mackavi


Top
 Profile  
 
 Post subject: Re: Web Database opus Tutorials full of mistakes please help
PostPosted: February 19th, 2016, 9:41 pm 
Offline
Godlike
Godlike
User avatar

Joined: March 21st, 2007, 10:44 am
Posts: 3188
Location: UK
Opus: Evolution
Okay, I've moved the video lessons around and uploaded Lesson 15 as PHP communication.

Have a go at following the lesson to see if you can get it working.

</mack>

_________________
When you have explored all avenues of possibilities, what ever remains, how ever improbable, must be the answer.

Interactive Solutions for Business & Education
Learn Anywhere. Learn Anytime.

www.interaktiv.co.uk
+44 (0) 1395 548057


Top
 Profile Visit website  
 
 Post subject: Re: Web Database opus Tutorials full of mistakes please help
PostPosted: February 22nd, 2016, 2:53 pm 
Offline

Joined: May 12th, 2015, 2:04 pm
Posts: 47
Opus: Opus 9.5
OS: Win 8
System: Intel Core i7 3.6Ghz
Good Day Mr Mackavi,

Thank you so much for all your help on this subject and especially for the video tutorial. Now I understand how it works.

Without you I could never have figured it out.

Will be in touch.


For this message Matra has been thanked by : mackavi


Top
 Profile  
 
 Post subject: Re: Web Database opus Tutorials full of mistakes please help
PostPosted: February 22nd, 2016, 9:25 pm 
Offline
Godlike
Godlike
User avatar

Joined: March 21st, 2007, 10:44 am
Posts: 3188
Location: UK
Opus: Evolution
Glad it helped.

</mack>

_________________
When you have explored all avenues of possibilities, what ever remains, how ever improbable, must be the answer.

Interactive Solutions for Business & Education
Learn Anywhere. Learn Anytime.

www.interaktiv.co.uk
+44 (0) 1395 548057


Top
 Profile Visit website  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 12 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 25 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group