Posts
 
Reputation
Joined
Last Seen
Ranked #493
Strength to Increase Rep
+5
Strength to Decrease Rep
-1
100% Quality Score
Upvotes Received
10
Posts with Upvotes
10
Upvoting Members
8
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
7 Commented Posts
1 Endorsement
Ranked #858
Ranked #1K
~43.2K People Reached
About Me

I'm a web developer and and an SEO specialist.

Interests
Web development, mobile app development and SEO
Favorite Tags
Member Avatar for mexabet

I have a two-step login form. In the first step, I have "username" as "id" and "name" of the text input. I also have "password" as id and "name" of the second input field, where the user is prompted to enter username and password. In the second step, I have …

Member Avatar for Dani
0
74
Member Avatar for mexabet

I have two MySQL tables, which I want to SELECT using a single PDO query and positional placeholders. I've been going through similar questions here to find a solution, but none seems to match the issues I'm having. The following code is the section of my script: <?php // query …

Member Avatar for mexabet
0
944
Member Avatar for mexabet

I'm trying to redirect user to "**userinfo.php**" after successful registration, but the browser terminates the redirection because it goes into endless loops. Moreover, I need your insight on if the script is secure or not. I need your help, please. Thanks. The following is the "**register.php**" script: <?php // include …

Member Avatar for Dani
0
355
Member Avatar for mexabet

I'm struggling to build a PHP registration script using PDO prepared statements with positional placeholders. But the MySQL queries don't execute. `var_dump();` doesn't display any error. Please, I need your help to fix this. Your time and input are much appreciated in advance. Thanks. **register.php:** <?php // include configuration file …

Member Avatar for rproffitt
0
623
Member Avatar for mexabet

I'm struggling to add a course to a MySQL database table using PDO prepared query with positional placeholders. When the form is submitted, the database table is not updated, as expected and no error is displayed. Please, where exactly do I place `var_dump()` to display the error? And how can …

Member Avatar for mexabet
0
244
Member Avatar for mexabet

I'm struggling to create a two-paged form using $_SESSION. What I want to achieve is the first page (page1.php) requires the user to enter his/her email address. And the second page (page2.php) requires the user to enter his/her password. When the user submits page1.php, it takes you to page2.php, where …

Member Avatar for mexabet
0
135
Member Avatar for mexabet

I have a script that populates a form from MySQL database table row for editing. I'm performing MySQL SELECT and UPDATE via PDO. After editing a particular table row and clicking on the submit button, the table row doesn't update. The following is "modify-course.php": <?php // configuration require("../includes/config.php"); // query …

Member Avatar for rproffitt
0
1K
Member Avatar for mexabet

I'm doing both SELECT and UPDATE queries using named placeholders. But course data from the database doesn't populate form, as expected. The database table row records don't populate, each time I try to edit a course in the browser. I connect to the database usining PDO. And I do SELECT …

0
321
Member Avatar for mexabet

I'm trying to upgrade my script from PHP 5.5 to PHP 7.2. And that came with the script not able to modify a selected table row as before. The records don't even populate whenever I try to edit a course in the browser. Please, note that I'm connecting to the …

Member Avatar for alan.davies
0
497
Member Avatar for davy_yg

You can simply use HTML bookmarking to redirect visitors to a certain location on a web page. You first need to create an id bookmark like this: <a id="faqs">Read our FAQs</a> And then, create a link pointing to the bookmark like this: <a href="#faqs">FAQs</a>

Member Avatar for Daniel_87
0
515
Member Avatar for mexabet

I'm trying to create an online learning courseware and connecting to MySQL database via PDO. What I'm trying to achieve is: if a user is logged in after registering for a particular course, the courseware should display the registered course, as well as its course weeks. I want each course …

Member Avatar for broj1
0
355
Member Avatar for mexabet

I got a syntax error flag in my "users" database table, but can't figure the issue out. Please, I need your help. The following is the error message: Error SQL query: --------------------------------------------------------- -- -- -- Table structure for table `users` -- CREATE TABLE IF NOT EXISTS `users` ( `user_id` INT( …

Member Avatar for mexabet
0
377
Member Avatar for Saif_10

It would have been better for you to post your code, so we can see where the error is coming from. Show some effort. That said, let's assume that I have a MySQL table named "users" and I want to be able to delete any user I choose. I achieve …

Member Avatar for mexabet
0
389
Member Avatar for mexabet

I'm creating an online learning courseware using PHP 5.5 and connecting via PDO. But I'm confused as to how to get the courseware to work, as I want. This is what I've done: I created a table for students and named it "users" and another for courses and named it …

Member Avatar for mexabet
0
388
Member Avatar for Unknown_2

I'm assuming that you simply want to display the details of all the users of your own script. Lets assume you have a table named "users" that have "id", "userimage", "username", "firstname", "lastname" and "usersex" columns. You can use the "*foreach*" loop to display the details of each user like …

Member Avatar for mexabet
0
836
Member Avatar for mexabet

I have a form on "add-category.php" that enables the admin to create a category and doing so includes uploading an image to a folder and inserts its file name and relevant text into the database. The script worked well with mysql_, but now it stopped working after I upgraded my …

Member Avatar for mexabet
0
660
Member Avatar for mexabet

My login script is displaying the following error message: Warning: Illegal string offset 'hash' on line 30. Here is the code that generates the error: <?php // configuration require("../../includes/config.php"); // if form was submitted if ($_SERVER["REQUEST_METHOD"] == "POST") { // validate submission if (empty($_POST["username"])) { adminapologize("You must provide your username."); …

Member Avatar for mexabet
0
406
Member Avatar for Designfiver

I can see that on hover the background color changes to grey and font color changes to black. What exactly do you want to achieve that is now working?

Member Avatar for mexabet
0
151
Member Avatar for mexabet

I'm trying to automatically populate a navigation menu based on available categories in the database. As follows is my code: <?php $sidenav = query("SELECT cat_id, cat_name FROM prod_cat ORDER By cat_name LIMIT 20"); if ($sidenav != false) { $sidenav->execute(); while($result = $sidenav->fetch(PDO::FETCH_BOTH)) { echo "<div class='left_button'><a href='/customcms/products/index.php?page=list-product&category={$result['cat_id']}'>{$result['cat_name']}</a></div>"; } } ?> …

Member Avatar for mexabet
0
329
Member Avatar for mexabet

I have a custom function called "query" with PDO statement in the functions.php file: /** * Executes SQL statement, possibly with parameters, returning * an array of all rows in result set or false on (non-fatal) error. */ function query(/* $sql [, ... ] */) { // SQL statement $sql …

0
164
Member Avatar for mexabet

Please, I need help to echo atable row and div tag within PHP code. The following is what I have unsuccessfully tried: echo '<tr>' '<td style="text-align:left">' . '<div class="describe">' . $row['im_description'] . '</div>' . '</td>' '</tr>'; I don't want it to appear in this format: <tr> <td style="text-align:left"><div class="describe"><?php echo …

Member Avatar for mexabet
0
404
Member Avatar for mexabet

I'm experiencing an issue deleting data via PHP/MySQL query. The following is the error message: Delete product category failed. You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 3 This is …

Member Avatar for cereal
0
777
Member Avatar for mexabet

I wrote a modify password file, but unfortunately, the MySQL query is throwing error: Warning: mysql_query() expects at most 2 parameters, 3 given in admin\modify-password.php on line 40 This is the PHP code: if (mysql_query("UPDATE admin SET hash = ? WHERE admin_id = ?", crypt($_POST["newpassword"]), $_SESSION["admin_id"]) === false) I modified …

Member Avatar for mexabet
0
350
Member Avatar for mexabet

I'm getting the following error message, while inserting data into a MySQL database table: Sorry, an error occurred while inserting data into the database. You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '?, …

Member Avatar for mexabet
0
373
Member Avatar for mexabet

I have a user registration script that includes image upload. Everything works, but each time a user registers, the image he/she uploads replaces the image (userimage) of every other user. What I need is to only update the userimage of that user based on ID. Any help would be much …

0
113
Member Avatar for mexabet

I have some data in a MySQL table, and I want to use them to populate form fields, so the site's admin can edit them. This is what I have so far in modify.php, but it's not working: <?php // configuration require("../../includes/config.php"); // query users table to retrieve admin homepage's …

Member Avatar for mexabet
0
6K
Member Avatar for gogs85

For Facebook share button: [https://developers.facebook.com/docs/plugins/share-button]() For custom Twitter tweet button: [http://www.seotreats.com/04/02/2012/how-to-use-custom-image-for-tweet-button.html]()

Member Avatar for mexabet
0
85
Member Avatar for mexabet

I want to insert a URL inside an echoed table row. Here is the URL and table column: <a href="modify-user.php?id=<?php echo $row["id"]; ?>">Modify</a> Here is the table column: printf("<td class=\"listusers\">" "</td>"); Thanks for your help in advance.

Member Avatar for mexabet
0
180
Member Avatar for mexabet

I'm coding a registration form that includes a file upload field. Basically, there are two queries that need to be simultaneously inserted into a database. But unfortunately, I don't know how to do it. So, I need your help. if ($my_upload->upload()) { // new name is an additional filename information, …

Member Avatar for mexabet
0
244
Member Avatar for adebayo23

You have to use the foreach statement to populate the form via autocomplete. Eg: <?php foreach ($stocks as $symbol) { printf("<option value='$symbol'>" . $symbol . "</option>"); } ?>

Member Avatar for wikit
0
310