How to build a user panel
Ive spent a few months learning how to code with php and I know Im still a beginner but I also wanted to learn how to create my own user account panel primary for an eCommerce site. Are there any...
View Articlemail function not working
Hi I'm trying to get the mail function working. I tested it with my own email but I haven't gotten an email. could I please get some help? <?php $fname = $_POST['fname']; $email =...
View ArticleShopping Cart & Product Classes, etc
I'm writing some classes right now for a website with a shopping cart. There are all kinds of classes, Blog, Cart, Product, Database, etc. I am trying to make a design choice about where to store the...
View ArticlePHP page not loading image until first button press
I have a simple web page with 2 buttons that change an icon to red or green based on which button is pressed. When the button is pressed, the variable is stored in a text file, and then recalled to...
View ArticleAllocated Seating Layout Help
Hi, I am building an online ticketing system for a theatre where there is allocated seating. There are 5 rows, each with 25 seats. E1 to E2 D1 to D25 C1 to C25 B1 to B25 A1 to A25 E row is at the...
View ArticleCalling a class
I am a newbie I am trying to build a CMS as described in a book. There are 5 files so far and I am sure I copied the code exactly from the book as is but I get the following error when I ru the...
View Articlephp set cookie redirect
I need a domain example.com redirects to sub-domain a.example.com when I type on the address bar. <script type="text/javascript"> $(function(){ var city = readCookie('city'); if(city==null...
View ArticleID a row in a datatable - mysql-PDO
Hi, I am a PHP noob. I have a table in which I am showing data from a mysql database. I'm using PDO to do the database stuff. Thus far, all good. In the table I have a hidden field that stores my...
View ArticleScrolling banner
Have a feature on our cart that allows a scrolling banner, but since upgrade to php5, the images aren't showing. Here is scrollinghead file which is followed by main php file, any suggestions would...
View ArticleImprove the look of php mysql website
Can somebody maybe tell me is there an easier way to create the look of the website the html part. For example here is my code <html> <head> <title> Registration Form </title>...
View ArticleQuickie about a foreach statement?
Currently i've got this code: while($row = mysql_fetch_array($result, MYSQL_ASSOC)) { if (!empty($row['OneDel1'])){ $OneDel1 == 1; } } How would I go about replacing the if statement with a foreach...
View ArticleController(codeigniter) don't run when payson send data
Hi! I got a controller in codeigniter which will update a database if a customer has paid or not! I am using Payson to do this. and payson will send back post data to site (controller) where it will...
View ArticleFormatting issue
I am having some trouble getting the formatting correct displaying SQL data. Below is the code but it is not lining up as it should just can't seem to get the tables right. Here is the code. echo...
View Articleplease help with radio buttons
hello guys, ive made a script to basically execute two different things depending on which radio button is selected: print"<div style=\"position:absolute;bottom:20px;right:20px;\">";...
View ArticleFatal error: Cannot use object of type mysqli_result as array in - Help please!
Hello, I'm coding a log in page and I keep getting this problem with mysqli_result. It's a mysqli server. My error is: Fatal error: Cannot use object of type mysqli_result as array in...
View ArticleGet affected rows after Delete (mysql)
I can't seem to get reliable results after deleting a row(s) using mysqli. The afftect_rows is always 0. I'm using php5.2 and the mysqli method Something like this: $sql = " DELETE FROM classRoster...
View ArticleError message that i cannoit see
Hi i am getting the error message in firefoxParse error: syntax error, unexpected '<' in /home/uniquegi/public_html/wp-content/themes/peekaboo/functions.php on line 491on this code:can you help?line...
View ArticleHelp with this code please
Hi everyone, I am very green to php and I am trying to create code that will allow me to enter information to a database I constructed. Everytime I run it though I get an object not found error 404....
View ArticleIF statement not working
Hi, My if statement is not working for session variables, please help! Login page (Sets session): $email = mysqli_real_escape_string($con,$_POST['username']); $pass =...
View ArticleLogic fails
I have the following code: <?php if(($time_now<$str) && (($post->register=="0") || ($close_reg<$time_now))) { echo $online_reg_closed_message; }...
View Article