39,316 Topics

Member Avatar for
Member Avatar for mohithamgaonkar

i am creating an ecommerce site and i want to add and retrieve image from database within image tag please someone help me with it... i do not want to save the image path but whole image..... i want to use attribute width and height with the image....

Member Avatar for diafol
0
468
Member Avatar for karthik_ppts

Dear Frendz, Alone with PHP, can we do a "CCTV security and surveillance System" like zoneminder.com? , Please give me an advice on this if any experts having experienced on this application. Regards, Karthik.R

Member Avatar for cereal
1
736
Member Avatar for daniel36

<?php SESSION_START(); require 'config.php'; $query="SELECT * FROM topics WHERE student_id='".$_SESSION['id']."' AND id='".$_GET['id']."';"; $result=mysql_query($query) or die(mysql_error()); $rows=mysql_fetch_assoc($result); ?> <table> <tr> <td colspan="2"><?php echo $_SESSION['user_name']; ?></td> <td colspan="8"><b><?php echo $rows['title']; ?></b></td> </tr> <tr> <td colspan="2"></td> <td colspan="8"><?php echo $rows['description']; ?></td> </tr> <?php $sql="SELECT * FROM comments WHERE topic_id='".$_GET['id']."';"; $comment_result=mysql_query($query) or die(mysql_error()); While($row=mysql_fetch_assoc($comment_result)) …

Member Avatar for broj1
0
147
Member Avatar for penet.biz

I have this error :Parse error: syntax error, unexpected '$db_field' (T_VARIABLE) in C:\Program Files (x86)\EasyPHP-12.1\www\penet.hi2.ro\cheats.php on line 110 And the code is : <?PHP require ("connect.php"); //$db_handle = mysql_connect($server, $user_name, $password); =>$connect $db_found = mysql_select_db($_mysql_db, $connect); if ($db_found) { $SQL = "SELECT * FROM cheats"; $result = mysql_query($SQL); while ($db_field …

Member Avatar for broj1
0
310
Member Avatar for dante123

hi i have two menus that i use as include in index.php file: topmenu and leftmenu I'm using the same code in oder to show the active header switch (THIS_PAGE): Code for the "Top menu include": <?php define('THIS_PAGE', 'pagename'); $menuitem1 = '<a href="index.php">Home</a>'; $menuitem2 = '<a href="about.php">About</a>'; $menuitem3 = '<a …

Member Avatar for diafol
0
181
Member Avatar for Riu 2009

i've displayed a table from database using php.and now what i want is to edit records seperately as i've placed an edit and a delete link in front of each record which edits the record from sql.and it is now giving this warning.Please help me to find the error correctly.as …

Member Avatar for diafol
0
330
Member Avatar for Riu 2009

Hi everyone i dont know how to get the already filled value of radio buttons from sql using html/php here is my code but its giving error <?php include("../includes/config.php"); ?> <?php if ($_SESSION["isadmin"]) { $con=mysql_connect($dbserver,$dbusername,$dbpassword); if (!$con) { die('Could not connect: ' . mysql_error()); } mysql_select_db($dbname, $con); $accountid=$_GET["id"]; $result = …

Member Avatar for Riu 2009
0
8K
Member Avatar for Goldfinch

The following script is supposed to take in a date formated YYYY-MM-DD and output an image. It is also designed to display an error image if the date inputed is before the start date defined in the script or after the current date. The problem is that it doesn't seem …

Member Avatar for broj1
0
119
Member Avatar for andy106

Hi I have a simple code below that fetches, make, model and year from the database, but for some weird reason I get: Fatal error: Cannot access protected property error, any ideas as to why this might be happening? (i btw have this code on a different server running with …

Member Avatar for johrocks124
0
3K
Member Avatar for cguan_77

hi guys, please help me out on this issue. i had this code to connect to mysql using php but there is no any message displayed. nothing is displayed on the screen, whether the connection is successful or there is an error. any ideas? i can connect to mysql using …

Member Avatar for cguan_77
0
177
Member Avatar for PhilEaton

Hi! I recently created a website that has a contact form that sends an email with the PHP Mailer class. I had to use my gmail account because I cannot get my LAMP server's SMTP protocol working... In my mail.php file, I display the password and account quite openly as …

Member Avatar for PhilEaton
0
3K
Member Avatar for persianprez

I have the following code: $filename = "raw_data.txt"; $fp = @fopen("$filename", 'r'); if ($fp){ $array = explode("(.)", fread($fp, filesize($filename))); } for ($i=0; $i<sizeof($array); $i++){ //name1 name2 name3 name4 } So what I want to do is initialize variables with $name and the current $i value Thanks in advance

Member Avatar for Atli
0
1K
Member Avatar for johndohmen1963

Hi hope someone can help me How can i update a date field to NULL so that i have 0000-00-00 in the date field i have the following code but it's not working i tried a lot of things but nothing wil work if($_POST['geboortedatum'] == "") { $date = NULL; …

Member Avatar for johndohmen1963
0
85
Member Avatar for coolsid01

<?php $fullname=strip_tags($_POST['fullname']); $username=strip_tags($_POST['username']); $repeatpassword = strip_tags($_POST['repeatpassword']); $date=date("Y-m-d"); $submit=$_POST['submit']; ?> <html> <h1>REGISTER !</h1> <form action='register.php' method='POST'> <table border =25 color=black align=center space=5 > <tr> <td>Full Name:</td> <td><input type='text' name='fullname' value='<?php echo $fullname; ?>'></td> </tr> <tr> <td>User Name :</td> <td><input type='text' name='username' value='<?php echo $username; ?>'></td> </tr> <tr> <td>Password :</td> <td><input type='password' …

Member Avatar for coolsid01
0
237
Member Avatar for arctushar

Hi I want to replace a word from text. I can do it with str_replace or str_ireplace. But I need more advance. for Example. my code is as below <?php $search_word=$_POST['gender']; $subject="Men and Women both r part of the world"; echo str_ireplace($search_word, '<span style="background:#0F0">' . $search_word . '</span>', $subject)."<br/>"; echo …

Member Avatar for diafol
0
112
Member Avatar for stephen_UK

Hi, I am generating an automatically email successfully using the code below, where all the email addresses are contained in the variable $to. How do I change the code below to send all of these emails as a bcc so that their email addresses are not disclosed to one another? …

Member Avatar for Tapioca77
0
499
Member Avatar for starsunited

from what i have research, there are some barcode scanner which is uSB and are keyboard wedge have built in decoders that can read several barcode types and send them via the keyboard so info scanned appears as if it has been typed. Therefore does it means that, if the …

Member Avatar for davilotte
0
2K
Member Avatar for bjoy21

I want to make a php code with my dropdown menu in html. Can you help me? This is my code in html <form method="POST" action="search.php"> <h2 align="center" style="Verdana"> List of Voters Search </h2> <div align="center"> <table> <table border="0"> <tr><td>Select One:</td><td><select name="dropdown1"> <option value="Firstname">Firstname</option> <option value="Voters_Id">Voter's Id</option> <option value="All">All</option> <input …

Member Avatar for bjoy21
0
1K
Member Avatar for davidbernardino

Hello, I am trying to create a form with php that echo data like this: "echo -e “username /npassword” > filename". I created the form and php embedded code but I cant seem to create variables with the text box names. We currently have a automated guest wifi account creation …

Member Avatar for Riu 2009
0
1K
Member Avatar for mktrx

Got a problem that has completely stumped me... am hoping the combined wisdom of the forum could assist... I have a php script that enables a user to follow and unfollow items on a site... Am doing this with a table that captures basically the user's id and the item …

Member Avatar for iamthwee
0
289
Member Avatar for freakthemighty

I'm building a CMS in PHP and this is my first attempt to use ajax to do something cool. It's making my queryies problematic, however. I'm writing in this forum because my PHP forms worked fine before I did the following: On my index page, I have a header with …

Member Avatar for freakthemighty
0
355
Member Avatar for vishalonne

After lots of home work I came here for support and help. Please see the site[Click Here](http://www.cbsecsnip.in) on home page I have menu Computer Science and sub menu XI which open XICS.php on this page threr are few links. From those links few must work if user already logged in …

Member Avatar for diafol
0
517
Member Avatar for JRCharlie

Hi I would like to learn PHP. But I can't seam to find the proper IDE so I can learn Build and debug websites. Does anyone know an Express version or free trial that I could download. Thanks in advance.

Member Avatar for JRCharlie
0
252
Member Avatar for pawan768

Hi , I want to display PHP Code on my a.php page , I use <code> <?php if($c==1) { echo $c; } ?> </code> in my HTML page , but when I Run this page it Gave me the Value of $c , But I want to print this code …

Member Avatar for diafol
0
276
Member Avatar for aabbys

Hi All, Can any PHP, MySQL expert help me with security considerations while accessing online shared hosting MySQL database(PHPMyadmin) from a local wamp servers PHP page. I even don't know whether it can be possible.Please answer with some recomendations.

Member Avatar for aabbys
0
119
Member Avatar for chandbasha

# hi # how to find the users who are coming from gmail to my site without passing any parameter in url. i am using $_SERVER['HTTP_USER_AGENT']; but not able to find. Please can any one help me. Thanks

Member Avatar for cereal
0
56
Member Avatar for Djmann1013

I am having trouble with this code block: if($row['banned'] == 1) { header( 'Location: http://www.awsomechat.comuv.com/ban/userbanned.php' ); } elseif ($row['banned'] == 2){ header( 'Location: http://www.awsomechat.comuv.com/ban/userbanned.php' ); } Ive also tried this: if($row['banned'] == 1 or $row['banned']== 2) { header( 'Location: http://www.awsomechat.comuv.com/ban/userbanned.php' ); } But none of this works... I am trying …

Member Avatar for Djmann1013
0
161
Member Avatar for Riu 2009

Hi everyone..im new to php and dont know much about my sql as well.actually i have displayed a mysql table from database to my webpage using php.now i've got a seperate list of teachers with thier data(firstname, last name,email, type).what i want is to edit a specific record from the …

Member Avatar for Riu 2009
0
231
Member Avatar for aabbys

Hi All, Here you need to understand two points 1)A Book Store App (which is a web application) made on PHP and MySQL is running on local wamp server(in one computer locally) for store's proprietary use, which is running fine. 2)I stucked with implementing online(Internet) version of web app for …

Member Avatar for aabbys
0
341
Member Avatar for b0tz

Hello, I'm currently working on a project and I need to get the values I need from the API server. I'm really new to working with objects and arrays alltogheter, can I have a little help and perhaps someone can provide a simple example on how I can do this …

Member Avatar for b0tz
0
280

The End.