39,316 Topics

Member Avatar for
Member Avatar for adeelmushtaq
Member Avatar for govindgupta
Member Avatar for jp2code

I'm working through a little [TimThumb](http://www.binarymoon.co.uk/category/web-design/timthumb/) example, but I can not get through the first basic tutorial because I do not have a good grasp of PHP. Using this image file: http://i.imgur.com/OCxHpUA.jpg I want to plug that into my TimThumb php script and see the output, but this code is …

Member Avatar for AARTI SHRIVAS
0
108
Member Avatar for sohail.comsians

i would like to develop a chatroom with video calling so help me. Is there any function to call the webcam on page??

Member Avatar for isaac.iji.5
0
275
Member Avatar for isaac.iji.5

i want to creat a post script to auto insert new codes on my site when a member post a picture or video buth it dsnt seem to be working just like posting coments and suggestions in a forum

Member Avatar for isaac.iji.5
0
132
Member Avatar for mysybet

Hello ! i'm working in dreamweaver , and i have 2 lines : $part="..\fl1\"; echo "OK"; Dreamweaver produce an error in second line. if i change the first line to $part="..\fl1" everything is ok. what is the problem with the \ character at the end ? thank you.

Member Avatar for diafol
0
168
Member Avatar for tqmd1

Dear Sir, I have following code <html> <head> <title>Javascript function </title> <script type="text/javascript"> function hello(){ var xx=eval(form1.text1.value); var yy=eval(form1.text2.value); if (xx>0 && xx>yy){ alert("Amount 1 is greater") form1.text3.value=("Amount 1 is greater") }else{ alert("Amount 2 is greater") form1.text3.value=("Amount 2 is greater") } } </script> </head> <body onload="form1.text1.focus()"> <center> <h1 style="color:#2c80d3 ">Javascript …

Member Avatar for diafol
0
176
Member Avatar for jacob21

$newtypeid=$_REQUEST['newstype']; $action = (isset($_REQUEST['action'])&& $_REQUEST['action'] !=NULL)?$_REQUEST['action']:''; if($action == 'ajax'){ echo "newtypeid is".$newtypeid; -------------- //some stuff here } How to get $newtypeid value inside if statement.

Member Avatar for diafol
0
259
Member Avatar for davidjennings

Hi all, I am trying to connect to a remote server, I am using the IP address server name and folder to connect, not sure if ths is working? I am aslo getting an error on the final foreach loop (`foreach ($files as $file) {//print array`) Warning: Invalid argument supplied …

Member Avatar for diafol
0
399
Member Avatar for Hannah Sibongile

Ive tried everything, even typing the whole thing again from scratch but it doesnt seem to work. Please help about the error on line 9. Coding below: 1. <?php 2. $name = $_POST['name']; 3. $surname = $_POST['surname']; 4. $company = $_POST['company']; 5. $email = $_POST['email']; 6. $contact = $_POST['contact']; 7. …

Member Avatar for Hannah Sibongile
0
209
Member Avatar for Eagle.Avik

hi how can i fetch data from the database and stroe it into session variable. my code: $sql = "SELECT password, fullname, username, active FROM ".$mysql_table." WHERE (username = :username OR email = :username) AND password = :password"; $statement = $pdo->prepare($sql); $statement->bindValue(':username', $_POST['username']); $statement->bindValue(':password', md5($_POST['password'])); $statement->execute(); $result = $statement->fetchAll(PDO::FETCH_ASSOC); if …

Member Avatar for Eagle.Avik
0
269
Member Avatar for bejing.shin
Member Avatar for Nadera

Hello, I have a form that retrieve the data from the database, which it depends on the expenses ID, then I want to send email to the employee to notification him that his expenses claim has rejected. The problem is on the phpmailer that does not take the value of …

Member Avatar for AARTI SHRIVAS
0
176
Member Avatar for malisubhani

Hello I would like to know how can we make speech to text PHP based application. Any API reference and tutorial.

Member Avatar for noelthefish
0
156
Member Avatar for dany12

Hy my apache2.4.6 is not reading htaccess files My 000-default.conf file is <VirtualHost *:80> # The ServerName directive sets the request scheme, hostname and port that # the server uses to identify itself. This is used when creating # redirection URLs. In the context of virtual hosts, the ServerName # …

Member Avatar for dany12
0
3K
Member Avatar for vbdotnetlover

Dear Sir, I have modified your codes once again as <?php if (isset($_POST['button1'])){ $name=$_POST['text1']; }else{ $name=""; } if ($name) { echo 'My name is ' . $name; }else{ echo 'No name entered'; } ?> <html> <head> <title> First form </title> </head> <body> <form name="aa" method="POST"> Name <input type="text" name="text1" value=""> …

Member Avatar for vbdotnetlover
0
136
Member Avatar for mysybet

Hello ! i want to create an input form with these fields : Name ------ Age------- Photo --------- <Browse file Button> <Submit button> After the user press the browse button and select a file i want to display the path. After the user press the submit button i want to …

Member Avatar for diafol
0
155
Member Avatar for Kentopencart

I have opencart 1.5.6 with Swedish language file I get an error code when the customer should register an account 2013-11-16 14:54:16 - PHP Warning: Can not modify header information - headers alreadycreated late by (output started at / customers/1/b/6/mittföretag.se/httpd.www/catalog/language/swedish / account / register.php: 1) in / customers/1/b/6/mittföretag.se/httpd.www/system/engine/controller.php on line …

Member Avatar for Dani
0
113
Member Avatar for fheppell

I wrote this code to integrate with filepicker.io, it takes the URL of the file and gets the header information: $info = curl_init() or die('error 1'); curl_setopt($info, CURLOPT_RETURNTRANSFER, 1); //curl_setopt($info, CURLOPT_PORT , 8089); curl_setopt($info, CURLOPT_URL, $url); curl_setopt($info, CURLOPT_CONNECTTIMEOUT, 30); curl_setopt($info, CURLOPT_NOBODY, true); //curl_setopt($info, CURLOPT_SSL_VERIFYPEER, 0); curl_exec($info); if(!curl_errno($info)){ $response = curl_getinfo($info); …

Member Avatar for diafol
0
618
Member Avatar for nadiam

this is my php code for my profile.php. it is to display the users name after login. <?php session_start(); require "connect.php"; if($_SESSION['name']) { $name = $_SESSION['name']; $query = mysql_query("SELECT name FROM register WHERE name ='$name'"); $numrows = mysql_num_rows($query); if(1 == $numrows) { while ($rows = mysql_fetch_assoc($query)) { echo "Welcome, ".$rows['name']."!"; …

Member Avatar for nadiam
0
297
Member Avatar for erminasrcutp

this is my search.php , however once user has view one data user will want to update one location / status . I can not do the Edit.php . Can someone please help me ? Search.php <html> <head> <title>::Home</title> </head> <body> <div id="header"> <img src='banner.png' align='middle' width='101%' height='110%'> </div> <div …

Member Avatar for rpv_sen
0
250
Member Avatar for erminasrcutp

Can someone help me to fix this problemmm pleasee. Notice: Undefined index: id in C:\xampp\htdocs\draft3\Edit.php on line 4 Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in C:\xampp\htdocs\draft3\Edit.php on line 6 Edit.php <?php include'e.php'; if(!isset($_POST['submit'])) { $q="SELECT * FROM myaduan WHERE id= $_GET[id]"; $result=mysql_query($q); $myaduan=mysql_fetch_array($result); } ?> <h1>You …

Member Avatar for rpv_sen
0
208
Member Avatar for tqmd1

Sir I have following codes <?php if(isset($_POST['button1'])) { $aa = $_POST['text1']; echo ("My name is " . $aa); } ?> <html> <head> <title>First form</title> </head> <body> <form name="aa" action="mix.php" method="POST"> Name<input type="text" name="text1" value=""> <input type="submit" value="display" name="button1"> </form> </body> </html> These codes work fine. I am beginner so I …

Member Avatar for diafol
0
123
Member Avatar for bikercyber
Member Avatar for baldford

This code does not work properly. The code does execute but i am unable to see where the file should be uploaded to. I checked the default directory referenced by the php.ini file but to no avail. [code]<?php $to = "nextphaze@live.com"; $firstname = $_REQUEST['firstname'] ; $lastname = $_REQUEST['lastname'] ; $mobile …

Member Avatar for Baldford_1
0
264
Member Avatar for fheppell

When I open a page the page loads for a very long time and no errors appear in the logs. I've run it through a syntax checker which told me there was one more opening parenthasis than expected, but didn't give me a line number, so I have no idea …

Member Avatar for iamthwee
0
308
Member Avatar for nadiam

So im not too sure if im posting this in the right forum. please dont be angry! new at daniweb so basically what i wanna know is how to save real time date into database. what i have is a page with tabs of month and in each tab the …

Member Avatar for JorgeM
0
1K
Member Avatar for kanoy83

hi, im trying to compare the string from my new $_POST['title'] and in my database. If my new post is the same in database, it must notify it is the same. I am trying to use strcmp if it is better. Or maybe anyone has better or simpler code. $newtitle …

Member Avatar for kanoy83
0
3K
Member Avatar for fheppell

I've got a page that requires a file called config.php, this file is included in several other files, all in the same (root) directory. PHP gave me the error `[16-Nov-2013 12:30:17 UTC] PHP Fatal error: require_once(): Failed opening required '/models/config.php' (include_path='.:/Applications/MAMP/bin/php/php5.4.4/lib/php') in /Applications/MAMP/htdocs/things/picturecamel/uploader.php on line 70` however the file is …

0
288
Member Avatar for erminasrcutp

The update database is not working , please help me. edit.php <?php include_once('db.php'); if(isset($_GET['edit'])) { $id=$_GET['edit']; $res=mysql_query("SELECT * from apple WHERE id='$id'"); $row=mysql_fetch_array($res); } if(isset($_POST['newName'])) { $newName= $_POST['newName']; $id = $_POST['id']; $sql = "UPDATE apple SET name=''$newName' WHERE id='$id'"; $res = mysql_query($sql) or die("Could not update".mysql_error()); echo "<meta http-equiv='refresh' content='0;url=index.php'>"; …

Member Avatar for erminasrcutp
0
406

The End.