MySQLi identifying multiple queries on same object
Hi, I recently migrated to mysqli after reading the old type is going to be phased out, but I dont understand how you identify queries: //Assume $db is already instantiated $db->query("SELECT xyz...
View ArticleUSERS INPUTTING URL TO PROFILE
Hi guys, I have been stuck for a few days now. My PHP programming is much better but stuck a little on a project. How do I get users to input their own website URL into my website so that they can...
View ArticleTest if time is between two times
I have an action that sets current time in the DB. I want to run a cronjob on a 5min interval to check for documents that is not set 5min ahead of time when cron runs, but also not in the past of...
View Articleajax validation not working
<?php /* Template Name: Warranty New */ //Include the database class require("report/db.class1.php"); ?> <script type="text/javascript" src="/addjs/jquery_003.js"></script>...
View Articlegetting undefined index error
i am getting a notice as undefined index on line 7 which is blue colored and then below notice it shows Unknown column 'c.id' in 'field list'.my script is not working. plz suggest me the way i correct...
View ArticleLogin function help
Hi, basically I have this snippet some of which I am trying to move into a function. In its current form it works OK, but when I try to call for it within my function it does not : Warning:...
View ArticleHow to implement this
Hey All, I am in the process of learning PHP so I am not an expert by any means. I am looking for some advice on how I would go about implementing this idea. 1. I have a page called addproduct.php...
View ArticleCreating Divs Based On Images
Hi, I'm not at all savvy with PHP, but I am trying to learn and I would really appreciate some help. Please excuse my limited knowledge and try not to get too annoyed. Here is what I'm looking to...
View ArticleParse error: syntax error
Hello, I am sitting on it for about an hour,two three and I just don't understand why I get this error ... I am trying to create a new file with PHP and it gives me this error : Parse error: syntax...
View ArticlePHP cms via phpacademy
OK i am trying to add a posters id/username onto my mysql database. I added a table and i am making a progress but the only part i am stuck on is the php side... I get no more errors when i create the...
View Articlepassword redirect to url
Hey everyone. Is there a simple PHP script that would let me set up a page where a user just enters a password and clicks "submit". If the password is correct, then they get re-directed to a specific...
View Articlecounting ticks
Ok I am needing advice, I have to make a student registration form. I am to have classes for the student to choose, only 30 students per class, so I need a way to count how many times a particular...
View ArticleDiscount porcentage
How to apply a discount porcentage using php ? e.g 10% Please, I would like a sample to get price from price_table, show in html, and replace it in order_table. The discount must not be applye to...
View Articlesql error return json to jquery
i have ajax call that send data to the pph script which inserts it into database. If for some reasons I have error when connecting to database ot error on insertion how do i sent some sort of error to...
View ArticleHelp with PHP Variable
A variable is declared in index.php when the page loads (random number). When the user clicks on a link, I need to make a MySQL query with the variable. How would I do this? When I ran the code...
View ArticleURL in Profile edit
i guys, I have been stuck for a few days now. My PHP programming is much better but stuck a little on a project. How do I get users to input their own website URL into my website so that they can...
View ArticleEditing date
After clicking edit link(see one.jpg), it is going to edit_form.php(see one .jpg) and taking ID also but NOT displaying anything in my textfields. PLEASE HELP ME OUT... main code in edit.php:...
View Articleprocessing separate form inside while loop with unique submit form
So a friend and I have recently started coding a simple posting webpage. At the moment we are trying to make a like button to like other posts but we are having trouble. We have made this like button...
View ArticlePHP XML Error
Hello, I am trying to read XML file and store in sql table. I got two errors. PHP Warning: XMLReader::open(): Unable to open source data Warning: XMLReader::read(): Load Data before trying to...
View Article