-
Began Watching What To Download Today From Youtube ?
Fellow Programmers, An hr before I roll off to sleep, I nearly always download for an hr entertainment or php tutorial videos from youtube. Got about 100 downloads at present … -
Replied To a Post in Laravel Framework
Open this link: * https://www.visualstudio.com/downloads/ Click on **Other Tools and Frameworks** and download *Microsoft Visual C++ Redistributable for Visual Studio 2017* for your platform, that should install the missing library. … -
Replied To a Post in Codeigniter , PHP (submit contact form to email)
It, probably, happens because you are calling the session inside `application/core/MY_Loader.php` but you are loading it from the controller, which is executed after the MY_Loader. Have you tried to autoload … -
Replied To a Post in Codeigniter , PHP (submit contact form to email)
Okay, consider to use the identical operator `===` on line 20: if ($this->form_validation->run() == FALSE) The `alpha_space_only()` callback can fail when using accented characters like `àèéìòùñ`, so you may want … -
Replied To a Post in Codeigniter , PHP (submit contact form to email)
Hello KK, from the screenshot is seems you are trying to load CI resources from outside the application folder. Is Contact.php a CI controller? Can you share it? Remember to … -
Began Watching Codeigniter , PHP (submit contact form to email)
Hello. I'am using php codeigniter for my task here. i just have to use it. its all set up at the first. so i kinda not understand the path. I've … -
Replied To a Post in What Is The Difference Between A Php Statement And A Php Expression ?
Have you read this? http://php.net/manual/en/language.expressions.php Basically a statement can be an expression. And: > The simplest yet most accurate way to define an expression is "anything that has a value" … -
Began Watching What Is The Difference Between A Php Statement And A Php Expression ?
Programmer Folks! I first started learning php in September 2015. In 2 wks I read the whole tizag tutorial after understanding it. http://www.tizag.com/phpT/syntax.php (Browse the chapters list on the leftside … -
Replied To a Post in Clearing files using PuTTY/Terminal
Hi, I don't want to add confusion, but I wonder if there is an open process pointing to an unlinked file in that directory. Try something like: lsof -nP +L1 … -
Began Watching Clearing files using PuTTY/Terminal
Hello, I've joined Daniweb months ago, but haven't really had the time to post here. I apologize if I posted in the wrong section, as I tried to look for … -
Replied To a Post in sqlite3 OperationalError: no such table: table
Hi! In addition to previous suggestion: if the **path** is wrong or does not have write permissions Python would return: sqlite3.OperationalError: unable to open database file Instead you get: sqlite3.OperationalError: … -
Began Watching sqlite3 OperationalError: no such table: table
import sqlite3 datafile = 'XZ704.DB' datadir = '/full_path_to/SQLITE_FILES/' db = datadir+datafile conn = sqlite3.connect(db) cur = conn.cursor() cur.execute("SELECT * FROM Airports LIMIT 1") --- OperationalError: no such table: Airports --- … -
Gave Reputation to diafol in Laravel Framework
@cereal. I don.t think he.s answering any questions so that we can resolve this in under 30 posts. You.ve got more patience than me ;) -
Replied To a Post in Passing Multiple variables in a URL
> Am I missing something? Or doing this completly wrong? It's difficult to say because I don't see the current code you are using. On top of dogReview.php page, right … -
Replied To a Post in Laravel Framework
## Do you have php7 installed? -
Began Watching Laravel Framework
Hello, I am trying to install laravel for the first but unable to do so. I already install the composer and it has error since it request php7.dll is missing … -
Replied To a Post in Passing Multiple variables in a URL
If you append parameters to the landing page: dogReview.php?u=USER&dogID=123 Then you can access those values by using `$_GET`: $user = $_GET['u']; $dogID = $_GET['dogID']; `$_SESSION`, instead, is reserved to values … -
Replied To a Post in Passing Multiple variables in a URL
Hi, can you show the previous step, i.e. the code used to set the session variables? -
Began Watching Passing Multiple variables in a URL
I passed two parameters in the URL. Now I need to retrieve the parameters log_id and dogID onto the next page to process a form. But I can retrieve the … -
Gave Reputation to Warren_4 in Ubuntu alongside W10 (or alone) on a PC with 7th Generation processor
SOLVED! It is all about the Brave New World of UEFI. After many unsuccessful tries with 16.10, I started trying 17.04 and succeeded but what I learned probably works for … -
Replied To a Post in how to add data into xml?
Hi, once you load the document, create an element (customer) inside the root (customers), then create the children elements of customer and append them to it, at the end append … -
Began Watching how to add data into xml?
<customers> <customer> <ID>C1</ID> <FirstName>Jack</FirstName> <SurName>Wong</SurName> <Email>jack@hotmail.com</Email> <Password>081292</Password> </customer> <customer> <ID>C2</ID> <FirstName>Ashley</FirstName> <SurName>Rachael</SurName> <Email>ashley@hotmail.com</Email> <Password>081292</Password> </customer> <customer> <ID>C3</ID> <FirstName>Vongola</FirstName> <SurName>Steve</SurName> <Email>vongola@hotmail.com</Email> <Password>081292</Password> </customer> </customers> I have a existing xml showing like … -
Replied To a Post in What Is Wrong With Number Of Rows Count Function ?
> I don't know what this is as still a beginner: var_dump($numrows); var_dump() returns information about expressions `TRUE < FALSE` or variables. For example: $stmt = TRUE === TRUE || … -
Replied To a Post in What Is Wrong With Number Of Rows Count Function ?
Hi, what you get with `var_dump($numrows);`? Besides, look at your query: SELECT * FROM users WHERE usernames='abc' OR emails='abc' AND passwords='WRONG_pass'; Basically it is like writing: SELECT TRUE OR FALSE … -
Began Watching What Is Wrong With Number Of Rows Count Function ?
Guys & My Ladies, This LOGIN.php was working lastnight and so I don't know why not now. The ELSE at 53 gets triggered even though I have typed the right password! … -
Replied To a Post in Why my multiple delete button not working?
Hi! This variable `$dweetcom_borang` is not defined in the script and it is used in the delete statement: $sql = "DELETE FROM $dweetcom_borang WHERE id=$del_id"; I see, however, that in … -
Began Watching Why my multiple delete button not working?
Hi guys, can you help me to solve my problem. i have create coding table for my database. i mean i have a form and when user fill in their … -
Replied To a Post in mysqli_select_db() expects parameter 1 to be mysqli, string given in C:\wa
**@Luzinete** Hi, please, open a new thread with the error message and the code that generates that error. -
Began Watching mysqli_select_db() expects parameter 1 to be mysqli, string given in C:\wa
<?php $con = mysqli_connect("localhost","root","","register"); if (!$con) { die(' connection error: ' . mysql_error()); } $name=$_POST['name']; $fname=$_POST['fname']; $dob=$_POST['dob']; $address=$_POST['address']; $ph_no=$_POST['ph_no']; $email=$_POST['email']; $zip=$_POST['zip']; $phd_marks=$_POST['phd_marks']; $ph_out=$_POST['ph_out']; $ph_study=$_POST['ph_study']; $ms_marks=$_POST['ms_marks']; $ms_out=$_POST['ms_out']; $ms_study=$_POST['ms_study']; $ma_marks=$_POST['ma_marks']; $ma_out=$_POST['ma_out']; $ma_study=$_POST['ma_study']; … -
Gave Reputation to diafol in insert pdo multiple checkbox value in one column into database and display
Sorry keep thinking of other stuff to add... If you have less than 32 checkboxes and you will never go over this, then you can use the following: //hardcoding these … -
Replied To a Post in insert pdo multiple checkbox value in one column into database and display
Hi, read the error carefully, it says: > Error: SQLSTATE[HY093]: Invalid parameter number: parameter was not defined. And look at your prepared statement: $query = $pdo->prepare('INSERT INTO subscriptions (name, email, … -
Began Watching insert pdo multiple checkbox value in one column into database and display
Hi i am trying to insert pdo multiple checkbox value in one column into database and display it to the user, but i am getting this error Error: SQLSTATE[HY093]: Invalid … -
Gave Reputation to rproffitt in Add Pagination to my script
Given all the prior work on this, shouldn't we be using off the shelf solutions (wheels)? Example at https://github.com/BenGriffiths/pdo-mysqli-pagination -
Replied To a Post in PHP7 and how you've adapted
> Has 7 made any difference to the way you code? A bit. To be honest, a part personal code, I have used PHP 7 only for one client's project … -
Began Watching PHP7 and how you've adapted
Just a question to seasoned PHPers, who have been working with 5- for a while. Has 7 made any difference to the way you code? Are you using any of … -
Replied To a Post in Updating Mysql Database
If you manually run the query, does it works? If, for example: you are using InnoDB, autocommit is disabled, then there could be a deadlock. A part from that, use … -
Began Watching Updating Mysql Database
Hi Everyone, I have a real noob question please, I am trying to update a mysql database using the code below, I know the invoice number variable is correct, But … -
Replied To a Post in How to Update inserted data php mysqli
Hi, at line 7 you have: $update_id = $post_id; while `$post_id` is initialized at line 68: $post_id = $row_post['post_id']; Which in practice depends on `$edit_id` defined at line 60: $edit_id … -
Began Watching How to Update inserted data php mysqli
**I can't update inserted data via GUI, Its working well on inserting records before I modify it, and when am trying to modify in order to update inserted data its … -
Replied To a Post in DaniWeb breaking links in posts
Hello Dani, I don't think it's the user agent, I'm testing with [Phantomjs](http://phantomjs.org/) and it uses this user agent: Mozilla/5.0 (Unknown; Linux i686) AppleWebKit/538.1 (KHTML, like Gecko) PhantomJS/2.1.1 Safari/538.1 The … -
Replied To a Post in Dumb Question...Unexpected T_While Error
Hi, can you provide the error message? -
Began Watching Dumb Question...Unexpected T_While Error
Guys, i am getting an unexpected T_While Error on my code, I cannot figure it out. can you help? ` <?php` $sql = "SELECT id, u_name, u_email, subj, phone FROM … -
Replied To a Post in How to get image name in PHP
Hi! You can use `pathinfo()` or a [directory iterator:](http://php.net/manual/en/class.directoryiterator.php) $ext = pathinfo($file)['extension']; BUT right now the `img()` function can, potentially, allow the access to the contents of any directory on … -
Began Watching How to get image name in PHP
How do i get the name of the image without the extension at the end ex. (.jpg) i got this code **functions.php** function get_image($id="1") { ?> <img class="img-responsive img-portfolio img-hover" … -
Replied To a Post in string related problem
Hi, I do not see the conditional statement to apply the comma. Do you have an example of the input? -
Began Watching string related problem
i need soluton about this problem. My problem is here , i submitted my code to codeforces , they expected the result could be ".t.r," but they found my code's … -
Replied To a Post in Warning: mysqli_close() expects parameter 1 to be mysqli, null given in
It is possible. Do you see the requests in the web server logs? Also you can try Postman or httpie: * https://www.getpostman.com/ * https://httpie.org/ Send a request to the PHP … -
Replied To a Post in PC stuck on "Please insert external storage media and press OK"
Hi, enter the bios, change the start up order to read the USB media before than the primary disk, save and restart. Here you can find more suggestions: * https://answers.microsoft.com/en-us/insider/forum/insider_wintp-insider_install/performing-a-windows-10-update-everything-seemed/663f38cf-b941-431e-858f-2881c7793ff1?page=1 … -
Began Watching PC stuck on "Please insert external storage media and press OK"
I tried to update Windows 10 but I didn't have enough storage so it made me use a flash drive to complete the update. I restarted the computer when it … -
Replied To a Post in Warning: mysqli_close() expects parameter 1 to be mysqli, null given in
> I am not sure where to enter the additional php you provided. Do not consider it anymore, I thought the request and response was between PHP pages and I …
The End.