|
Web design and Programming Discuss website creation and other programming topics. |
|
Thread Tools | Search this Thread | Display Modes |
#1
|
||
|
my first php script..
i wrote my first php script!
rather simple but i could not do any b 4 go to my site ( click banner in sig) on right there is link called Whats my ip click it... i'm gonna slowly re do whole site in php... wright my own portal SLOWLY... some of this php stuff don't make much since... but some is really easy.. |
#2
|
||
|
the only thing on the right is Sponsors and top sites.
in what way do we sponsor you btw? |
#3
|
||
|
yes you do.. in a way.. my the link is on the forum.. and the link was is the news....by "sponsors" i mean Links but Sponsors looks better...
|
#4
|
||
|
coolio
|
#5
|
||
|
im working on a link data base as i type...
|
#6
|
||
|
Cool...I gotta go do some work on my site too
__________________
|
#7
|
|||
|
Re: my first php script..
Quote:
are you useing PHP Code:
PHP Code:
oh yeah...classes classes classes. PHP classes are amazingly nice...I'm using it for all mysql Queries PHP Code:
(When i say classes i don't mean like a teacher and school or something i mean actually coding)... |
#8
|
||
|
ohh yah I remember classes from the good old C++ days.
__________________
|
#9
|
||
|
Re: Re: my first php script..
PHP Code:
that one ^^^ whats the difference? |
#10
|
||
|
that is awesome...that helps when you want to ban someone from your site.
__________________
|
#11
|
|||
|
Quote:
Personally, I always use the $_SERVER[] method, for $_GET, $_POST, etc. And from what I just read, getenv() (Elite, pls note the correct function name ) really shouldn't be used. I just read a comment that getenv() doesn't work on IIS (Microsoft's webserver). IcI |
#12
|
||
|
seeings how mainly sites are run on linux it works if your coding for your self (Ici ... it's been a while since i used the function so i forgot okay!, ) ... :P
|
#13
|
||
|
lol.
But still, wouldn't it be better to code some things, when possible so that they can work no matter what the system? Any ways, doesn't really matter. IcI |
#14
|
||
|
my link database..
hey i finnished codeing a link database but it does not seem to work proberly....
please look over my code i have checked and checked it... PHP Code:
HERE |
#15
|
||
|
For the forum action, change it from
PHP Code:
PHP Code:
IcI |
#16
|
||
|
does not work for me
this is updateed code: PHP Code:
i also tried it exactly the way you did it that did not work either.. |
#17
|
||
|
<?=$value?> will only work one some php settings.. so it's best to use <?Echo($value);?>.. but for your problem I think it's the mysql query.. I made alot of notes to atholon in another thread please read that.. it can be found here. http://www.novahq.net/forum/showthre...threadid=26098
__________________
04' Dodge SRT-4, Mopar Stage 3, 406whp/436wtq |
#18
|
||
|
I added an IF statment
PHP Code:
When i ran this, every thing worked, except for the mysql part due to the fact I didn't want to set up a test table . I just commented it out and put echo statements to tell me what was happening. Try this: (again, I didn't test to see if the database part worked) PHP Code:
|
#19
|
||
|
ok thx panther but i dont know what would be wrong with mysql... here is pic of phpmyadmin
[img] http://24.158.37.186/phpmyadmin.jpg [/img] |
#20
|
|||
|
Quote:
now that dont work at all for me the page will not even display... |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Trying to get php script to work with ajax(jquery) | alvidales | phphq.Net Forums | 0 | 06-28-2011 10:24 AM |
What PHP script is this? | Chels | Web design and Programming | 11 | 02-04-2006 05:45 AM |
PHP NEWS SCRIPT? | o2 | phphq.Net Forums | 8 | 10-30-2004 02:57 PM |
Php Database Script | area51-(xs)- | Web design and Programming | 8 | 06-27-2003 09:24 AM |
php news script? | Se7eN | Web design and Programming | 2 | 05-04-2003 12:09 PM |