39,323 Topics

Member Avatar for
Member Avatar for luke.belleghem

I need a script that replaces "login" with "logout" when im logged in and vice versa. Anyone know of a god tutorial that teaches how to do this?

Member Avatar for Octet
0
466
Member Avatar for Vijaysurya

hai everybody, i need help in my container div indide all the div value is empty means container value is empty message show any body plz help me <div Id=" container1"> <div I'd=" friends-cta"> <php echo $viewee[' name'] ?> </div> <div I'd=" friends-ota> <php echo $viewee[' occupation'] ?> </div> <div …

Member Avatar for blocblue
0
166
Member Avatar for pucivogel

I am following this tutorial http://www.css-resources.com/code-for-php-photo-gallery.html to create php photo gallery but i get errors undefined index photos, categories and cy when i run this code, it gets the category names in a textarea and adds them in the db, in the output also says no database selected but i …

Member Avatar for michel.cote
1
308
Member Avatar for sophy27

Hi, everyone! I need some urgent help with displaying images in a web page from a database. I've created the table picture in phpmydamin and it has these columns: id_picture( wich is the primary key), name, description and the pic_url ( wich contains the url path of the image for …

Member Avatar for sophy27
0
1K
Member Avatar for arjay1

I am converting a traditional website to WordPress for an animal rescue charity so members can have a blog and more easily update various pages. All has gone well but I am stuck on one key aspect. Viewers of the original site can click on a page that will then …

Member Avatar for arjay1
0
470
Member Avatar for johslind

I'd like to share with others a discovery I made about using meta tags for other purposes than SEO. My issue was to have a number of articles shown in exactly the order I wanted them to be listed. I also wanted that certain articles shoule be shown as subarticles …

Member Avatar for diafol
1
125
Member Avatar for vssp

hai friends I want mail server setting in my php appliacation no need to change the php ini file I got some sample code like this $mail_ini=ini_set(SMTP,"mail.ebscon.com"); $mail_ini=ini_set(smtp_port,25); This code working on only Windows machine only. But I am using linux machine Any option without change the phpini file to …

Member Avatar for IIM
0
541
Member Avatar for Samyx

Hello Everyone, I created a form so that users can select date range. Based on the date range later on it would show a graph. I am still in the first part trying to get the value selected by the user so I can generate the query from the database. …

Member Avatar for IIM
0
611
Member Avatar for LastMitch

Hi, I been learning **OOP** slowly. I'm stuck how to resolved an **function query() on a non object issue**. My files are very basic: This is my **db.php** file: <?php global $db; class foo_mysqli extends mysqli { public function __construct($host, $user, $pass, $db) { parent::__construct($host, $user, $pass, $db); if (mysqli_connect_error()) …

Member Avatar for broj1
0
846
Member Avatar for AARTI SHRIVAS

i want to add multiple texboxes on button click and store that value in database can any one help me out how to do this i know some javascrip and jquery neede but don't know how to store the all texbox value to database because for multiple texboxes in database …

Member Avatar for AARTI SHRIVAS
0
3K
Member Avatar for Edwinner

$query = "SELECT * FROM customers WHERE firstname = '$firstname', lastname = '$lastname'"; $result = mysql_query($query); i keep getting Error: Query was empty

Member Avatar for cereal
0
128
Member Avatar for guyinpv

Hi guys, I'm looking for comments and suggestions regarding the use and place of jquery/ajax in site development. I know jquery allows a lot of cool stuff and so does ajax, but when a site becomes heavily based on these tools, the use of PHP dwindles. I am used to …

Member Avatar for guyinpv
1
454
Member Avatar for Edwinner

//case for database search case "Search": if(isset($firstname, $lastname)){ mysql_select_db("webuser23", $dbc); $result = "SELECT * FROM customers WHERE firstname='.$firstname.' "; mysql_query($dbc); echo "<table border='1'>"; echo "<tr>"; echo "<th>Firstname</th>"; echo "<th>Lastname</th>"; echo "<th>Phone</th>"; echo "<th>Address</th>"; echo "<th>City</th>"; echo "<th>State</th>"; echo "<th>Zip</th>"; echo "</tr>"; while($row = mysql_fetch_array($result)) { echo "<tr>"; echo "<td>" . …

Member Avatar for Edwinner
0
183
Member Avatar for GraficRegret

here is the code, var images2 = ['images/index_19.jpg', 'images/details_10.jpg', 'images/index_23.jpg']; $(document).ready(function() { setInterval(forwardImage2, 4000); //This function will find the key for the current Image function currentImageKey2() { i = jQuery.inArray($('#slideshow2').attr('src'), images2); return i; } //This function will move the slideshow forward one function forwardImage2() { currentImageKey2(); if (i < images2.length …

Member Avatar for GraficRegret
0
149
Member Avatar for cossay

If I have a model called Admin_user which extends CI_Model, how do I name the file in which this model class is so that codeigniter can load it? I named the file admin_user.php and placed it in application/models directory but Codeigniter does not load the class when I try loading …

Member Avatar for cossay
0
172
Member Avatar for Setvir

here is code that I am working on. What it is supposed to do is upload a media file (image, audio, video) and then tell me what type of media it is. $media_type='image'; $filename=$_FILES["file"]["name"]; $extension = explode(".", $filename); $extension = end($extension); //echo $extension; if (($_FILES["file"]["size"] < 50000) && (!$_FILES["file"]["error"] > …

Member Avatar for fobos
0
164
Member Avatar for daniel36

I am working on a project where admin can book an building unit for a customer.And i require that a month lie between two dates of booking or not for calendar.I am using query for this is "SELECT * FROM rt_booking WHERE rt_unit_id='".$urow['rt_unit_id']."' AND rt_start_date<=".$date11." AND rt_end_date<=".$date22; Here rt_start_date(unixtimestamp) and …

Member Avatar for daniel36
0
137
Member Avatar for ms061210

Hello guys, Please take a look at my code, coz I don't know why I cant login here in my log in form.By the way, my database is working, so the problem is in the code. looking forward for your help guys, here is my code: <?php session_start(); include("config.php"); ?> …

Member Avatar for homeboy
0
329
Member Avatar for tinabina22

My php code will not execute and I'm not sure why. Below is the code: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Before.html </title> <meta name="Generator" content="Alleycode HTML Editor" /> <meta name="Description" content="Your description here..." /> <meta name="Keywords" content="Your keywords here..." /> </head> Before #1, Test …

Member Avatar for amith_ami
0
249
Member Avatar for shankar.bandaru.7

Hi, In my website new user register form have, when user all the fields fill the form ofteter registration complete it can be show successfull register message. Thank you

Member Avatar for AARTI SHRIVAS
0
377
Member Avatar for sou.dara.16

Forbidden You don't have permission to access /index.php on this server. Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request. What can I do for fixing this error?

Member Avatar for YASHASHYA
0
125
Member Avatar for Misbah khan

My program is not working please tell me the problum in it... <form action = "http://localhost/third/c2.php" method = "Post"> <pre> <input type = 'checkbox' value = 'Stipned' name = 'chk1'/> stipend </br> <input type = 'checkbox' value = 'Diciplane' name = 'chk2'/> Diciplane </br> <input type = 'checkbox' value = …

Member Avatar for YASHASHYA
0
106
Member Avatar for rouse

Anyone out there have a working system of PHP and xdebug on Windows 8 using an installed version of Apache server? For me this means you installed all the packages and this is not a WAMP system. If you do, would you let me know the file names of the: …

Member Avatar for LastMitch
0
381
Member Avatar for WarrenG.27

Hello, I am writing a simple forum and I keep getting the error 'Undefined Variable'. But this makes no sense has I have assinged a a string to the variable in question . Its part of a while loop and has a .(period) before the equals. If I remove that …

Member Avatar for WarrenG.27
0
410
Member Avatar for shlokka

hi guys... im at the end of my tether with 2co payment gateway...there documentation makes less sense than paypals and the support team dont even acknowledge my emails. i also have a seriously clever programmer on the case who has absolutely no idea what a deadline means and keeps sayin …

Member Avatar for Craig@2Checkout
0
165
Member Avatar for McLaren

Hello, I am tring to test with this software: http://www.stat.fsu.edu/pub/diehard/ I make Hex file of random integers with 8 digis per integer, 10 integers per line as in documentaion. Then run ASC2BIN.EXE but it creates just empty file. My file looks like this: 493489c07f3ba47470011f170b9f5960668068d25732147d44af029b0bfed2a6682b77cb76a5d488 this is one line, but can …

Member Avatar for McLaren
0
406
Member Avatar for spencerharry80
Member Avatar for Octet
-2
36
Member Avatar for tokick4

I have a table that is populated by database and each of the rows is a from with a submit button. The idea is there is a drop down selection and upon selecting it then submitting the form updates the database. The problem is that the row form does not …

Member Avatar for tokick4
0
226
Member Avatar for vato116

I keep getting this error message: Parse error: syntax error, unexpected 'Your' (T_STRING) in C:\xampp\htdocs\Salary.php on line 8. <?php $h=$_GET['hours']; $r=$_GET['rate']; $p=$_GET['pay']; if ($h <= 40){ $submit = ("$p = $h * $r) echo "Your Weekly Salary Is: $p; } if ($h > 40){ $submit = ("$p = ($h *$r) …

Member Avatar for simplypixie
0
204
Member Avatar for tarwara

Hi, I am going to submit a new website in Google (deveoped in PHP) today. I have 'include' folder which has header.php, footer.php and navigation.php files. I have included them in each web page of my site using <?php include ('./includes/header.php'); ?>. I do not want these php files to …

Member Avatar for tarwara
0
722

The End.