39,326 Topics

Member Avatar for
Member Avatar for NardCake

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 …

Member Avatar for NardCake
0
147
Member Avatar for azgold472

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 …

Member Avatar for azgold472
0
175
Member Avatar for matt_higgins

<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); …

Member Avatar for EvolutionFallen
0
268
Member Avatar for nizam27391

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 ( …

Member Avatar for matthewl6970
0
98
Member Avatar for davy_yg

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 …

Member Avatar for Atli
0
1K
Member Avatar for cdoggg94

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 …

Member Avatar for pritaeas
0
95
Member Avatar for hwoarang69

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 …

Member Avatar for jstfsklh211
0
498
Member Avatar for ronaldneck

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

Member Avatar for javedsai
0
710
Member Avatar for Szabi Zsoldos

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 …

Member Avatar for Szabi Zsoldos
0
275
Member Avatar for jasleen_kaur

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 …

Member Avatar for simplypixie
0
74
Member Avatar for ghersese

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 = …

Member Avatar for veedeoo
0
3K
Member Avatar for shahai.ali

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.????

Member Avatar for shahai.ali
0
229
Member Avatar for CarterLangley

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 …

Member Avatar for CarterLangley
0
107
Member Avatar for hwoarang69

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 …

Member Avatar for urtrivedi
0
225
Member Avatar for knotholaze

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?

Member Avatar for Mocabilly
0
88
Member Avatar for webline

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 …

Member Avatar for webline
0
244
Member Avatar for ziyaddinsadigov

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?

Member Avatar for Atli
0
16K
Member Avatar for OsaMasw

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 …

Member Avatar for OsaMasw
1
231
Member Avatar for hwoarang69

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 …

Member Avatar for urtrivedi
0
109
Member Avatar for mmcdonald

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 …

Member Avatar for diafol
0
289
Member Avatar for rajesh1158

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 …

Member Avatar for rajesh1158
0
351
Member Avatar for kevinyu

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 …

Member Avatar for phorce
0
11K
Member Avatar for mpc123

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 = …

Member Avatar for broj1
0
113
Member Avatar for MiketheBook

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?

Member Avatar for diafol
0
171
Member Avatar for hwoarang69

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"); } } …

Member Avatar for diafol
0
249
Member Avatar for simplypixie

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 …

Member Avatar for simplypixie
0
707
Member Avatar for wickland

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 = …

Member Avatar for wickland
0
179
Member Avatar for hwoarang69

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 …

Member Avatar for hwoarang69
0
156
Member Avatar for emma99
Member Avatar for kv79

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,

Member Avatar for diafol
0
96

The End.