39,316 Topics

Member Avatar for
Member Avatar for Sammys.Man

hi guys, i wonder if someone could help, i am teaching myself with tutorials and online books etc PHP, ive played around in it before, but due to time i couldn't get into it. now im going headlong into it. anyway moving on, the problem i have is, i have …

Member Avatar for Sammys.Man
0
208
Member Avatar for developer707

Hello to everyone, I am trying to get a some values from the database. My issue is that I want some results stored into a variable to be exactly 25 caracteres long. When the result($title) is > 25 caracters long there is no problem with this substr($title, 0, 24), but …

Member Avatar for developer707
0
1K
Member Avatar for Jake2025

Greetings guys, I am barely new to php and i have incoming presentation from a company and they asked me to build some basic website using sublime text 2. here's my problem i don't have any clue on how to display result from php to a web browser. In notepad++ …

Member Avatar for Jake2025
0
284
Member Avatar for Priti_P

due to something fishy , one of filenames has entered as Abhishek�_xyz.docx and it is not opening now. It says no file found. When I try to do rename it using 'mv'command, then it do not allow me by stating cp: cannot stat `Abhishek �_xyz.docx': No such file or directory …

Member Avatar for cereal
0
82
Member Avatar for zabi77

i am new to the PHP and i building a website which is mostly copied from diff sources and i want the user who had logged in to be displayed but it does not. here is my HTML for the page <?PHP session_start(); if (!(isset($_SESSION['username']) && $_SESSION['username'] != '')) { …

Member Avatar for hericles
0
187
Member Avatar for lloydsbackyard

I have a date in a textbox .. $myDate ='06/30/2014' how do i convert it into this format..since this is the date format in the database.. $myDate ='2014-06-30' thanks..

Member Avatar for lloydsbackyard
0
123
Member Avatar for lloydsbackyard

please help ..the date format in my datase is Y-m-d.. now i want to search by date..so in my textbox i need only to type example: data in the database: 2014-06-19 in the textbox search i will only type EITHER of the following : 06-19-2014 OR 06192014 (without the - …

Member Avatar for Sammys.Man
0
132
Member Avatar for hafizfarooq

Hi, I am unable to check the checkboxes with database values. My table stores the data in below format. I want that when i load the form "useraccess.php" it check the access allowed ealier to the logged user and check the check boxes accordingly. uid = 1 allowaccess = New …

Member Avatar for hafizfarooq
0
201
Member Avatar for jKidz

Hi all, I going to create a php web site in English. I want to have a another language in my site which not in Google Translator. How can I do this in PHP.

Member Avatar for diafol
0
174
Member Avatar for dwlamb

I have the following snippet of function and call to another function for returning tabs to format code. public function makelinks ($urls_data) { ...code... $i = 5; $tabs = $this->echo_tabs($i); $output = "$tabs<ul class=\"url_list\">\n"; ...code... } public function echo_tabs($i){ $x = 0; $o = ''; for ($x;$x<$i;$x++) { $o .= …

Member Avatar for dwlamb
0
208
Member Avatar for SimonIoa

I want to be able to show some .php files before the user logs in I know that the reason we do the session is for ones who are users to see the files but is it possible. I have included the file that connects to teh database session_start(); $session_uid=$_SESSION['uid']; …

Member Avatar for SimonIoa
0
299
Member Avatar for BrickZ28

Ok so this has me a little stumped. I have a WHERE clause that produces results in phpmyadmin but not on the web page. Here is what I have $sqlCur = mysql_query("SELECT * FROM currency WHERE airframe = '$acft'"); This produces a blank result on the webpage. $acft has been …

Member Avatar for diafol
0
149
Member Avatar for uselessninja
Member Avatar for diafol
0
306
Member Avatar for davnlou

Hi there, I am struggling with a bit of code and need a bit of help please.. I have information in a database that I want to display in a table, then allow users to choose a number of items and click 'add to cart'. It works fine if I …

Member Avatar for DJBirdi
0
334
Member Avatar for jaspertan
Member Avatar for jaspertan
0
585
Member Avatar for david.roun.7

Ok, so this is cool. On my site, I learned how to create a simplified "wall" like facebook has... sort of. It's great for me to have done that because I am self taught with all of this. There is a problem, however. My <option> is not displaying the names …

Member Avatar for david.roun.7
0
123
Member Avatar for prash21m

I have a table with two columns "storename" and "discription". id---- Storename ---- Description 1 ---- Myntra ---- 20% of on all product 2 ---- Flipkart ---- 40% of on all product for search i am using 'like' query like this : select * from table_name where description like %search_terms%; …

Member Avatar for Borzoi
0
166
Member Avatar for jaspertan
Member Avatar for nufftalon

The uploaded file exceeds the upload_max_filesize directive in php.ini. I get that error. I have a hosting account with cpanel access, how can I avoid this problem from happening?

Member Avatar for nufftalon
0
115
Member Avatar for m1m6jbr

hello i have an attribute in 'users' table called RegNo which refer ro region number ... so i have to select users and display them according to their region number . here is my code <body> <ul id="nav"> <li class="heb"> <a href="parentUrl" >hebron</a> <li class="bet"> <a href="parentUrl" >ramallah</a> <?php include …

Member Avatar for m1m6jbr
0
277
Member Avatar for samalahyd
Member Avatar for mesh457
0
277
Member Avatar for bolfescu

HY I HAVE THIS SQL CODE select id,category,sum(q1) Total from articles group by category order by id AND I WHANT TO INTEGRATE IN MY PHP SCRIPT TO SHOW IT LIKE A TABLE INCLUDING THE TOTAL, HOW CAN I DO THIS ?

Member Avatar for veedeoo
0
66
Member Avatar for samy.youssef.12

i have dove every thing, uncommented the extension for mysqli in php.ini but no way i can't connect to mysql or mysqli throught php 5.0.11 i appreciate any suggestions thnx;

Member Avatar for veedeoo
0
68
Member Avatar for bvowens

Hi I've been working on a joomla site on my local windoes vista computer using WAMPSERVER vrs2 and with apache. Something went wrong with apache and windows warned me and turned it off. Since then I can't use [url]http://localhost[/url] (or the shortcut on the wampserver menu 'localhost' to connect. However …

Member Avatar for samy.youssef.12
0
873
Member Avatar for mangel.murti

Hi All PHP , Below is funtion which store product in session. $resource is database link and product just getting product from database for a given $_GET['product_id'].when i am clicking on a single product and adding that in cart it is working. if i add another product so session array …

Member Avatar for mangel.murti
0
141
Member Avatar for showman13

Good Evening, I'm trying to modify a function that I wrote a few months ago to work on a 2 dimensional array instead of the single dimension I have been using. My question is, before I start rewriting it only to find out that I can't do it... Can you …

Member Avatar for cereal
0
279
Member Avatar for adishardis

Hi, I would like to loop the data-attribute to contain all column names and values from a mysql table. This is what it looks like today: while ($row = $result->fetch()) { echo "<div id='{$row['namn']}' data-column1='{$row['column1']}' data-column2='{$row['column2']}'... So some kind of magic :) loop inside there so I don't have to …

Member Avatar for adishardis
0
255
Member Avatar for DJBirdi

Out of curiousity, if any of you have ever done image watermarking with PHP, I'd love to hear some ideas. PHP's official documentation on watermarking with alpha channels isn't bad but I'm curious about the existence of other libraries that some of you might have used.

Member Avatar for DJBirdi
0
217
Member Avatar for computer1

i am working on a small gallery website(project) and i want to give users provision to upload multiple photos and it should appear on the same page...Thanks in advance.

Member Avatar for rpv_sen
0
52
Member Avatar for david.roun.7

So, when I run this code on xampp, it works and I can see the variables, without the header. <html> <head> </head> <body> <?php $user=""; $server=""; $db=""; $pass=""; $con=mysqli_connect($server,$user,$pass,$db); $id=$_POST['loginid']; $password=md5($_POST['password']); $result=mysqli_query($con,"SELECT * FROM passwords WHERE userid='$id' AND password='$password'"); session_start(); if($row=mysqli_fetch_array($result)){ require('../connect/registerdb.php'); $rresult=mysqli_query($rcon,"SELECT * FROM registration WHERE userid='$id'"); while($rrow=mysqli_fetch_array($rresult)){ $_SESSION['name']=$rrow['name']; …

Member Avatar for DJBirdi
0
315

The End.