2,155 Posted Topics
Re: Big welcome to Daniweb, enjoy your stay! | |
Re: Your INSERT statement is incorrect, it should read like - `INSERT INTO table_name (column1, column2, column3,...) VALUES (value1, value2, value3,...)` Then, why would you like to add large data (files, images etc) to a table field? The resources on your server will be huge if you have many users adding … | |
Re: a Very clear explanation can be found [HERE](https://www.geeksforgeeks.org/multidimensional-arrays-c-cpp/) | |
Re: As wordpress uses php, php is server side actions which means the blog will update etc on your server, you will have to explicitly refresh the page to run the browser side again to show the updates. You can do this using javascript, similar to something like this - <script … | |
Re: This is a lot of code for some tools that already exist, in my opinion go for one of the free tools. Datatables is very easy to use and comes with tons of samples as well with a well documented how to use setup. You can find it [HERE](https://datatables.net/) | |
Re: Reference your class php page at the top of your image page - require_once dirname(__FILE__) . '/your_image_clas_file_name.php'; Then make the call to the save function in your class file - $save_my_image = new Image(); //Remember that the class is called Image... $path = "/the_path_it_needs_to_be_saved_to"; $quality = 80; //or 90 etc, … | |
Re: a Few things I could pick up from the above - This is the part that is NOT creating an error, it is returning false as no aid is returned which means your entire statement is not initialized - // query users table to retrieve current admin's profile if(isset($_GET['aid'])) { … | |
Re: The one error explains this - > CS0103 is caused when you are using a name for a variable or method that does not exist within the context that you are using it. In order to fix the CS0103 error you will need to correct the name of the variable … | |
Re: Did you try to add your js files under your head section and not after your body code? Your form with the calender is loading and then it gets to your js files which means by the time it reads from your css file, the object was already loaded and … | |
Re: This actually not an error, the code behaves exactly as you asked it to by telling it that if your connection object is true (connected), return die and echo the error in this line of code - if ($conn) { die("Connection failed: " . $conn->connect_error); } You should change it … | |
Re: Please show us some code with a possible return of what you are asking, very unclear so not sure how to answer. | |
Re: You can find examples on how to re-write a url [HERE](https://webrewrite.com/url-rewriting-htaccess/) with a step by step tutorial. Also read [THIS](https://stackoverflow.com/questions/16388959/url-rewriting-with-php) as a solution. | |
Re: You can use tools for creating the best site maps. [Here](https://listoffreeware.com/list-of-best-free-sitemap-generator-software-for-windows/) are some tools. | |
Re: You can call each script in the order you want, something like this - <script type="text/javascript> function1(); //will call and execute function 1 function2(); //will call function 2 after 1 was executed, and so on. </script> | |
Re: See [THIS](https://www.daniweb.com/hardware-and-software/threads/523032/how-can-i-use-htaccess-file) similar question asked, and follwo links. | |
Re: Your code seems to be fine in returning your login data as you mentioned it matches with your db. This looks more like a file path error, add the following code at the top of each page in php and let us know what errors is returned - error_reporting(E_ALL); ini_set('display_errors', … | |
Re: You can try the EventListener to listen for the click event, when true, show your div with the textarea, like so - <div>All my other stuff in here...</div> <button>Show Comment</button> <div class="comment_box"> <form action="mailto:myemail@domain.com" method="post"> <p>Comments and suggestions:<br><textarea name="comments" rows="3" cols="30"></textarea><br><br> </p> <input type="submit" value="Send"> </form> </div> <!-- end of … | |
Re: I tend to use `var_dump($_SESSION['username']);` to show me any returned values. You can add a input text to also see teh return, the code looks fine - <div id="email"> <input type="text" value=" <?php //On age 2 $var_value = $_SESSION['username']; echo $_SESSION['username']; ?> /> ?> </div> | |
Re: Welcome David, have a fantastic time with us! | |
Re: You will use something like this - $colors: ( primary: #488aff, secondary: #32db64, danger: #f53d3d, light: #f4f4f4, dark: #222 ); More information on their [documents](https://ionicframework.com/docs/v3/theming/theming-your-app/) here | |
Re: You should try and loop through each row adn catch the characters you want to replace rather than just copying the entire file over via your list box. | |
Re: Firstly, add thsi to the top of your page to see any errors returned, this only whilst in development - `error_reporting(E_ALL); ini_set('display_errors', 1);` As we don't know what is in your data table, is there any records to be returnd that is < 1? What do you gte when you … | |
Re: Duplicate question on one asked after this. | |
Re: Firstly, welcome. I would start with some basic research on what is involved in creating a web app, then see how to make use of server connections and data transfers using basic CRUD. There are tons of tutorials online. | |
Re: Read more about [KEEP IT ORGANISED](https://www.daniweb.com/welcome/rules) | |
Re: You missed a semi-colon(;) at the end of your code - $chk['status'] = "success" //must be $chk['status'] = "success"; | |
Re: Have a look at their documentation which will guide you through all of the steps. [Jitsi docs](https://jitsi.github.io/handbook/docs/intro) | |
Re: You can either add the code that interferes with your css into your own css file to manipulate the design, in this case the ul element. You can also try to add your css file AFTER the java css file which mean the rest of your design is fine, this … | |
Re: You can try something like the below, play around so it works for you. When on mediascreens like smart phones, just change display options from i.e. inline to block etc. <!DOCTYPE html> <html> <head> <style> .item1 { grid-area: V; } .item2 { grid-area: A; } .item3 { grid-area: T; } … | |
My code executes as follow - 1) a Search page is loaded where session was already started, var-dump() shows the correct session info like username etc. 2) User enters a search value in a 3rd party script search box that forms part of my search page, I have no control … | |
Re: This is a VERY vague question and not well thought through. @Kumar, you honestly need to give us much more information AFTER you have done some proper google searching to refine your question in order for us to help you. | |
Re: You can use the overflow property to either scroll or to auto depending on what will work for you - .qoutetext { width: 60vw; height: 40vh; border-top: 1px dotted #ED8F20; border-bottom: 1px dotted #ED8F20; overflow: scroll; /*overflow: auto;*/ } This should fit the extra text to your div as required. … | |
Re: The norm is to search the data table for teh users email address as this is considered unique. Upon registration you need to check if a user firstly entered their email address, then check if it exists, if it does it means they are already registered. Now use this value … | |
Re: Sanket, yes you can. This thread is however 4 years old and belongs to a different poster. You need to open your own thread OR you can post your code under the one that you have opened earlier... As was mentioned in your earlier post, we do not recognise the … | |
Re: I picked up a few lines that might not have the desired return you want, try the following... $email = here@there.com; //Sample and not checked for validation... $sql="SELECT * FROM `customer_information_table` WHERE `email`='".$email."'"; $result = $db->query($sql); if($db->error) { exit("SQL error. <a href = './register.php'>return</a>"); } if(count($result) > 0) { exit("email … | |
Re: That is because your SELECT statement is only asking to return the FileNumber field value and that is the only value inserted into your table. You need to select all to return all data - cmd = New SqlCommand("SELECT * from Clients where StatusCo = '" & "108" & "'", … | |
Re: You missed a semi-colon - exit("please fill in all the fields. <a href = './register.php'>return</a>") //Change to ---> exit("please fill in all the fields. <a href = './register.php'>return</a>"); | |
Re: You can use teh jquery/javascript method - window.location.href = '/some/new/page'; Youn will put this in the next lines of code whehn your post was successful - success: function(data) { console.log(data); //Success Message == 'Title', 'Message body', Last one leave as it is swal('¡Success!', 'Request sent!', 'success'); window.location.href = 'goingtomynextpagenow.php'; }, | |
Re: VB6 is dead, try and upgrade tro a newer IDE, visual studio 2019 has a free version that you can start using. That being said, do a global variable and use iot throughout your application - Public txtUername as Text txtUsername = AbLogin.Text1.Text | |
Re: You can try Google and search for a solution i.e. what language etc etc. | |
Re: I have personally used MySqlcc (MySql Control Centre) which is a free download. It works really fast, no corruption of data etc. Try it and see. Downloadable from [URL="http://sourceforge.net/projects/mysqlcc/"]http://sourceforge.net/projects/mysqlcc/[/URL] | |
Re: Open your .vbp (Project file) in Notepad. Scroll to your frmName line, see that the path specified is the path you are using. Modify it, save the file and that should solve your problem. It should read - Form=frmName.frm If it shows any other paths, delete the paths... | |
Re: I had a similar issue recently, not sure if this will help in your case. I noticed repeated hits trying to login as admin or other users. I went into my servers log file (not sure if you have access to this - chat to your server admin), which recorded … | |
Re: "select ID from gts_users where Email='$email' && Password='$password' " 1) Your select statement is incorrect as you are trying to call just the ID, so all it returns is the ID, ot the Email which is required to search your other table to return the UserType. (Note to poster - … | |
Re: Is this running on a localhost server or an external server? It sounds like a firewall/port problem that is blocking your request. Need some more info unfortunately. | |
Re: Rather use a select/case block. return the drive names. If there is a C: drive letter from the returned data, show the detail in your textbox. | |
Re: Your code seems fine. It does however not show how you are loading the cart menu. The code should be updated on that page to "refresh" your cart menu with the amount. Please post the code where your cart is created. | |
Re: You can use this tutorial on how to create a chart pie with data from MySql. Learn to use Google to search for answers to your questions, I returned this tutorial from my 1st search - [Plus2Net Tutorial](https://www.plus2net.com/php_tutorial/chart-database.php) |
The End.