- Strength to Increase Rep
- +5
- Strength to Decrease Rep
- -1
- Upvotes Received
- 18
- Posts with Upvotes
- 16
- Upvoting Members
- 12
- Downvotes Received
- 5
- Posts with Downvotes
- 4
- Downvoting Members
- 4
I am a coder.
- Interests
- Coding, video games, music, reading blogs
- PC Specs
- Intel core i5 - 3337u RAM = 12GB HDD=750GB
74 Posted Topics
Hi, my name is Appoh Gideon an eighteen year old coder, mastering in HTML5, CSS3, SASS, JS, AJAX, PHP and MySQL. I didn't realise this earlier but I needed to introduce myself. And I love daniweb. | |
Re: Awesome, your tutorials are very understandable. | |
Re: What is the real error you are having? and If not a real error echo your sessions out and see whether they are working. ![]() | |
Re: Have you executed this query in the mysql client or phpmyadmin | |
Re: From the discussion, your question is not all that clear. But if you want the value of $v, I'm afraid you are already having it when you used echo '<br>value =>'.$v; So if you want something else, can you kindly elucidate your question. | |
Re: If you are a person who learns best by text the codeacademy or w3schools can help. But if you learn best by video, then I recommend the video playlist on [phpacademy channel](https://www.youtube.com/user/phpacademy) on youtube. | |
Re: I don't get you very well can you please explain it further and can you please edit your question (full of mistakes, sorry) . ![]() | |
I'm building an API and on the aspect of sending a mail. I'm getting mail not sent error. In my API, the front-end sends a JSON request consisting of the mail parameters. { "to":"gideonappoh@gmail.com", "subject":"Testing Reviewer's Page", "body": "Hello Gideon", "headers":"oksana.v@scopicsoftware.com" } I then decode them and pass them through … | |
Re: what took you so long to post this. You are great! | |
Re: @Stephano, from what you are saying it means that every thing is okay with the database connection. If so, then can you check your logic well. Sometimes it happens when dealing with especially logical operators. | |
![]() | Re: Yh I agree with andrevanzuydam, some people has very long names (both first and last ones). So 100 chars will be okay. But one thing I can add is that, if you know the hashing method you will use on the passwords, set the password length to the hash length. … ![]() |
Re: Your question is not all that understandable but the little knowledge I have is that you are trying to filter the results returned from a search field. My suggestion is that you can make this asynchronously with AJAX. But if you have tried something post your codes so that we … ![]() | |
Re: Hello Mohammed, helping people is the job of a forum, but you need to show us your efforts first. With your codes we will help you find your way out of the concerned problem. | |
Re: @showman, If I were in your shoes, to think of security and flexibility, I will upload the file to my server for the first instance, then when the verification of the initial form data has returned true. I will just link to the uploaded file as an attachment to the … | |
Re: Yes, I agree with diafol. When selecting user data based on the condition of the username (i.e. WHERE username = ?), provided the username is not a unique field you can have multiple rows returned. So is always advisable that at the login page, after a successful login, a user … | |
Re: Check simple mvc tutorials from Alex Garrett at [phpacademy](https://www.youtube.com/watch?v=OsCTzGASImQ) on youtube. | |
Re: Yh, your question does not justify the error you are having right now. You said PDO but the error is in mysqli. Also you are not querying the database for the `$result1` instead fetching the array of a string. Can you show the codes for the connection. | |
I am a 19 year old guy who is yet to get a CS degree from the university. I learned web development on my own from resources online. Mostly from youtube videos precisely from thenewboston and phpacademy and a few text-based tutorials from w3schools.com. I am good with HTML, HTML5, … ![]() | |
Re: Yes I agree with pritaeas, using mysql keywords as raw text renders your sql statement invalid. For my personal preference I usually like using column names nested in back ticks. Try this. $decline = $dbh->prepare("UPDATE users SET `status` = ? WHERE `name` = ?, `username` = ?, `email` = ?, … | |
Re: @tobyITguy, I agree with pritaeas. There was no string represent `$email_message` so the first one must not be concatenated. | |
Re: are you trying to insert into the database with the select statement or ...? | |
I am a 19 year old guy who is yet to get a CS degree from the university. I learned web development on my own from resources online. Mostly from youtube videos precisely from thenewboston and phpacademy and a few text-based tutorials from w3schools.com. I am good with HTML, HTML5, … | |
Re: I totally agree with jkon, OOP is OOP in your style. But there are a few things you should also know which will help in your life of programming. This include errors you made in both PHP and HTML. (NOTE: reference XHTML, PHP5 and **My Personal Interests**). 1. The inclusion … ![]() | |
Re: Yh. At least show us what you got so that we might help. | |
Re: Try this Mike. $subUsername = trim($_POST["user"]); $sql = "SELECT userID, username, password FROM user WHERE username = :user"; $q = $conn->prepare($sql); $q->bindParam(':user', $subUsername); $q->execute(); $result = $q->fetchAll(PDO::FETCH_ASSOC); print_r($result); echo "</p>"; print_r($subUsername); echo "</p>"; print_r($subPassword);?> You were adding a parenthesis to the Param and aslo you did not use the right … | |
Re: In my applications I use the real ajax language i.e. new XMLHttpRequest () with the xmlhttp.onreadystatechange. so in the the xmlhttp.send () I send the necessary parameters for the database queries to a php file through get. Example; <script type="text/javascript"> function load () { var xmlhttp = new XMLHttpRequest (); … | |
Re: I agree perfectly with pritaeas. I will advice you to go and learn the basis of php and programming. But since you are a beginner, I thought of refreshing myself with your problem. I have commented it very well for you to understand. Try it and I hope it solved … | |
Re: Justin_14, this is a setting in php.ini file. If you have controll of the php.ini file, change memory limit form 64M or 32M to 128M(Maximum Limit). If not try overriding the php.ini configurations with you .htaccess file in you public folder. Use this instead `php_memory_value_limit 128M` | |
Re: In your question you said, `in the console this appears : Uncaught SyntaxError: missing ) after argument list page.php:64`, but the codes you have posted ends on line 52. Can you please show all your codes? | |
Re: @Trabelsi, I should not be talking for everyone but it seems you have not specified the exact problem you are having. Please specify the exact difficulty you are having. It's like you just posting your codes but there's no question. We are all willing to help one way or the … | |
Hello everyone, it seems that most often many projects or let me say jobs requires PHP frameworks. But I have not used a framework before and I love coding in the actual php OOP syntax. Is it necessary to use a framework for a project? ![]() | |
Re: Please mysql is deprecated, try to get used to mysqli or PDO. | |
Re: @jollydd, you sql is not working because you are running php codes in it. Follow pritaes tutorial and run that sql in phpMyadmin. By the way mysql is deprecated try to use PDO or Mysqli | |
Re: I also agree on the ajax concept but let me throw light on this point. You can change the input type="submit" to input type="button" and give the form no action and method. So on the button you use the event handler, onClick then ajax. If the data is sensitive then … | |
Re: I want to ask if you are passing only one specific value? **If YES** As ryantroop was saying your js function must accept a parameter or an argument. Your PHP codes will be while ($row = mysql_fetch_array($res)) { echo "<tr>". "<td> <p><button onClick=\"func({$row[0]})\" >View</button></p> </td>" ."</tr>"; } Then in your … | |
Re: Its my passion. I love to program for hours and burn candles at night for nothing but just pleasure. I love programming. | |
Re: Hmm, you are not asking for help though, but I think there are more than enough wordpress plugins to solve your photo album problem. You check [WordPress Photo Gallery Plugins](https://wordpress.org/plugins/photo-gallery/) | |
Re: Yes, I agree with pritaes, when executing sql in phpmyadmin and when there is an error it shows the place where the error is occuring. Example #1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax … | |
Re: @ribrahim, your codes are correct is just that you must include the results in a foreach statement. So here goes the codes; while ( $rows = mysqli_fetch_assoc($result)){ $description = $rows['ChargesTitle']; $quantity = $rows['itemqty']; $Official = $rows['itemAmountO']; $Professional = $rows['itemAmountP']; $discountAmount = $rows['discountAmount']; $discount = number_format($Professional, 2, '.', '') * $quantity … | |
Re: Welcome, to the coolest place to interact with seasoned programmers. Daniweb. | |
Re: Provided your menus open new php files or pages. You can use conditional statements and a class in css to produce te editing. So if for example Home opens index.php Contact opens contact.php About Us opens about.php You first create a class let me say select in css .selected { … ![]() | |
Re: Kind of wierd codes here. Can you please clearify your codes? We are always here to help but can't help if we don't understand what we are seeing. | |
Re: Yh, also using WYSIWYG won't help you when it comes to maintaining your codes and debugging. | |
Re: thanks man, i got to look at this | |
Re: Thumbs up, very very awesome, you just pin pointed my most hated thing in PHP, spaghetti codes. | |
Re: Not all that understandable but thanks for your time. | |
Re: Provided that your insert query is "INSERT INTO `users` (`username`) VALUES ({$str})" Make this just a literal by putting the variable `$str` into single quotation marks. So use "INSERT INTO `users` (`username`) VALUES ('{$str}')" I hope this solves your problem, or if not show your insert and select queries | |
Re: Paul-lucas, I don't know which framework or cms you are using, but I think the get results method only selects information from the database. Reason Updating the database only affects rows but does not output any results. So kindly look into your framework's or cms' docs and get the method/function … |
The End.