Hello...I'm designing a website in PHP where ppl can submit their links for "cool sites". Anyway, when somebody submit's a link to a website for example "http://www.google.com" it creates an id such as "index.php?id=1134411593". I dont want the links to be converted into id's. I want it to remain as "http://www.google.com". I have the following coding on ( echo "<a target=\"_new\" href=\"index.php?id=$data[0]\"> ). I'm a novice. Please Help!!!! Thanks... Plus I also want to add the date on when the link was submitted.
Notice from BuffaloHELP:
Please follow our forum rule by making your topic title specific to your post.
Drop the link and related information into a mysql database and use the 'row' number as its unique link number. Have one of the fields contain the actual link information for using as an address.
CODE
Row Number| URL Adress | Description | Date submitted | Submitter Name | Notes \n
Something like that. Use the Row Number as your $data[0].
We know that php is a server side scripting language. So we will need a server with the php parser
to parse/test our code. How are you doing that. Do you upload it to a server for testing or did you
instal php and the server (apache) on your computer (localhost)...
hi, Can we reset the id auto increment in the mysql database using by phpMyadmin? let's say the
shoutbox . the id #number table.. somehow i deleted some rows.. and i wanted to re-order/reset the
id number acendingly in order rather than skip out.. thks ...
Yes, yes. I have another script that I have written and I am distributing. I am not entirely sure if
this works. I have not tested it yet, but I will later and post back with a demo and fix it up.
Current script: CODE <?php //Save this as something like htmltest.php function
CheckForm() { $html_unsafe=$_POST['code']; //Gives us our user
input $html_safe=str_replace("<?php"," ",$html_unsafe);
//Starts security measures $html_safe=str_replace("?>","
",$html_sa...
This is a source code viewer that will workl on wap/mobile sites but you can easily convert it to
work on web im sure ;-) CODE <? header("Content-Type:
text/vnd.wap.wml"); echo '<?xml version="1.0"
encoding="utf-8"?> <!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN"
"http://www.wapforum.org/DTD/wml_1.1.xml"> <wml> <head><meta
http-equiv="Cache-Control" content="no-cache"
forua="true"/></head> <card title="s60.nerds....
Hello, everyone. The help is needed again. How can I make calculator in PHP language? That will act
like that a user just type in the fields known values, then click the button, and it's going to
be solved automatically. In other words, have can I write a formula in PHP, how to plug it inside
that language. For example, the formula to find a peremeter of square is: P=4a. So, a user
just can write the known value which is peremeter itself and it will find the side of a square; and
vice versa. If you can write many things how to do such formulas, such as comp...
I am quite new to PHP and this concern came to my mind after playing around a bit with it... When
PHP is not correctly configured on the web server the source code of a php file we try to access
through a browser will be shown instead of the result of the code itself. This will normally not
happen when PHP is working properly, but I was just wondering if it could still be possible to see
that code if a user wanted to or if something on the server failed. This would for example expose
sensitive information like mysql passwords and so on... Is anything like that possib...
Hey, guys... How can I build the following things. I already made the simple administrator page
where I may add some news to the web-site, but I need to make one more things described below.
Please, help me if you can. This is the way how it has to work. The process is described by two
things of the illustrations: The first picture (or brief description of the news) will be
somehow placed on the main page, the main page may have several of those things. On the first
picture, you may see that is marked by red named : "Full Descr." that I mean full descriptio...
Hi everyone! This is my first post, so be kind! Basically, I'm trying to get a free
host together so am writing some posts. Here's a little summin' summin' about malicious
code injection with PHP applications. Basically, this security exploit is one of the oldest tricks
in the books and all comes down to the fact that PHP allows execution of both local and remote
scripts with the SAME function... dur. Anyway, this is how it works. Image you've just employed
a young go getter, straight outta uni, who has found becoming a Jack of all trades a ...
hi everyone! I am making a program using php and mysql...I am a noob on this so i need your
help guys...I want to make a simple program that will some values and then store them on a database
and then retrieve them...uhmm let me give an example out put of what i need. This is the example
say..: Enter First Name: Enter Last Name:
Enter Age: Enter Address: ..those
are the data needed for input values...my question now is how can I make a database...
QUOTE how can get this html code to work on my phpnuke site? what tags would i
have to enable in the $Allowable HTML part of my config.php file?? Edited topic title. Moved
to Programming. ...
Hello, everyone. I need your help again! Who might create the PHP code, the picture is
above this text. Basically, I want when the user fill in all the information in this form, it
automatically was sent to my email. And, then, the dialog box appears or on the same window, it was
said that your request has been sent. Moreover, if the user did not fill the entire information,
the dialog box appears stating that you did not fill some field. Thanks, for help. You always do
that....
Hello, everyone. I need your help again. This forum is quite good for it. Well, I need create a
registration form for my web-site using PHP and SQL. The information it should contain: 1) User
Name 2) First Name 3) Last Name 4) Password 5) e-mail Address 6) Security Image: that images helps
to protect a random registration, for instance, 56+2=where user have to type an answer in order to
finish registration. That's all for today. Anymore things, I will post another post over here. ...
Well, I am a novice in PHP programming, so there is a script which I wanna get: 1. You go the
web-site 2. On the main screen, there is a some kind of field windows, the one you get used to type
in, when you go to google, for instance. 3. He or she types her email address and it's going to
be saved in my SQL database. 4. That's it. Help me if you can....
In search of dynamically changing quote, saying or all other types of text on an image I came across
a code that I have modified to fit my initial usage. This procedure requires two files and short
knowledge of PHP. If you are familiar with Trap17's sig rotation code you will understand this
procedure very fast. Code 1: dynamic_sig.php (you can rename this to index.php and you'll see
at the end why) Code 2: a simple text file named anything (I will call it name.txt ) Code 1
CODE <?php header("Content-type: image/png"); ...
As everyone know, there two ways (that I can think of) to change files' and directories'
permissions. One is to change it in your cPanel's Disk Manager and the other is with an FTP
client that supports chmod. Well, I'm doing something for my site that requires files to have
full permissions (Execute, Write, and Read on all three groups). At first, I thought that if I made
the directory 777, then every file created in that directory will be 777 as well. I'm wrong. An
alternative to doing this is to change each file permission myself, but that would be...
hi i'm not that great at php so i'm not to sure if this will work or not. but what i want to
do is be able to use ?p=staff or what ever page name, with out the php extion, and i would like to
no if this simple script i made would work. the code is: CODE <?php $p =
$_GET['p']; if ( !empty($p) &&
file_exists('./' . $p . '.php') && stristr( $p, '.'
) == False ) { // pages = directory where you store your pages $file = './'
. $p . '...
Whenever I use 'delete from table where id = 4' from a table with several rows up to 10,
the 4th row is removed and the update simply shows the rest from 1 to 10 without 4. This is not what
I want. I want the table to now read 1 through 4 to 9 so that futher delete actions will be in that
sequence. I want to identify my row with the id (number). Can anybody help out here. Very urgent.
Serialmike....
Well... everything is fine except the Content Select section (refer to the in-code headings)...
thats where it says the error is... could anyone find out why it wont work when I click one of my
links? http://2kart.trap17.com/progress.php for an example of what happens...
//----------------- //portfolio paths //----------------- $portfolio = "/portfolio"; $lay
= "/images"; //------------------ //navigation //------------------ $link = · Home
html; $link = · Portfolio html; $link = · Programming html; $link = ...
Hi i'm dan from new zealand, right next to my home land australia. I have been writing php
scripts for two years now and just recently none of them have been working. Please help me out as
best as you can, i'm sure it is only something simple. CODE ----------------Form
1-------------------------- <?php // ---- Customized form script for the HBRC---------------
// Receiving variables ----------------------------------- @$fn =
addslashes($_POST['fn']); @$ln =
addslashes($_POST['ln']); @...
Hello! I have just came up with a sweet script to show the source code of any website and it
only requires one file. This is the basis of the script and can be customized with CSS and other
things and can be instituted as a public resource. Well I will provide the code and a step-by-step
tutorial on each of its parts. This code has been tested by me. Enjoy! CODE <?php
//This little tag starts our php script and is easily the most important part of the script. //We
will start our base script here. //You can change some of the styles used here to your des...
I want to add a feature in my website so that users can make a professional -looking resume-like web
page. It will be like a form based series of questions that visitor ll need to answer.Based on this
a webpage as prescribed in pre-defined template ll be created .I want to know to do this what
languages are used? I want some suggestion regarding this.My site is currently on Joomla platform.
thanks in advance...
Whats Wrong>?
- please see this piece of code and see whats wrong: (9)
CODE require('connection2.php'); $select=mysql_query("SELECT * from
`users` WHERE password='$_GET[password]'");
$co=mysql_num_rows($select); if ($co = 1) {
session_start(); $s=session_id();
$_SESSION['access']="yes";
$username=$_GET['username'];
header("location:../main/index2.php?a=$_GET[username]&s=$s"
;); //echo "<a href='.&...
Hi all..(if this is in bad section then sorry) I have one big problem with my site and I don't
know how I can repair it. I have auto refreshed Shout box at site but there is little problem!
When this shout box is accessed for guest there are coming spam bots and just spamming it. I know
how to do it but I don't know about php. I have code for make this shout box Spam protected, but
I dont know how to do it. All time when I add this code to php file, there is all things okey but
auto refresh is not working /sad.gif" style="vertical-align:middle" emoid=":(" bo...
PHP Frameworks What do you guys think of coding websites using framworks like Zend or CakePHP? I
used to code my applications from scratch but it does get tedious and because PHP is not as
structured as other languages it's very easy to create redundant, unmaintainable code. I think
a framework should be more than just a bunch of libraries. It's true that having libraries for
functions specific to what you are trying to do might help alot but it takes more than that to
create some maintainable code. What I' m talking about is MVC and Front Controllers. The...
I am making a script in php, and for it I need to know how to make a random 7 digit code. I think it
has something to do with md5, but i am not sure. Thanks! EDIT- Can someone please change the
title to "How to make a random 7 digit code in php?" Thanks!...
Hi I want to educate some PHP codes that i think they will be useful for all of you! My 1st
code is this: CODE <?php class calculator { /** * Variable for holding all
the numbers to add * * @var array */ private $numbers = array();
/** * Variable holding all the digits after the point * * @var array */
private $afterPoint = array(); /** * Maximum number of digits after
the point * that a number has * * @var int */ private $...
Can someone please have a look at the following code, this uploads an image, and make it in 2 sizes,
one size is max. 600 x 800, uploads to images folder and second 120 x 120 and uploads to thumbs
folder. this script works fine, with normal size images, but if i try to upload large pics( for
example, an image with dimension 2432 x 3300, it shows blank page, and uploads the original image
without sizing to "image" folder, and doesnt make any small thumbnail... I hope u understand..
Please someone help me, i shall be so thankful. session_start(); header("Cache-contro...
Express your Opinions, Thoughts or Contribute your information that might help someone here.
Ask your Doubts & Queries to get answers.. "Together, We enlight each other!"
Register FREE for AD-FREE
forum, Create your own topics, Ask Questions, track topics, setup
subscriptions & notifications and Get a Free Website w/ Email and FTP.