39,316 Topics

Member Avatar for
Member Avatar for PF2G

Hi, I'm trying to do a list of news, but i only want today's news and news from the past what i don't want is future news(tomorrow,...). So i'm doing if the date <=$curdate, but future news appear anyway, can you help me, plz? <?php $curdate = date("d/m/Y"); $row_noticias = …

Member Avatar for diafol
0
98
Member Avatar for accra

This is the error i get form my error_log on my server online PHP Warning: implode() [<a href='function.implode'>function.implode</a>]: Invalid arguments passed in /home1/zxx/public_html/admin/userindex/sms/sms.php on line 127 i looked in all of the code but can't find why that error. Here is the code, it's an sms app writing in php. …

Member Avatar for pritaeas
0
162
Member Avatar for ranjit_mahadik

i have created database for our site. but i wanted to know that how can i secure my website using session.

Member Avatar for diafol
0
73
Member Avatar for Majestics

i am working on a web project which upload file on server, i am using uploadify for this. I have used this with wamp where it worked like a charm but when i tried in the server side it failed.. any suggestions. I have done many tricks but none of …

Member Avatar for pritaeas
0
221
Member Avatar for nikki05

Hi With the code snippet given in the following post http://www.daniweb.com/web-development/php/threads/126361/csv-file-uploading-into-a-mysql-database I am able to import csv data into phpmyadmin. However, I am getting an error if csv data contains a text with apostrophe (‘) symbol (e.g. my book’s name is abc). Appriciate any suggestions to resolve this error. Thank …

Member Avatar for nikki05
0
424
Member Avatar for arctushar

function memory($user,$ayat){ sqlconnection(); $user = mysql_real_escape_string($user); $ayat = mysql_real_escape_string($ayat); if((checkmemory($user,$ayat)==0) || !(checkmemory($user,$ayat)==0)){ $sql="INSERT INTO `mark` ( `user_id` , `ayat` ) VALUES ( '".$user."', '".$ayat."' )"; mysql_query($sql); return $sql; } } function checkmemory($user,$ayat){ sqlconnection(); $user = mysql_real_escape_string($user); $ayat = mysql_real_escape_string($ayat); $sqlmemory="SELECT * FROM `mark` WHERE `user_id` = '".$user."' AND `ayat` =".$ayat; …

Member Avatar for Biiim
0
188
Member Avatar for naresh.giri.146

<?php session_start(); include "conn.php"; if (isset($_POST['submit']) && $_POST['billno']!='' ) { $bill = $_POST['billno']; $query = mysql_query("SELECT bill_no, tag_no FROM tbl_cargo_details WHERE bill_no='$bill' or tag_no ='$bill'") or die(mysql_error()); while ($row = mysql_fetch_assoc($query)) { if($bill == $row['bill_no'] || $bill == $row['tag_no']) { header("location:true.php?bill=$bill"); } else { header("location:false.php?bill=$bill"); } } else { ?> …

Member Avatar for Biiim
0
350
Member Avatar for Djmann1013

Hi. I am having trouble with this script: <?php $host="mysql.host.com"; // Host name $username="username"; // Mysql username $password="password"; // Mysql password $db_name="DB_NAME"; // Database name $tbl_name="table"; // Table name $myusername = $_SESSION['myusername']; // Session on login page, in a variable. // Connect to server and select databse. mysql_connect("$host", "$username", "$password")or …

Member Avatar for diafol
0
156
Member Avatar for aneeqtariq_143

hi i want to create table in php but i dont know how many row are in database. but i want to show 2 records per row. please help me how can i do that ?? here is my code but it wasnt work as i desired it create i …

Member Avatar for broj1
0
126
Member Avatar for nova37

hello i have website http://www.w3db.org Problem :: problem is that it cant load or load after 2 ot 3 minutes which is quite strange i do not know where is the problem script is OK so please somebody check it that the problem is with me or others user face …

Member Avatar for nova37
0
105
Member Avatar for Djmann1013

Hi. I wanted to make a page that I can update a table in a database. But for some reason, I get this error: ***Warning: mysql_query() [function.mysql-query]: Access denied for user 'a1092592'@'localhost' (using password: NO) in /home/a1092592/public_html/folder/file.php on line 10*** and this error: ***Warning: mysql_query() [function.mysql-query]: A link to the …

Member Avatar for Djmann1013
0
250
Member Avatar for dualzNZ

hi all im having a issue with non selected checkboxes when i select checkboxes and hit submit they go into the database ok but the checkboxes that have not been selected are adding 0 to the database code below: <form action="addeventusers.php?evid=<?php echo $evid; ?>&u=<?php echo $u; ?>" method="post"> user 1 …

Member Avatar for ckchaudhary
0
100
Member Avatar for udaydesai

Please anybody help me out in installing gearman php extension on windows xp. I have xampp 1.7.7 installed on my system and i have installed Cygwin, libevent-1.4.14b-stable and gearmand on my system. Please let me know what more is needed to install gearman-1.0.2 php extension. As when i run the …

Member Avatar for cereal
0
360
Member Avatar for Senyo

# Heading Here # Please assist me on this one. I have two DB's, one keeps track of user and system activities and the other keeps track of only user activities. The purpose of the codes below is to first of all retreive all tables from the second DB. These …

Member Avatar for Senyo
0
109
Member Avatar for Djmann1013

Hi. I am having a problem with PHP. I got these lines of code: <?php include('Include Stuff') ?> <html> <center> <h1>Admin Login.</h1> <form action="(Action Script)" method="POST"> Admin Name: <input type="text" name="name" /><br /> Password: <input type="password" name="code" /><br /> <input type="submit" value="Login" /> </form> </html> And this: (the action script …

Member Avatar for sepp2k
0
219
Member Avatar for yhkesh

Sir Please suggest a way to compare values in a column of excel sheet so that if same values are appeared i can update using php I have a column named Name which stores Names of students,if same student entry is appeared i need to update Thanks

Member Avatar for yhkesh
0
117
Member Avatar for rayidi

We all know how to open a mailbox using `imap_open`. Here the problem is i'm creating a maill system here. I'm not able to find to create a mail account with `imap/pop3` in `php`. Is it is possible ? Assume suppose my domain is www.studentmug.com. I want to create a …

Member Avatar for ckchaudhary
0
337
Member Avatar for Djmann1013

Hi, I am trying to check if a certain username is in a session. This is what I have so far... <?php if ($_SESSION=='Djmann1013') { // Do the work here. } else { // Don't do anything :P } ?> But, when I test this, it does nothing. But when …

Member Avatar for Djmann1013
0
164
Member Avatar for DaveyMoyes

Hi Everyone, I have a foreach array that prints out images one per line. How can I print images out so I have 3 per line ? here is the code I am working with. if (count($friendDataRawArray) > 0) { foreach ( $friendDataRawArray as $id => $friend) { //$name = …

Member Avatar for brandonrunyon
0
173
Member Avatar for Synestic

Hello First of all, I'm new to PHP, and also to Daniweb. I've been looking everywhere for some PHP code to skip to the next line every time my string ($description) has a period in it. So here's an example of what I want to achieve: Text: The car is …

Member Avatar for Dani
1
161
Member Avatar for dani0

Hi, I want to change this code as given 1 result. I don't need 10 line results. I just need 1 line result. When I tried to change 10 with 1 it doesn't work. Please help me about that. while( $row = mysql_fetch_array($query) ) { $id[] = $row['id']; } $id …

Member Avatar for vibhaJ
0
173
Member Avatar for javacle

hi guys, i've been trying to get a work around for this: in a file structure like this: root: -----index.php (file inside root) -----template (folder inside root) -----user (folder inside root) -----products (folder inside root) -----config (folder inside root) i've been tryoing to use dirname(dirname(__FILE__)) inside a file in the …

Member Avatar for diafol
0
626
Member Avatar for sparkles_links

This the form: <div style="border: 0px #000 solid; padding:0px 0 0 5px; width:auto;"><h3 align="center"><b>Job Seeker Application Form:</b></div></h3> <div id="container" class="ltr"><form name="cliform" method="post" action="cli_app_check.php" enctype="multipart/form-data"> <table width="100%" align="center"><tr><td> <table width="100%" align="center" cellpadding="0" cellspacing="10"><tr><td align="right">Title :</td><td width="16%"><select name="title"><option value="000">Select Title</option><option value="Dr.">Dr.</option><option value="Mr.">Mr.</option><option value="Mrs.">Mrs.</option><option value="Miss.">Miss.</option></select></td><td align="right">Surname :</td><td><input name="sname" type="text" id="sname"></td><td align="right">Other Names :</td><td><input …

Member Avatar for rotten69
0
75
Member Avatar for kartiki.mahadik

how to add email adress validation code so the validation will dispaly after immideately entered email adress in text box of email adress

Member Avatar for tyson567
0
135
Member Avatar for ronhymes

Hello, I have PHP code that updates a record in my database. I need to run that code when an <a href="mailto....> link is clicked on, before the email client runs. Thanks for the assistance.

Member Avatar for ronhymes
0
194
Member Avatar for Dani

So I just discovered a crazy bug that has been keeping visitors of the Opera web browser from using DaniWeb. Apparently there's a problem with CodeIgniter's CSRF protection that makes it not work with Opera, and I'm unsure of why. It works perfectly fine with IE, Firefox, Chrome, etc. I …

Member Avatar for diafol
0
308
Member Avatar for UzuNarU

Hey everyone, I'm having a little trouble with creating a 'dynamic' calendar with events called from a MySQL database. So basically I would like to have the Month automatically change when the month changes, and highlight the days which have events scheduled, and make those days links to my thickbox …

Member Avatar for UzuNarU
0
748
Member Avatar for drumichael87

I am developing in WordPress plugins and I would like to know.if someone could guide Me with this issue. I would like to know what's the easier method.of declaring a global variable that I can use. As of now I am not using classes, mostly because i'm not sure how …

Member Avatar for drumichael87
0
178
Member Avatar for SummerNight

I just installed Windows 8 Release Preview and my existing wampserver does not work. I tried installing easyphp and after the service was successfully started it can't find the localhost. Is there any fix to this or other local servers to run php and phpmyAdmin the easy way ? Thanks …

Member Avatar for cuonic
0
148
Member Avatar for tpowell0201

Okay, so I have been trying to get this to work all night, but I can't find anything actually wrong with it. I just thought maybe someone else might be able to just look at it and see the answer... as it's probablly in plain sight. <?php session_start(); mysql_connect("powellintellabs.com", "******", …

Member Avatar for akmozo
0
153

The End.