39,316 Topics

Member Avatar for
Member Avatar for dalilice

Hello guys, i want to make a script that can show me (the user) the 5 visited last links on my website. Not sure if php is teh correct language to do this but i do not know how coockies work.

Member Avatar for pritaeas
0
73
Member Avatar for mathiasbbaale

hi guys, i need some help on how i can **use php to upload a photo** so that it appears on the profile page. i'm deveoping a discussion forum with my friends and i need each person's photo on his profile page. there must be something to do with mysql …

Member Avatar for pritaeas
0
8
Member Avatar for adishardis

Hi, I'm wondering what type of mysqlfield would be advantageous for outputting the containing text as a bullit list in php and if the text should be formatted a certain way. I would be supergrateful for an example! :p Take care Adam

Member Avatar for adishardis
0
771
Member Avatar for Echo89
Member Avatar for opawix

<center></center> <form name="registration_form" method="post" action="register.php" onsubmit="return Validate();"> <table border="0" align=center> <tr> <td><font size=5><center>Name: </center></font></td><td><input type="text" name="names"></td> </tr> <tr> <td><font size=5><center>Email: </center></font></td><td><input type="text" name="email"></td> </tr> <tr> <td><font size=5><center>Username: </center></font></td><td><input type="text" name="username"></td> </tr> <tr> <td><font size=5><center>Password: </center></font></td><td><input type="password" name="password"></td> </tr> <tr> <td><font size=5><center>Password Confirmation: </center></font></td><td><input type="password" name="password_confirmation"></td> </tr> <tr> <td><font size=5><center>Phone Number: …

Member Avatar for opawix
0
208
Member Avatar for Izzy Kiefer

Hey guys, I've hit a brick wall trying to login to an ssl site to update fields of a form and submit, mainly because(i'm guessing) it has a load of javascript within it and also a several redirects at and after login page. I have managed to come to the …

Member Avatar for LastMitch
0
1K
Member Avatar for raovinesh

hi all, can anyone help me to resolve this issue. I have this header scrip $globe_id=$_GET['globe_id']; header("location: globe_welcome.php?globe_id=".urlencode($globe_id)); It is not working properly. When i am posting data through form is is not showing id in address bar. Its result come like http://mysite/more/globe_welcome.php?globe_id= where i am wrong? can any body …

Member Avatar for LastMitch
0
346
Member Avatar for pavitrakannan

whenever i execute a mysql php code...it says local host not given access to this database..... i just ran other programs an hour back and it showed no problem! now i am not able to connect to tht particular database. i checked the xammp cntl panel....and resatrted mysql and apache …

Member Avatar for Smeagel13
0
254
Member Avatar for scottlpool2003

I'm in the basics of learning to code in OOP. So far I've tried simple input/output and succeeded but am now trying to move onto something still rather basic but a step up from previous attempts. Anyway, I'm writing a login script connecting to a PDO database. I've tested all …

Member Avatar for diafol
0
326
Member Avatar for cssweb

hello guys i have a problem with this code when id add a comment and comment insert in database and when i make refresh on the same page i get this warning : One of the fields are still empty, i think the problem in the first code <?php if …

Member Avatar for diafol
0
221
Member Avatar for Octet

Hello DaniWeb, I've finally gotten around to swapping from MySQL to MySQL(i), mainly due to it's security advantages with Prepared Statements. In the past I've been adding `include ('/Some/Directory/File.php);` to the top of each page, so that I can store my functions in a secure directory and so that I …

Member Avatar for Octet
0
254
Member Avatar for daimaku

i'm trying to make a script to calculate the diference between two dates, but in minutes, the thing is that i need to remove from mysql database all the entries that has mora than 15 minutes on the database, i'm planing to run the script in background using the cron …

Member Avatar for LastMitch
1
197
Member Avatar for Squidge

Evening All, I am looking to start a class that dynamically creates a sitemap.xml on command and if possible auto uploads to google. The only thing is all the scripts i have come across by searching google tend to be using static pages. My links are dynamic and are also …

Member Avatar for Squidge
0
590
Member Avatar for MWEB

So i have this index.php code: <form method="get" action="search.php"> <label>Search For: </label><input type="text" name="$res" /> <input type="submit" name="submit" value="Start Search" /> <input type="reset" value="Reset" </form> And this code in search.php <?php $con = mysqli_connect('localhost','user', 'pass') or die(mysqli_error($con)); mysqli_select_db($con, 'piese') or die(mysqli_error($con)); #query database $query = mysqli_query($con, "SELECT `id`,`price` FROM `edit` …

Member Avatar for AndreRet
0
173
Member Avatar for PowerCheez

I have a small problem. I wrote this script to update the status of my list using a checkbox for each line I want updated. But I (beeing new to this whole thing) can't seem to get my button to do what I want it to do. <?php //ansluter till …

Member Avatar for PowerCheez
0
222
Member Avatar for eman neercs

I have a table which shows our top sellers and Weeks of Stock left. Its generated by joining an order db with a stock db. I'm struggling with try to capture the really fast movers. Here is the script SELECT a.EAN, a.SKU, a.Name, Sum(a.OrderedQuantity) Round(Avg(a.Price),2) as AvgPrice b.Quantity, round((b.Quantity/Sum(a.OrderedQuantity)),0) as …

Member Avatar for eman neercs
0
114
Member Avatar for mrickert

Hi- I'm getting these PHP warnings: PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/fileinfo.so' - /usr/lib/php/modules/fileinfo.so: undefined symbol: zval_property_ctor in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/zip.so' - /usr/lib/php/modules/zip.so: undefined symbol: zval_property_ctor in Unknown on line 0 Can't find the cause …

Member Avatar for mrickert
0
114
Member Avatar for Vingklippt

I am trying to create a form that updates mySQL-database. I've created three php-pages. **updatepizza.php** <?php $host="localhost"; // Host name $username="root"; // Mysql username $password="billie"; // Mysql password $db_name="cygna_fyraarstider"; // Database name $tbl_name="pizza_menu"; // Table name // Connect to server and select database. mysql_connect("$host", "$username", "$password")or die("cannot connect"); mysql_select_db("$db_name")or die("cannot …

Member Avatar for Vingklippt
0
217
Member Avatar for dalilice

i want to show hide multiple divs with jquery or javascript. I seached the web but i find codes that must have unique divs like: <div id="div1">text</div> <div id="div2">text</div> and so on, but i want to add the divs in a foreache php function so i can't have multiple IDs, …

Member Avatar for pritaeas
0
263
Member Avatar for amzu

I want to download the cities of countries depending upon the the selection of countries.Is this posssible using curl. And How?

Member Avatar for pritaeas
0
71
Member Avatar for afroo.gfx

**I'm beginner of Php .. I Develop my first dynamic website -> http://wwww.afrogfx.com if you look at my sidebar you will see categories list my problem located here if i create sub sub categories like that** CAT A - SUB CAT A-1 - SUB CAT A-2 -- SUB CAT A-3 …

Member Avatar for pritaeas
0
3K
Member Avatar for kv79

Hallo there, does someone knows, where is the use of VARBINARY in MySQL database? Thanks, Danijel

Member Avatar for pritaeas
0
339
Member Avatar for dean.ong.14
Member Avatar for slr

Hello I am making a simple page with one form. I want to update the password for a user in a table in MySQL - there is only one user in the table. The code DOES work. It really does update the table record, but once its updated, if succesfful …

Member Avatar for yewbhex
0
273
Member Avatar for freakvista

So i have created a list of all the files that are in a certain folder, and in the right hand is a checkbox. echo "<form action='checkbox-form.php' method='POST' name='MyForm'>"; and this is the part of interest $c +=1; <td > <input type='checkbox' name='formImage[]' value='$c'/>&nbsp;<br /> </td> So how can i …

Member Avatar for broj1
0
156
Member Avatar for freakvista

I don't know but this button wont do what i tell it to do <img id="butoon" src="images/lft-button2.png" onmouseover="hover('l')" onmouseout="unhover('l')" onmousedown="clickonit('l')" onmouseup="clickup('l')" onClick="window.open('gallery.php?blu=<?PHP echo "$q"?>&subf=<?PHP echo "$subf"?>','_self')" style="cursor: pointer;" /> and in another php it worked... i don't know why it isnt working in this php....

Member Avatar for LastMitch
0
72
Member Avatar for spowel4

I understand that when casting a string to a float, php will evaluate from left to right and stop at the first invalid character. So for example, the string "1-23" will cast to a 1. I need to evaluate the entire string though, so that the string "1-23" would not …

Member Avatar for spowel4
0
229
Member Avatar for ajcoder

I have the following code for a contact us page. It isn't working. It is suppose to come up with a page after you hit send. It does not do that. It is also suppose to send, but it isn't appearing to do that either. Any thoughts? <?php /* Template …

Member Avatar for LastMitch
0
135
Member Avatar for Riu 2009

hope everyone is fine there, i just wanted to ask that i want to display the image im storing in the database using php.. but i dont know how to display it, would i be able to retrieve it simply by echoing?? im not getting how would the whole process …

Member Avatar for pritaeas
0
215
Member Avatar for kaizokupuffball

Hi! Im making a database class in PHP. And i thought i might post it here, and ask for your opinions and how i can do this better? :) <?php class Database { var $db_host = 'localhost'; // Server var $db_user = 'root'; // Username var $db_pass = ''; // …

Member Avatar for broj1
0
183

The End.