
johnwayne77
Members-
Posts
156 -
Joined
-
Last visited
Never
Everything posted by johnwayne77
-
i was wondering what this line does: $src = ereg_replace('<font color="([^"]*)">', '<span style="color: \1">', ob_get_contents()); the dilema is on the <font color="([^"]*)"> part. does that refers to replacing a predefined number of characters in the brackets? i would appreciate an explanation on the entire syntx and more on the "^" and "*" options. thanks
-
alright, Romania is on the map
-
Is there any way to decrypt a password in phpmyadmin
johnwayne77 replied to DeathStar's topic in PHP Coding Help
true, this may not be a cracking forum but the md5 decryption is more of a coding topic for programmers. if you are so sure the md5 can be decrypted, at least let us know when you have succeded that.. -
Is there any way to decrypt a password in phpmyadmin
johnwayne77 replied to DeathStar's topic in PHP Coding Help
decrypy md5? how? u r talking about the online scripts which have a database with a predefined number of md5 decrypted and if u r in luck for your pass to be in that db then u will have it decrypted? or have u found a way to decrypt any md5? as far as i know, md5 cannot be decrypted -
[SOLVED] fetch info from mysql for a specific table field
johnwayne77 replied to johnwayne77's topic in PHP Coding Help
yep, invalid post problem resolved -
[SOLVED] how do i fetch data from mysql table?
johnwayne77 replied to johnwayne77's topic in PHP Coding Help
thanks for the solution mmmyeah, I guess basic mysql knowledge ... gotta read more cheers~ -
i connect to the db: mysql_connect("localhost", "admin", "pass") or die(mysql_error()); mysql_select_db("test") or die(mysql_error()); now, i have a table called: 'shipment' with three fields: tracking name address I keep the tracking (which is unique) in a cookie for later use -- so I can do this : $tracking = $_COOKIE['tracking']; $check = mysql_query("SELECT * FROM shipment WHERE tracking = '$tracking'")or die(mysql_error()); Now, my problem is that I need to echo the name and address for tracking and I don't know how. How do I do that? Any Ideas?.
-
you have a mistake in your script: $ftp_server = "ftp://lorax.biz"; <-- wrong replace with $ftp_server = "lorax.biz"; <-- or ftp.lorax.biz or whatever is your ftp host (just don't add the 'ftp://' which is used for direct browsing
-
i am thinking of making a shipment tracking system and this is my logic: user enters a tracking # in a text field. the form sends the number via _GET to a template php page. the template page populates with a number of predefined fields fetched from the mysql database (for example: sender's name; sender's address; delivery date; etc.). now, when the scripts see the number from the _GET, it will run a check with the mysql db to see if it exists. if it does, then it will use all the other info related to the number in the predefined fields from the template. good. and if it doesn't then i suppose i'll redirect to an error page. i have two questions: 1) how do I check the _GET result with the db table 2) how do I fetch the mysql results only for the _GET result? Any suggestion are greatly appreciated, thanks!
-
like inside the main.php or the program=ers page to add something like: export to html_pages/ers.htm location (header: html_pages/ers.htm); but I am stuck with the export to thing [ reply for orio: i am having trouble with writing the results to a htm page I guess as creating the results is done successfully ]
-
I am trying to generate a static .htm page from a dynamic .php page everytime that page is loaded. for example: my scripts runs this url to display the result: http://www.imobconsulting.ro/tv/main.php?program=ers&action=Afiseaza+program and i would like somehow to export the displayed result to a .htm file, for example: http://www.imobconsulting.ro/tv/html_pages/ers.htm any ideas?
-
i am thinking of building a price comparison script but have no ideas? what would you recommend? what functions would I need? for sure something to fetch products info from merchant sites and import them to my database, right? please advise
-
thanks
-
thanks dude!
-
anybody knows how to use the mktime() function? i want to display the tomorrow's date ( like : sunday 03 feb 2007 )
-
[SOLVED] IF -- how do I add more values to one result?
johnwayne77 replied to johnwayne77's topic in PHP Coding Help
great! it works, thanks. -
[SOLVED] IF -- how do I add more values to one result?
johnwayne77 posted a topic in PHP Coding Help
I have this code: if ($program == 'pro') { $titlu = "Pro TV"; } but I need it a little expanded to do the following: if ($program == 'pro, protv, ptv') <--- I mean I want to add more values for one result { $titlu = "Pro TV"; } how do I do that? -
works! thanks dude!
-
i've tried the mktime() function but it displays just a number (e.g. 14569012) maybe coz if misusage anyone knows how the mktime works in my situation?
-
i am displaying today's date with the following code: <blockquote> <div align="center"><? echo date(r); ?> </div> </blockquote> the result is something like this: Fri, 02 Feb 2007 20:54:59 +0200 Now, I want to display the date of tomorrow, yesterday, the day after tomorrow and so on so it would display like this: Sat, 03 Feb 2007 (without the hour of course) do you have any ideas?
-
I have this url: http://www.imobconsulting.ro/tv/main.php?program=ngc where the value of program changes (for ex.: ngc, ers, prm, mtv ) good... now I want to display the title for each page according to the program= option selected. For example if the url is: http://www.imobconsulting.ro/tv/main.php?program=ngc I want the title to be National Geographic or if it is http://www.imobconsulting.ro/tv/main.php?program=mtv then I would want Music Television how do I do that? I believe I have to define some variables somewhere and use the IF statement? Help would be greatly appreciated. Thanks.
-
[SOLVED] _GET / variable / dynamic menu - problem !!!
johnwayne77 replied to johnwayne77's topic in PHP Coding Help
the substr did the job thanks -
is there anyway I can echo only the first 3 characters from a variable? like : $variable = 'john'; echo $variable,3; so it will print: 'joh'
-
[SOLVED] _GET / variable / dynamic menu - problem !!!
johnwayne77 replied to johnwayne77's topic in PHP Coding Help
i was thinking of a solution... is there anyway I can echo only the first 3 characters from a variable? like : $variable = 'john'; echo $variable,3; so it will print: 'joh' ???