39,326 Topics
| |
Hello! I'm working on a simple messaging system for a project and I have this query and it isn't working for some odd reason, here it is: mysql_query("INSERT INTO messages SET user='$user', message='$msg', date='$date', to='$id', private='$checked' ") Here is my error: You have an error in your SQL syntax; check … | |
I have the following code... <?php $con = mysql_connect("localhost:3306","name","pass"); if (!$con) { die('Could not connect: ' . mysql_error()); } mysql_select_db("barndata", $con); $today = date("Y-m-d"); $result = mysql_query("SELECT * FROM event where Date >= '$today' ORDER BY Date ASC LIMIT 0, 7") ; while ($row = mysql_fetch_array($result)) { echo 'banner1.add("IMAGE","'; echo … | |
<div style="font-family:tahoma; color:#F00; "> <?php session_start(); if (isset($_SESSION['user'])) echo "You are logged in as ".$_SESSION['user'], " to log out click <a href =logout.php>here</a>"; else die ("Please Register <a href =register.php>here</a>");?> </div> <?php $username = $_SESSION['user']; if(!isset($_SESSION['user'])) { header("location: login.php"); } else { $query=" SELECT * FROM users WHERE user='$username'"; $result=mysql_query($query); … | |
Hi everyone. I'm currently developing a website for my university project. I want to ask about .htaccess for url manipulation. I already search through the web but couldn't figure out what i intend to do. I have this structure public_html - css - img - js _private - data ( … | |
I get this error: Warning: SimpleXMLElement::__construct() [simplexmlelement.--construct]: Entity: line 23: parser error : Premature end of data in tag catalog line 2 in C:\xampp\htdocs\php_exercise\exercise3_1.php on line 7 Warning: SimpleXMLElement::__construct() [simplexmlelement.--construct]: in C:\xampp\htdocs\php_exercise\exercise3_1.php on line 7 Warning: SimpleXMLElement::__construct() [simplexmlelement.--construct]: ^ in C:\xampp\htdocs\php_exercise\exercise3_1.php on line 7 Fatal error: Uncaught exception 'Exception' with … | |
Basically I just dont know where to start.. I want to make a table that displayed as many images as there are in the DB. I want the table to only go 4 <td> wide, then move to the next line...etc.. I tried googling a few things, but I couldnt … | |
error: Mail error SMTP Error: Could not connect to SMTP host. i think its bc of mail->port=465. but iam not sure. $mail = new PHPMailer(); $mail->IsSMTP(); $mail->SMTPAuth = true; // enable SMTP authentication $mail->SMTPSecure = "ssl"; // sets the prefix to the servier $mail->Host = "smtp.gmail.com"; // sets GMAIL as … | |
i'm going to develop a new website using php programming.Let me know what are the basic needs to upgrade my website development.please help me any one.. Thanks for your response | |
Hi guys, I'm facing a weird problem with our Trustico Certificate. We have a webshop with customers that are logging in to make purchases of different products, all of this works nice untill the user changes his/her DATE on the Computer that he/she is using. If the date is changed … | |
Hi , I am pretty new to php. I am making my first project that is a shopping website. Problem I face is in my view cart page. I have created only one page for viewing cart and adding a product to cart and then viewing it. I mean I … | |
Hello, It is my first time to post here. I have been spending many hours trying to figure out how to get imagedata from my MYSQL database. I have tried these following codes but it wont work for me. view.php <html> <head> </head> <body> </body> <?php include "dbconn.php"; $sql = … | |
hi to all....i have a task to embed skrill and pyaza...but i only know that skrill and pyaza are moneybookers. but i don't know how to embed them using php?? is any api is there to access both these moneybookers.???? | |
Hi guys, I don't know if this is posted in the correct area, so forgive me if it isn't but I couldn't find a proper area for this. What I would like to know is this. I have a computer running windows 7 professional. Connected to my home hub, I … | |
i am using xammp for my database. i have a col called "today_date" andy type "DATE". in php i am using function "now()" to store todays date. the format is year-month-day. now let say i have one more col called "today_date_time" and type "datetime". is there a php function that … | |
Anyone can tell me how to run PHP code in android apps? I mean I need to write some php code which succesfully run on the emalutor. Can anyone help me? | |
Hi. Dear php coders... I need someone to help modify the attached ecommerce software. I want to skip "ADDRESS" step in chekout process. If someone knows this ecommerce platform and can help to customize it, please let me know where and what part of code i need to change. I … | |
| I want to check if value is already exists in database with php. But this value can be as for example "John" or "JOHN" or "JOhn" or ... e.t.c how to check for all conditions? |
Hello guys, i have problem with regular expression , I have search box, I tried to enter (',#,$,%,^,&,"star",@,!,") or any other special charachters, it give me the whole database items, so i want to limit the enrty to only letters [a-z] numbers [0-9] and arabic charachters [ا-ÙŠ] or to be … | |
my code works fine but i feel i my structure of this code is not good. can any one help me out? i puted all code in one page. so i have a page. this page is made up by 3 parts. 1st part is the header. in header i … | |
Hi all, I've setup a simple cart where users choose how much they would like to deposit as virtual currency using the PayPal sandbox - I've tested it and it works great. So far I've got to successful money transfers between accounts and notifications. However what I can't figure out … | |
I am trying to connect mysql from within PHP function. The credentials are stored in a separate PHP file, which I am including it inside the function. But when I run the script, I am getting following error: Warning: mysql_query(): A link to the server could not be established in … | |
hello everyone, i am having a problem about my php code which tells that it cannot open a stream from function file(), and says 404 not found, true, but i already have filtered it but the error really comes out, but when i enter a valid id number, it produces … | |
HI I am trying to create folders from database, but get this error as im trying to make folders named field1-field2-info Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING on line 8 <?php connection blar connection blar $query = "SELECT field1, field2 FROM Table"; $result = … | |
There's a web-site I used to access regularly but now when I try i come up with the message "version.php PHP script text." I don't even know what PHP is but is there any way that I can still get into the web-site or read it? | |
geeting a error Warning: mysql_fetch_assoc() expects parameter 1 to be resource, boolean given in C:\xampp\htdocs\E_COMMERCE\MENU_PAGES\apparel_pages\male_print_image.php on line 35 line 35: while($row = mysql_fetch_assoc($item_query)) <?php ... if(isset($_POST['male_button'])) { $order_by_p = $_POST['order_by']; if($order_by_p == 'heigh_low') { $item_query = mysql_query("SELECT * FROM item WHERE sub_category='Male_T-Shirts' ORDER BY id DESC LIMIT 8"); } } … | |
My brain is not functioning! I am trying to select a number of random images (lets say 3) from a selection of folders within one other folder and I am either over complicating the code or am missing something as I can't quite get it to work. What I have … | |
Greetings, I created a script to export member's items into a tab-delimited txt file. The script works great, it escapes tabs and new lines and creates a perfect export.txt file. Problem: I have another link so people can download the export.txt file onto their computers using: PHP Code: $file = … | |
is there a way to use real link in include? bc the code below doesnt work. it say cant use http. login.php <?php include("http://localhost/E_COMMERCE/INCLUDE/header.php"); ... ?> --------------------------------------------------------------------- header.php ... <link rel='stylesheet' type='text/css' href='css/main.css' /> ... ------------------------------------------------------------------------------- another way in login.php, i can do this code below. but the problem is … | |
Hello everyone... Best Tablet To Code And Test Php On? | |
Hallo there, Can anyone explain to me, 1) how to use XML schema in future 2) any kind of specific purpose please take a look at the link here [Propel](http://propelorm.org/cookbook/working-with-existing-databases.html#dumping_da) Thanks advance, |
The End.